The 'C++ Mid Term' quiz assesses understanding of C++ functions, including call-by-reference, void functions, and output interpretation. It tests practical coding skills and theoretical knowledge, essential for students and programmers aiming to master C++.
Garbage
60
30
33
Rate this question:
For all variables
When the function needs to change the value of one or more arguments
Never
Only in void functions
Rate this question:
33.5
33
Value
Garbage
Rate this question:
Int calculateCost(char name);
Char calculateCost(int count);
Int calculateCost int count;
Int calculateCost(int count);
Rate this question:
36.0
6.0
3.0
2.456
Rate this question:
The inputs and outputs of a program
The part of the computer that does the processing
A finite set of steps to solve a problem
A complete computer program
Rate this question:
Or
And
Not
None of the above
Rate this question:
0.67
0.6666667
0.00
0
Rate this question:
4
2
8
16
Rate this question:
Or
And
Not
None of the above
Rate this question:
Problem-solving
Implementation
Marketing the final program
Rate this question:
An algorithmic design
A black-box methodology
Actual parameters
Rate this question:
As each function is developed
At the end of the coding
Only if there appear to be problems
Only if your instructor requires it.
Rate this question:
3
0
-1
99
Rate this question:
Returns the most fabulous number
Returns the largest whole number
Returns the negative value of num
Returns the absolute value of num
Rate this question:
Can not use a for-loop for this
I is not initialized
Infinite loop
Off-by-one error
Rate this question:
Return
MyInt
MyInteger
Total3
Rate this question:
Int
Char
Enum
Long
All are correct
Rate this question:
22.0
12.0
10.0
14.0
Rate this question:
Be pass by value
Be a void function
Return all values needed
Be a call by reference function
Rate this question:
//Postcondition: None
//Postcondition: the values of left and right are exchanged.
//Postcondition: left has the value of right
//Postcondition: left and right are unchanged
Rate this question:
4
0
24
48
Rate this question:
Run-time error
Operator error
Syntax error
Logic error
Rate this question:
Hardware
Algorithm
Program
CPU
Rate this question:
0
30
33
Garbage
Rate this question:
An output function.
A returned value.
An executable statement.
A comment
Rate this question:
–10 0 0
0 1 0 0
1 0 0 0
0 0 1 0
Rate this question:
35
40
50
10
Rate this question:
The names should be different with the same number and/or types of parameters.
The names should be the same with different number and/or types of parameters.
The names should be different with different number and/or types of parameters.
The names should be the same with the same number and/or types of parameters.
Rate this question:
1
2
4
16
Rate this question:
Analysis
Design
Data Entry
Implementation
Testing
Rate this question:
Char ch='b';
Char ch='0';
Char ch=65;
Char ch="cc";
Rate this question:
3.4
4
3
Unknown
Rate this question:
3
0.5
0
0.75
Rate this question:
15
4
3
3.75
Rate this question:
The program will not compile
The program will not link
The program will not run without a run-time error
The program will run but probably not give you the correct information.
Rate this question:
Their data types
Their relative positions in the parameter and argument lists
Their names
They are not matched up at all.
Rate this question:
5.75
4.75
1.75
3.75
Rate this question:
Value
Constance
Scope
Locality
Rate this question:
The value of x
Nothing, it is a void function
The value of y
The variable x (or its memory location)
Rate this question:
A stub
Abstraction
Polymorphism
A driver
Rate this question:
Neither function should return a value
Function definitions may not be nested
Both parameters to f2 should be pass-by reference
In f2, a can not be assigned b.
Nothing is wrong
Rate this question:
13
35
48
0
Rate this question:
3
4
5
0
Rate this question:
The cost for 15 items is 3.00, and the tax for 3.00 is 0.30;
The cost for 15 items is 0.00, and the tax for 3.00 is 0.00;
The cost for 15 items is 0.00, and the tax for 3.00 is 0.30;
The cost for 15 items is 3.00, and the tax for 3.00 is 0.00;
Rate this question:
(x>15 && y
(x>=15 && y < 3)
(x>=15 || y < 3)
(x>15 || y < 3)
Rate this question:
Quiz Review Timeline (Updated): Feb 17, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Object Oriented Programming With C++
Explore key concepts of Object Oriented Programming in C++ through this interactive assessment. Cover topics from basic syntax to advanced principles like inheritance and...
Questions:
20 |
Attempts:
280 |
Last updated:
Mar 17, 2023
|
Let's Have Some Fun ^_^
A fun and engaging quiz designed to test knowledge of C++ programming basics, including syntax, control structures, and output operations.
Questions:
10 |
Attempts:
104 |
Last updated:
Mar 19, 2023
|
C++ Practice Test Quiz!
This C++ Practice Test Quiz assesses fundamental programming skills in C++, covering basic operations, conditional statements, logical expressions, and compiler usage. It is...
Questions:
22 |
Attempts:
3147 |
Last updated:
Jan 19, 2025
|
Programming Practices Using C++
Explore key C++ programming concepts through this targeted quiz. Assess your understanding of singleton classes, constructors, inheritance, and more. Enhance your programming...
Questions:
70 |
Attempts:
683 |
Last updated:
Mar 19, 2023
|
C++ Quiz 4
C++ Quiz 4 assesses knowledge of fundamental C++ programming concepts including type casting, function overloading, and standard library functions. It is designed to test...
Questions:
17 |
Attempts:
708 |
Last updated:
Feb 17, 2023
|
C++ Quiz 2
C++ Quiz 2 tests understanding of basic C++ programming concepts including identifiers, arithmetic operations, input\/output operations, and data representation. It is designed to...
Questions:
17 |
Attempts:
1182 |
Last updated:
Mar 21, 2023
|
Wait!
Here's an interesting quiz for you.