Computer interview questions – page 126
4,197 questions. Tap “Show answer” to check yourself.
-
Sound waves, telephone signals, temperatures and all other signals that are not broken into bits are examples of _____
- Analog data
- Digital data
- Graphic data
- Hybrid data
Show answer
A. Analog data
-
A collection of 8 bits is called as a _____
- Bit
- Byte
- KB
- MB
Show answer
B. Byte
-
Any tube of sound, including music and voice, is considered as ____ data.
- audio
- graphic
- Video
- text
Show answer
A. audio
-
_____ is a mathematical discipline that is used for designing digital circuits in a digital computer.
- Boolean Algebra
- Newmans Algebra
- Kerns Algebra
- Keplers Algebra
Show answer
A. Boolean Algebra
-
_____ data can have any value within a defined range and it is continuos.
- Graphic
- Hybrid
- Analog
- Digital
Show answer
C. Analog
-
The right most bit is the ____ and has the smallest positional weight.
- LSB
- PSB
- MSB
- NSB
Show answer
A. LSB
-
Which of the following are not methods of the java.lang.string class?
- substring
- append
- replace
- concat
Show answer
B. append
-
A ___ is a collection of variables of the same type that are referenced by a common name.
- Program
- Array
- Constant
- Variable
Show answer
B. Array
-
____ are otherwise called as literals.
- Data
- Variables
- Constants
- Strings
Show answer
D. Strings
-
If the elements are stored in row wise manner it is called as ___ order.
- Row-major
- Column-major
- Column
- Row
Show answer
A. Row-major
-
_____ Dimensional array comprising of finite homogenous elements.
- One
- Two
- Three
- Multi
Show answer
A. One
-
____ is a member function of standard output stream i.e., ostream.
- Reads ()
- Writes ()
- Print ()
- Write ()
Show answer
D. Write ()
- Advertisement
-
When a class object goes out of scope, the function that gets executed is ____
- Constructor
- Destructor
- Friend
- Inline
Show answer
B. Destructor
-
Which is executed automatically when the control reaches the end of the class scope?
- Constructor
- Destructor
- Overloading
- Copy constructor
Show answer
B. Destructor
-
The special character related to destructor is ___
- +
- !
- ?
- ~
Show answer
D. ~
-
The constructor without any parameter is called as ___
- Initial constructor
- Parameterized constructor
- Default constructor
- Instance parameter
Show answer
B. Parameterized constructor
-
The constructor defined by the computers in the absence of user defined constructor is ____
- Copy
- Abstract
- Default
- Destructor
Show answer
C. Default
-
The constructors defined by the computers in the absence of user defined constructor is called as ____
- Non-parameterized
- Default
- Compiler generated
- All of these
Show answer
C. Compiler generated
-
How many destructors a class can have?
- 1
- 2
- 3
- 4
Show answer
A. 1
-
Constructor should be declared under the scope ___
- Public
- Private
- Protected
- Pointer
Show answer
A. Public
-
Which of the following cannot have arguments?
- Operator overloading
- Function overloading
- Constructor
- Destructor
Show answer
D. Destructor
-
Which of the following do not return any value ____
- Constructor and destructor
- Friend functions
- Inline functions
- Member functions
Show answer
A. Constructor and destructor
-
When an instance of a class comes into scope, the function that executed is ____
- Destructor
- Constructor
- Inline
- Friend
Show answer
B. Constructor
-
The destructor is prefixed by the character ___
- ~
- %
- #
- &
Show answer
A. ~
- Advertisement
-
Which one of the following is automatically executed when an object is created?
- Constructor
- Destructor
- Inline function
- Member function
Show answer
A. Constructor
-
The name of constructor must be ___
- Same as object name
- Same as one of the member function
- Same as class name
- None of the given
Show answer
C. Same as class name
-
When an object is passed by reference to constructor, the constructor that is executed is _____
- Inline
- Default
- Static
- Copy
Show answer
D. Copy
-
The parity bit is added for which purpose?
- Control key
- Error detection
- Indexing
- Coding
Show answer
B. Error detection
-
ASCII Code is a 7 bit code for
- Other symbols
- Numbers
- Letters
- All of these
Show answer
D. All of these
-
The decimal equivalent of binary number 0.0111 is
- 4.375
- 0.4375
- 0.5375
- -0.4375
Show answer
B. 0.4375