Cpp Quiz interview questions – page 3
118 questions. Tap “Show answer” to check yourself.
-
The special characters like tab, backspace, line feed, null, back slash are called ____ character constant
- Floating
- String
- Graphic
- Non-graphic
Show answer
D. Non-graphic
-
What type of integer starts with 0X?
- Decimal
- Binary
- Hexadecimal
- Octal
Show answer
C. Hexadecimal
-
The sequence of digits starting with 0 is treated as ___ constant.
- Penta
- Hexadecimal
- Binary
- Octal
Show answer
D. Octal
-
The body of function contains ___
- Return statement
- A variable declaration part
- Processing part
- All the above
Show answer
D. All the above
-
Which of the following is not a C++ keyword?
- This
- New
- Cont
- If
Show answer
C. Cont
-
____ is a variable that holds a memory address.
- Long double
- Float
- Char
- Pointer
Show answer
D. Pointer
-
Addressing is done using ___ number system.
- Decimal
- Hexadecimal
- Octal
- Binary
Show answer
B. Hexadecimal
-
Which one of the following is a membership operator?
- !
- &
- ::
- .
Show answer
C. ::
-
____ Operator requires two operands.
- Logical
- Binary
- Unary
- Ternary
Show answer
B. Binary
-
Additive, Multiplicative, shift, Bitwise logical and assignment operators is ____ operator.
- Conditional
- Relational
- Unary
- Binary
Show answer
D. Binary
-
Binary plus (+) and Binary minus (-) are ___ operator.
- Additive
- Multiplicative
- Shift
- Bitwise
Show answer
A. Additive
-
What is the length of double data type?
- 8
- 16
- 32
- 64
Show answer
D. 64
- Advertisement
-
Which operator requires three operands?
- Unary
- Binary
- Ternary
- Bitwise
Show answer
D. Bitwise
-
What are bitwise operators?
- &
- !
- ^
- All (a, b and c)
Show answer
D. All (a, b and c)
-
Auto variables get undefined values known as ___
- Garbage
- Auto
- Register
- Static
Show answer
A. Garbage
-
____ storage class variables are defined in another program.
- Register
- Auto
- Extern
- Static
Show answer
C. Extern
-
____ Type is used to declare a generic pointer in C++.
- Int
- Void
- Static
- Float
Show answer
B. Void
-
Which is a conditional operator?
- @
- >
- <
- ?:
Show answer
D. ?:
-
Built in Data type is also called as ___ data type.
- Fundamental
- Secondary
- Void
- Integer
Show answer
A. Fundamental
-
The constant that should not have fractional part is ___
- Float
- Double
- Integer
- Exponent
Show answer
C. Integer
-
What is the other name for variable?
- While
- Visual
- Identifier
- Constant
Show answer
C. Identifier
-
____ constant is a signed real number.
- Char
- String
- Integer
- Floating point
Show answer
D. Floating point
-
___ type is further divided into int and char.
- Float
- Int
- Char
- Integral
Show answer
D. Integral
-
The enum, unsigned int, short int and int data type’s uses ___ bits.
- 8
- 16
- 32
- 64
Show answer
B. 16
- Advertisement
-
Where a condition is checked to see whether to do one or more iteration is _____
- Definite iteration
- Sequencing
- Indefinite iteration
- None of these
Show answer
B. Sequencing
-
Which one is the valid real constant?
- 85.46
- 85
- 0.85
- Both a and c
Show answer
D. Both a and c
-
______ variables are sensitive to the data type they point to.
- Char
- Pointer
- Integer
- Float
Show answer
B. Pointer
-
For example class boy, ____ is a user defined data type of class.
- Class
- Type
- Boy
- User
Show answer
C. Boy
-
When a=6, c= ++a what will be the value of c?
- 6
- 7
- 8
- 9
Show answer
B. 7
-
____ class is another qualifier that can be added to a variable declaration.
- Register
- Static
- Sub
- Storage
Show answer
D. Storage