WorksheetsC++ Bootcamp 2k24
Total questions: 20
Worksheet time: 11mins
Who developed C++ programming language?
Dennis Ritchie
Prajwal Shah
James Gosling
Bjarne Stroustrup
What are the features of C++? (Multiple correct)
Object Oriented Programming Language
Standard Template Library (STL)
Very very simple language
Worst memory management
Which one of the following is not a Keyword in C++ Language?
free
auto
if
int
Which one of the following is a Derived Data Type?
int
float
pointer
char
Which of the following is a correct identifier in Cpp?
INT_1234
7VAR_NAME
$var_name
5variable
Which is more effective while calling the C++ functions?
call by surname
call by name
call by reference
call by value
What will be the output (if possible)?
Compilation Error
We Love C Plus Plus
We Love C Plus Plus
0
WeLoveCPlusPlus0
Which operators can be used to find if the number is odd or even?
&
(bitwise and)
%
(modulo)
-
(arithmetic subtraction)
!
(not operator)
What is a function in C++?
A variable declaration
A way to define classes
A code block that performs a specific task
A data structure for storing elements
Consider A is a 3 X 3 matrix, Eren wants to access the number 8 to do the rumbling! How can he access the number 8?
A[2][1]
A[1][1]
A[2][2]
A[2][0]
What are the parts of Recursion?
Base case
initialization case
Recursive case
Iteration case
Where the default value of parameter have to be specified?
Function Call
Function Definition
Function Prototype
Both B and C
Which keyword is used to allocate dynamic memory?
allocate
new
this
auto
Which of the following types is the language C++?
None of the above
Statically typed
Dynamically typed
All of the above
What is do-while loop also known as?
Exit Control
Entry Control
Per tested
For Each
Guess the output.
No output
I'm Ok
Compilation Error
None of the above
Guess the output.
-5 -6
-6 -7
-4 -5
NO OUTPUT
Guess the output.
Infinite Loop
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
Compilation Error
What is correct syntax of defining a pointer?
char *a
void *a
int *a
int a
'?:' is called (a) operator
