This quiz focuses on foundational C++ concepts, essential for the CPS 150 final exam. It covers keywords, identifiers, data types, syntax for comments and output operations, assessing readiness and deepening understanding of C++ programming.
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
Rate this question:
X = 15;
X = y;
15 = y;
Y = x;
Y = 15;
Rate this question:
+ and *
- and /
+ and /
+ and -
- and *
Rate this question:
Char
Double
Int
String
Bool
Rate this question:
Float and double
Int and int
Double and int
Char and float
Float and bool
Rate this question:
A
B
C
D
F
Rate this question:
A
B
C
D
F
Rate this question:
A
B
C
D
F
Rate this question:
\ \
/ /
!
*
(*
Rate this question:
For any value in number
For no value
For positive numbers
For even values
For negative values
Rate this question:
Relational
Logical (Boolean)
Neither
Rate this question:
(a+b) / c+d
A+b / c+d
A + (b/c) +d
A+b/(c+d)
(a+b) / (c+d)
Rate this question:
+
-
*
/
%
Rate this question:
'Sales' and 'sales' are considered different identifiers
An identifier cannot start with a digit
'the average' is a valid identifier
A keyword cannot be used as an identifier
An identifier must be declared by the programmer or in an #included library
Rate this question:
Ha Ha
Hee Hee
'Ha Ha' on one line followed by 'Hee Hee' on the next line
No output because there is a syntax error
No output, but there is no syntax error
Rate this question:
>
>=
=
Rate this question:
Relational
Logical (Boolean)
Neither
Rate this question:
Relational
Logical (Boolean)
Neither
Rate this question:
+
-
*
/
%
Rate this question:
15000
(15000
(15000 > income) && (income < 50000)
(15000 50000)
(15000 > income) || (income < 50000)
Rate this question:
1 + rand() / 6
6 + rand() / 1
6 + rand() % 1
1 + rand() % 6
(1 + rand()) / 6
Rate this question:
A variable declared in the main function has a definite value just by being declared (as in int x ;)
A variable can be given an initial value when declared, but it need not be done
A variable must be given an initial value when declared (as in int x(5) ;
All of the above
None of the above
Rate this question:
Relational
Logical (Boolean)
Neither
Rate this question:
Cout
Cout
Cout
All of the above
None of the above
Rate this question:
Cout
Cout >> "Welcome !" ;
Cin
Cout
Cin >> Welcome ! ;
Rate this question:
1
2
3
4
None of these
Rate this question:
The expression has the value true regardless if the value in ch
The expression has the value false regardless of the value in ch
The value of the expression cannot be determined unless we know the value in ch
The expression has a syntax error
The expression is valid, but it is NOT a Boolean expression
Rate this question:
A
B
C
D
F
Rate this question:
Relational
Logical (Boolean)
Neither
Rate this question:
15
17
19
20
21
Rate this question:
X / y
Static_cast(x / y)
Static_cast(x) / y
1.0 * (x / y)
(x / y) * 1.0
Rate this question:
The message 'Congratulations' is displayed regardless of the value in the variable 'average'
There is an empty (null) statement in this fragment
This fragment contains a syntax error so the program will not run
The if does not control the cout statement
The output from the fragment will not change if the == is replaced by !=
Rate this question:
Cout
Cout
Cout
Cout
Cout
Rate this question:
A
B
C
D
F
Rate this question:
Number
Integer
Main
Double
Single
Rate this question:
Quiz Review Timeline (Updated): Jul 30, 2024 +
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:
3146 |
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.