Cpp Quiz interview questions – page 4
118 questions. Tap “Show answer” to check yourself.
-
____ storage class global variable known to all functions in the current program.
- Register
- Extern
- Static
- Auto
Show answer
B. Extern
-
The address number starts at ___
- 1
- 2
- 3
- Null
Show answer
D. Null
-
_____ are the kind of data that variables hold in a programming language.
- Conditional type
- Constant type
- Variable type
- Data types
Show answer
D. Data types
-
The operands and the operators are grouped in a specific logical way of evaluation is called ____
- Assignment
- Association
- Arithmetic
- Class
Show answer
B. Association
-
Rick Mascitti coined the name ___
- Visual BASIC
- COBOL
- C++
- BASIC
Show answer
C. C++
-
____ is a sequence of characters surrounded by double quotes.
- Constant
- Numeric
- Character
- String literal
Show answer
D. String literal
-
How many fundamental data types are there in C++?
- 1
- 2
- 3
- 4
Show answer
C. 3
-
____ is an operator which returns the memory size requirements in terms of bytes.
- Double
- Size
- Size of
- Long
Show answer
C. Size of
-
What are shift operators?
- <<
- >>
- >
- Both (a) and (b)
Show answer
D. Both (a) and (b)
-
_____ variable of the same data type can be declared in a single declaration statement.
- Two
- Three
- Only one
- More than one
Show answer
D. More than one
-
Which one gives special meaning to the language compiler?
- Constant
- Variable
- Keywords
- Compiler
Show answer
C. Keywords
-
Which operator requires one operand?
- Unary
- Binary
- Ternary
- Both (a) and (b)
Show answer
A. Unary
- Advertisement
-
___ data type to indicate the function does not return a value.
- Static
- Main
- Public
- Void
Show answer
C. Public
-
C++ was developed by ___
- Thomas Kushz
- John Kemney
- Bjarne Stroutstrup
- James Goling
Show answer
C. Bjarne Stroutstrup
-
Which one of the following is a keyword?
- Size
- Key
- Jump
- Switch
Show answer
D. Switch
-
____ is the smallest individual unit in a program.
- Variable
- Control
- Character
- Token
Show answer
D. Token
-
What is a constant that contains a single character enclosed within single quotes?
- Character
- Numeric
- Fixed
- Floating point
Show answer
A. Character
-
The modulus operator uses ___ character.
- +
- *
- /
- %
Show answer
D. %
-
Every variable should be separated by ___ separator.
- Dot
- Colon
- Comma
- Semicolon
Show answer
C. Comma
-
Auto, static, extern and register are called as ___
- Static
- Register
- Auto
- Storage specifier
Show answer
D. Storage specifier
-
How many storage specifies are there in a C++?
- 2
- 3
- 4
- 5
Show answer
C. 4
-
Signed, unsigned, long and short are some of the ___
- Void
- Data
- Derived data
- Modifiers
Show answer
D. Modifiers
-
Logical AND (&&) and Logical OR (||) are ___ operators.
- Logical
- Equality
- Class member
- Comma
Show answer
A. Logical
-
____ operators have lower precedence to relational and arithmetic operators.
- Conditional
- Boolean
- Logical
- Relational
Show answer
D. Relational
- Advertisement
-
How many C++ data types are broadly classified?
- 2
- 3
- 4
- 5
Show answer
B. 3
-
Float and double are related to ____ data type.
- Void
- Floating
- Fixed
- Integral
Show answer
B. Floating
-
Variable names must begin with ___
- #
- $
- Number
- Letter
Show answer
D. Letter
-
Integer values are stored in ___ bit format in binary form.
- 8
- 16
- 32
- 64
Show answer
B. 16