OOPS interview questions – page 2

93 questions. Tap “Show answer” to check yourself.

Advertisement
  1. If the function returns no value then it is called ____

    1. Data type function
    2. Calling function
    3. Main function
    4. Void function
  2. A function _____

    1. May or may not need input data
    2. May or may not return a value
    3. Both a and b
    4. None of these
    Show answer

    C. Both a and b

  3. The expression in do-while loop is usually of ____ type.

    1. Any
    2. Arithmetic
    3. Algebraic
    4. Logical
    Show answer

    D. Logical

  4. The activity of removing an error in the program is called _____

    1. Entering
    2. Debugging
    3. Editing
    4. Compiling
    Show answer

    B. Debugging

  5. Readymade library functions are used for ____

    1. Input and output
    2. Input
    3. Neither input nor output
    4. Output
    Show answer

    A. Input and output

  6. Which of the following are two types of branching?

    1. Two-way and multi-way
    2. Two way or multi-way
    3. Multi-way & three way
    4. Two-way& four way
    Show answer

    C. Multi-way & three way

  7. By using __ the speed of the process can be increased.

    1. Long integer
    2. Short integer
    3. Unsigned integer
    4. Integer
    Show answer

    B. Short integer

  8. In C++, the go to statement causes control to go to a/an

    1. an operator
    2. a variable
    3. a label
    4. a function
    Show answer

    C. a label

  9. In C++, when a multidimensional array is accessed, each array index is

    1. surrounded by brackets and separated by commas
    2. surrounded by brackets
    3. separated by commas and surrounded by brackets
    4. separated by commas
    Show answer

    B. surrounded by brackets

  10. A normal C++ operator that acts on special system on newly defined data types is called

    1. classified
    2. overloaded
    3. encapsulated
    4. glorified
    Show answer

    B. overloaded

  11. a + b = b + c is not a valid arithmetic statement because the left hand side ____

    1. constant
    2. a variable
    3. an expression
    4. none of the above
    Show answer

    C. an expression

  12. Which of the following is a loop structure available in C?

    1. While structure
    2. For structure
    3. Do-while structure
    4. All the above
    Show answer

    D. All the above

  13. Advertisement
  14. Which of the following statements is used to come out of the loop?

    1. Continue
    2. Break
    3. Both
    4. None of the above
    Show answer

    B. Break

  15. The general format of the one dimensional array declaration is ____

    1. Data type
    2. Data type array name;
    3. Data type array – name [n];
    4. Type array [n]
    Show answer

    C. Data type array – name [n];

  16. Which of the following operators return a true value only when both the operands are true?

    1. Assignment
    2. AND
    3. OR
    4. NOT
    Show answer

    B. AND

  17. For initialization of two dimensional arrays the operation is performed in _____

    1. Diagonal
    2. Operator wise
    3. Row-wise
    4. Column wise
    Show answer

    C. Row-wise

  18. A structure declaration without any variables describe ____

    1. Wizard
    2. Template
    3. Shape of a structure
    4. Both (a) & (b)
    Show answer

    B. Template

  19. Which of the following are fundamental control structures?

    1. Iteration
    2. Branching
    3. Sequencing
    4. All the above
    Show answer

    D. All the above

  20. The method of checking the pseudo codes is called _____

    1. Branching
    2. Iteration
    3. Walk through
    4. Sequencing
    Show answer

    C. Walk through

  21. Which of the following is a clause in the for loop structure?

    1. Assign
    2. Alter
    3. Logic
    4. All the above
    Show answer

    D. All the above

  22. For the particular variables, some specific values are assumed in _____

    1. An input box
    2. An output box
    3. Decision box
    4. All boxes
    Show answer

    A. An input box

  23. The flow charts are ____

    1. Representing our thoughts exactly
    2. Precise
    3. Easy to understand
    4. All the above
    Show answer

    D. All the above

  24. Instruction section has _____

    1. Processing instruction
    2. Input instructions
    3. Output instructions
    4. All the above
    Show answer

    D. All the above

  25. The subscript is always _____

    1. A variable
    2. An integer
    3. A positive integer
    4. A negative integer
    Show answer

    C. A positive integer

  26. Advertisement
  27. The control structures have _____

    1. Only one entry point only one exit point
    2. Many exit points
    3. Many entry points
    4. All of these
    Show answer

    A. Only one entry point only one exit point

  28. _____ is a picture in which the flows of computational paths are depicted.

    1. Algorithm
    2. Program
    3. Code
    4. Flow chart
    Show answer

    D. Flow chart

  29. Among unary operation which operator represents increment?

    1. --
    2. ++
    3. -
    4. !
    Show answer

    B. ++

  30. The function scanf is used to ___

    1. To take logical decisions
    2. Input a set of values
    3. Print a set of values
    4. Do mathematical manipulations
    Show answer

    B. Input a set of values

  31. Which of the following is not a valid data type in C Language?

    1. Double
    2. Char
    3. Long
    4. Float
    Show answer

    B. Char

  32. Who developed C language?

    1. Ken Thomson
    2. Peter Norton
    3. Dennis Ritchie
    4. Von Neuman
    Show answer

    C. Dennis Ritchie

Advertisement