OOPS interview questions – page 2
93 questions. Tap “Show answer” to check yourself.
-
If the function returns no value then it is called ____
- Data type function
- Calling function
- Main function
- Void function
-
A function _____
- May or may not need input data
- May or may not return a value
- Both a and b
- None of these
Show answer
C. Both a and b
-
The expression in do-while loop is usually of ____ type.
- Any
- Arithmetic
- Algebraic
- Logical
Show answer
D. Logical
-
The activity of removing an error in the program is called _____
- Entering
- Debugging
- Editing
- Compiling
Show answer
B. Debugging
-
Readymade library functions are used for ____
- Input and output
- Input
- Neither input nor output
- Output
Show answer
A. Input and output
-
Which of the following are two types of branching?
- Two-way and multi-way
- Two way or multi-way
- Multi-way & three way
- Two-way& four way
Show answer
C. Multi-way & three way
-
By using __ the speed of the process can be increased.
- Long integer
- Short integer
- Unsigned integer
- Integer
Show answer
B. Short integer
-
In C++, the go to statement causes control to go to a/an
- an operator
- a variable
- a label
- a function
Show answer
C. a label
-
In C++, when a multidimensional array is accessed, each array index is
- surrounded by brackets and separated by commas
- surrounded by brackets
- separated by commas and surrounded by brackets
- separated by commas
Show answer
B. surrounded by brackets
-
A normal C++ operator that acts on special system on newly defined data types is called
- classified
- overloaded
- encapsulated
- glorified
Show answer
B. overloaded
-
a + b = b + c is not a valid arithmetic statement because the left hand side ____
- constant
- a variable
- an expression
- none of the above
Show answer
C. an expression
-
Which of the following is a loop structure available in C?
- While structure
- For structure
- Do-while structure
- All the above
Show answer
D. All the above
- Advertisement
-
Which of the following statements is used to come out of the loop?
- Continue
- Break
- Both
- None of the above
Show answer
B. Break
-
The general format of the one dimensional array declaration is ____
- Data type
- Data type array name;
- Data type array – name [n];
- Type array [n]
Show answer
C. Data type array – name [n];
-
Which of the following operators return a true value only when both the operands are true?
- Assignment
- AND
- OR
- NOT
Show answer
B. AND
-
For initialization of two dimensional arrays the operation is performed in _____
- Diagonal
- Operator wise
- Row-wise
- Column wise
Show answer
C. Row-wise
-
A structure declaration without any variables describe ____
- Wizard
- Template
- Shape of a structure
- Both (a) & (b)
Show answer
B. Template
-
Which of the following are fundamental control structures?
- Iteration
- Branching
- Sequencing
- All the above
Show answer
D. All the above
-
The method of checking the pseudo codes is called _____
- Branching
- Iteration
- Walk through
- Sequencing
Show answer
C. Walk through
-
Which of the following is a clause in the for loop structure?
- Assign
- Alter
- Logic
- All the above
Show answer
D. All the above
-
For the particular variables, some specific values are assumed in _____
- An input box
- An output box
- Decision box
- All boxes
Show answer
A. An input box
-
The flow charts are ____
- Representing our thoughts exactly
- Precise
- Easy to understand
- All the above
Show answer
D. All the above
-
Instruction section has _____
- Processing instruction
- Input instructions
- Output instructions
- All the above
Show answer
D. All the above
-
The subscript is always _____
- A variable
- An integer
- A positive integer
- A negative integer
Show answer
C. A positive integer
- Advertisement
-
The control structures have _____
- Only one entry point only one exit point
- Many exit points
- Many entry points
- All of these
Show answer
A. Only one entry point only one exit point
-
_____ is a picture in which the flows of computational paths are depicted.
- Algorithm
- Program
- Code
- Flow chart
Show answer
D. Flow chart
-
Among unary operation which operator represents increment?
- --
- ++
- -
- !
Show answer
B. ++
-
The function scanf is used to ___
- To take logical decisions
- Input a set of values
- Print a set of values
- Do mathematical manipulations
Show answer
B. Input a set of values
-
Which of the following is not a valid data type in C Language?
- Double
- Char
- Long
- Float
Show answer
B. Char
-
Who developed C language?
- Ken Thomson
- Peter Norton
- Dennis Ritchie
- Von Neuman
Show answer
C. Dennis Ritchie