Question: 1
C++ was developed by ___
Bjarne Stroutstrup.
Question: 2
Which one of the following is a keyword?
Switch.
Question: 3
____ is the smallest individual unit in a program.
Token.
Question: 4
What is a constant that contains a single character enclosed within single quotes?
Character.
Question: 5
The modulus operator uses ___ character.
%.
Question: 6
Every variable should be separated by ___ separator.
Comma.
Question: 7
Auto, static, extern and register are called as ___
Storage specifier.
Question: 8
How many storage specifies are there in a C++?
4 (Auto, Register, extern and static).
Question: 9
Signed, unsigned, long and short are some of the ___
Modifiers.
Question: 10
Logical AND (&&) and Logical OR (||) are ___ operators.
Logical.
Question: 11
____ operators have lower precedence to relational and arithmetic operators.
Relational.
Question: 12
How many C++ data types are broadly classified?
3(Fundamental data type, derived data type and user-defined data type).
Question: 13
Float and double are related to ____ data type.
Floating.
Question: 14
Variable names must begin with ___
Letter.
Question: 15
Integer values are stored in ___ bit format in binary form.
16.
User definedQuestion: 1
Additive, Multiplicative, shift, Bitwise logical and assignment operators is ____ operator.
Binary.
Question: 2
Binary plus (+) and Binary minus (-) are ___ operator.
Additive.
Question: 3
What is the length of double data type?
64.
Question: 4
Which operator requires three operands?
Bitwise.
Question: 5
What are bitwise operators?
&,^,|.
Question: 6
The constant that should not have fractional part is ___
Integer.
Question: 7
What is the other name for variable?
Identfier.
Question: 8
____ constant is a signed real number.
Floating point.
Question: 9
How many operators are classified in C++?
13.
Question: 10
____ is the C increment Operator in C++.
++.
Question: 1
Rick Mascitti coined the name ___
C++.
Question: 2
____ is a sequence of characters surrounded by double quotes.
String literal.
Question: 3
How many fundamental data types are there in C++?
3.
Question: 4
____ is an operator which returns the memory size requirements in terms of bytes.
Sizeof.
Question: 5
What are shift operators?
>>, <<.
Question: 6
____ class is another qualifier that can be added to a variable declaration.
Storage.
Question: 7
____ storage class global variable known to all functions in the current program.
Extern.
Question: 8
The address number starts at ___
Null.
Question: 9
_____ are the kind of data that variables hold in a programming language.
Data type.
Question: 10
The operands and the operators are grouped in a specific logical way of evaluation is called ____
Association.
Question: 1
Which one gives special meaning to the language compiler?
Keywords.
Question: 2
Which operator requires one operand?
Unary.
Question: 3
___ data type to indicate the function does not return a value.
Void.
Question: 4
___ type is further divided into int and char.
Integral.
Question: 5
The enum, unsigned int, short int and int data type’s uses ___ bits.
16.
Question: 6
Which of the following are good reasons to use an object oriented language?
We can define our own data types.
Question: 7
In a class specified, data or functions and designated private are accessible
To member functions of that class.
Question: 8
When a language has the capability to produce new data types, it is called
Extensible.
Question: 9
Keyword typed is used to declare
A synonym for an existing type.
Question: 10
In C++ programming language, to write data that contains variables of type flat to an object of
type of stream, which of the following should be used?
Write().
Question: 1
_____ variable of the same data type can be declared in a single declaration statement.
More than one.
Question: 2
The special characters like tab, backspace, line feed, null, back slash are called ____ character
constant
Non_graphic.
Question: 3
What type of integer starts with 0X?
Hexadecimal.
Question: 4
The sequence of digits starting with 0 is treated as ___ constant.
Octal.
Question: 5
The body of function contains ___
Question: 6
Where a condition is checked to see whether to do one or more iteration is _____
Sequencing.
Question: 7
Which one is the valid real constant?
0.8, 89.234.
Question: 8
______ variables are sensitive to the data type they point to.
Pointer.
Question: 9
For example class boy, ____ is a user defined data type of class.
Boy.
Question: 10
When a=6, c= ++a what will be the value of c?
7.
Question: 11
When a=6 and c=a++ what is the value of c?
6.
Question: 12
The statement int A; b; is invalid because ____
ariables should be separated by Comma.
Question: 13
What is a file?
A file is a collection of information that has been given a name and is stored in secondary
memory.
Question: 14
What is the default file extension for all Word documents?
Docx.
Question: 15
The ____ key and the ___ key can be used in combination with other keys to perform shortcuts
and special tasks.
Control, Alt.
Question: 1
____ literals are treated as array of characters.
String.
Question: 2
Which one holds the values or constants in memory boxes?
Variable.
Question: 3
In which type of constant the Decimal numbers, integer and floating-point are related?
Numeric.
Question: 4
The basic types are collectively called as ___
Tokens.
Question: 5
____ are data items whose value cannot be changed
Constants.
Question: 6
Every variable will be referred by its ___
Address.
Question: 7
Which storage class defines local variable known to the block in which they are defined?
Auto.
Question: 8
____ allows users to define the user defined data type identifier.
Type definition.
Question: 9
What is the length of long double data type?
80.
Question: 10
The names beginning with an underscore are reserved for _____ variable
Internal system.
Question: 1
Which punctuator is used to group a set of C++ statements?
{}.
Question: 2
____ refers to the process of changing the data type of the value stored in a variable.
Type cast.
Question: 3
____ data types are structure, union, class and enumeration.
User defined.
Question: 4
Which operator is used to compare numerical values?
Relational.
Question: 5
____ allocates memory, based on the data type of the variable.
Compiler.
Question: 6
Redirection redirects
A stream from a file to the screen.
Question: 7
Memorizing the new items used in C++ is
Something you can return to later.
Question: 8
The scope resolution operator usually
Specifies a particular class.
Question: 9
An enumerated data type brings together a group of
Constant values, integers with user defined names.
Question: 10
A variable defined within a block is visible
From the point of definition onward in the block.
Question: 1
The library function exit( ) causes an exit from
The program in which it occurs.
Question: 2
The dot operator connects which of the following two entities?
Class object and member of that class .
Question: 3
A static function
Can be called using the class name and function.
Question: 4
The function bad( ) is declared in the header file.
<math.h>.
Question: 5
In C++, a function contained within a class is called
Member function.
Question: 6
A function argument is a
Value sent to function by the calling program.
Question: 7
The break statement causes an exit
From all loops and switches.
Question: 8
Element double array [7] is which element of the array?
Eighth.
Question: 9
In C++, a structure brings together a group of
Related data items, variables.
Question: 10
In C++, which of the following can legitimately be passed to a function?
A constant, A variable, A structure.
Question: 11
In a linked list
Each link contains a pointer to the next link.
Question: 1
The public files in a class library usually contain
Class declarations.
Question: 2
The member function can always access the data in
The object of which is a member.
Question: 3
In a stock, the data item placed on the stack first is
The last data item to be removed.
Question: 4
Breaking a program into several files is desirable because
A program can be divided functionally.
Question: 5
Turbo C++ library function can be used
Question: 6
In new operator
Each link contains a pointer to the next link.
Question: 7
A virtual base class is useful when
Identification of a function in a base class is ambiguous.
Question: 8
The keyword void is used to declare
A member function that is defined in a subclass.
Question: 9
Virtual functions allow to
Use same function call to execute member functions of objects from different classes.
Question: 10
Classes are useful because they
Permit data to be hidden from other classes.
Question: 1
A base class
will be a generalized version of its derived classes.
Question: 2
Copy constructor is invoked when a/an
Function returns by value.
Question: 3
A project file
contains instructions for compiling and linking.
Question: 4
In C++, programs, the keyword friend appears in the
class allowing access to another class, private section of a class, public section of a class.
Question: 5
The member function can always access the data in
The object of which is a member.
Question: 6
A C++ stream is
A flow of data from one place to another.
Question: 7
The keyword volatile is used to declare
Objects that can be modified outside of a program control.
Question: 8
In C language, the break statement causes an exit
From the innermost loop or switch.
Question: 9
In a for loop with a multi-statement, loop body semicolons should appear
The test expression, Each statement within the loop body.
Question: 10
In C++, when an argument is passed by reference
A variable is created in the function to hold the argument’s value.