Computer interview questions – page 126

4,197 questions. Tap “Show answer” to check yourself.

Advertisement
  1. Sound waves, telephone signals, temperatures and all other signals that are not broken into bits are examples of _____

    1. Analog data
    2. Digital data
    3. Graphic data
    4. Hybrid data
    Show answer

    A. Analog data

  2. A collection of 8 bits is called as a _____

    1. Bit
    2. Byte
    3. KB
    4. MB
    Show answer

    B. Byte

  3. Any tube of sound, including music and voice, is considered as ____ data.

    1. audio
    2. graphic
    3. Video
    4. text
    Show answer

    A. audio

  4. _____ is a mathematical discipline that is used for designing digital circuits in a digital computer.

    1. Boolean Algebra
    2. Newmans Algebra
    3. Kerns Algebra
    4. Keplers Algebra
    Show answer

    A. Boolean Algebra

  5. _____ data can have any value within a defined range and it is continuos.

    1. Graphic
    2. Hybrid
    3. Analog
    4. Digital
    Show answer

    C. Analog

  6. The right most bit is the ____ and has the smallest positional weight.

    1. LSB
    2. PSB
    3. MSB
    4. NSB
    Show answer

    A. LSB

  7. Which of the following are not methods of the java.lang.string class?

    1. substring
    2. append
    3. replace
    4. concat
    Show answer

    B. append

  8. A ___ is a collection of variables of the same type that are referenced by a common name.

    1. Program
    2. Array
    3. Constant
    4. Variable
    Show answer

    B. Array

  9. ____ are otherwise called as literals.

    1. Data
    2. Variables
    3. Constants
    4. Strings
    Show answer

    D. Strings

  10. If the elements are stored in row wise manner it is called as ___ order.

    1. Row-major
    2. Column-major
    3. Column
    4. Row
    Show answer

    A. Row-major

  11. _____ Dimensional array comprising of finite homogenous elements.

    1. One
    2. Two
    3. Three
    4. Multi
    Show answer

    A. One

  12. ____ is a member function of standard output stream i.e., ostream.

    1. Reads ()
    2. Writes ()
    3. Print ()
    4. Write ()
    Show answer

    D. Write ()

  13. Advertisement
  14. When a class object goes out of scope, the function that gets executed is ____

    1. Constructor
    2. Destructor
    3. Friend
    4. Inline
    Show answer

    B. Destructor

  15. Which is executed automatically when the control reaches the end of the class scope?

    1. Constructor
    2. Destructor
    3. Overloading
    4. Copy constructor
    Show answer

    B. Destructor

  16. The special character related to destructor is ___

    1. +
    2. !
    3. ?
    4. ~
    Show answer

    D. ~

  17. The constructor without any parameter is called as ___

    1. Initial constructor
    2. Parameterized constructor
    3. Default constructor
    4. Instance parameter
    Show answer

    B. Parameterized constructor

  18. The constructor defined by the computers in the absence of user defined constructor is ____

    1. Copy
    2. Abstract
    3. Default
    4. Destructor
    Show answer

    C. Default

  19. The constructors defined by the computers in the absence of user defined constructor is called as ____

    1. Non-parameterized
    2. Default
    3. Compiler generated
    4. All of these
    Show answer

    C. Compiler generated

  20. How many destructors a class can have?

    1. 1
    2. 2
    3. 3
    4. 4
    Show answer

    A. 1

  21. Constructor should be declared under the scope ___

    1. Public
    2. Private
    3. Protected
    4. Pointer
    Show answer

    A. Public

  22. Which of the following cannot have arguments?

    1. Operator overloading
    2. Function overloading
    3. Constructor
    4. Destructor
    Show answer

    D. Destructor

  23. Which of the following do not return any value ____

    1. Constructor and destructor
    2. Friend functions
    3. Inline functions
    4. Member functions
    Show answer

    A. Constructor and destructor

  24. When an instance of a class comes into scope, the function that executed is ____

    1. Destructor
    2. Constructor
    3. Inline
    4. Friend
    Show answer

    B. Constructor

  25. The destructor is prefixed by the character ___

    1. ~
    2. %
    3. #
    4. &
    Show answer

    A. ~

  26. Advertisement
  27. Which one of the following is automatically executed when an object is created?

    1. Constructor
    2. Destructor
    3. Inline function
    4. Member function
    Show answer

    A. Constructor

  28. The name of constructor must be ___

    1. Same as object name
    2. Same as one of the member function
    3. Same as class name
    4. None of the given
    Show answer

    C. Same as class name

  29. When an object is passed by reference to constructor, the constructor that is executed is _____

    1. Inline
    2. Default
    3. Static
    4. Copy
    Show answer

    D. Copy

  30. The parity bit is added for which purpose?

    1. Control key
    2. Error detection
    3. Indexing
    4. Coding
    Show answer

    B. Error detection

  31. ASCII Code is a 7 bit code for

    1. Other symbols
    2. Numbers
    3. Letters
    4. All of these
    Show answer

    D. All of these

  32. The decimal equivalent of binary number 0.0111 is

    1. 4.375
    2. 0.4375
    3. 0.5375
    4.  -0.4375
    Show answer

    B. 0.4375

Advertisement