NEW
Font size
WorksheetsC++ Workshop 2021 [Quiz-2]
Total questions: 10
Worksheet time: 5mins
What is the only function all C++ programs must contain?
start()
system()
main()
program()
Compile Error
Inside Fun1()
Inside Fun2()
Inside Fun1() Inside Fun2()
Inside Fun2() Inside Fun1()
Switch Statement
Is a statement with a set of conditions called cases
Is a case
Is a condition with no cases
Is a boolean statement
Do while loops
Runs a statement once
Runs a statement twice
Runs a statement multiple times or not within a boolean condition
Doesn't run at all
If-else
Optional value for the program to execute
Is a condition followed by a statement or a set of statements
Is a statement followed by a condition or a set of conditions
Function with a value
What is the difference when allocating the following memory?
int array1[15];
int array2[3][5];
array1 is larger
array2 is larger
The size allocated is the same
How to find Address of a variable
*
^
&
<<
Which of the following is the correct syntax for declaring the array?
int array [5]
int array [5];
Array[5];
None of the above
What are mandatory parts in the function declaration?
parameters, function name
parameters, variables
return type, function name, parameters
return type, function name
What will be the output of the following C++ code?
10
0
Error
Segmentation fault
