Name_______________________
Login___________________SID________
CS 010: Introduction to
Computer Science I
Quiz 1: 10 minutes
- Which
of the following is NOT considered hardware?
a.
Operating
System
b.
CPU
c.
RAM
d.
keyboard
- Which
estimate of the number of computers in this room is closest?
a.
0
b.
1
c.
10
d.
100
e.
1000
f.
10000
- Assemblers
came before compilers in the evolution of computer programming.
a.
TRUE
b.
FALSE
- All statements
in C++ must end with a semicolon.
a.
TRUE
b.
FALSE
- What
is output to standard output (the monitor) by the following statement? In
other words, what will actually be visible on the monitor?
int count = 10;
cout << count;
- count
- “count”
- 10
- “10”
- What
is output to standard output by the following statements?
int count = 10;
cout << “count”;
- count
- “count”
- 10
- “10”
- Which
of the following is an example of a literal?
- 10
- 4.5
- “count”
- count
- All except D are examples
of literals
- None
of the above are examples of literals
- All expressions
in C++ must end with a semicolon?
- TRUE
- FALSE
- What
is output to standard output by the following statement?
cout << 5 + 10 * 20;
- 5
+ 10 * 20
- 205
- 300
- This
is not a legal statement in C++.
- What will be stored in the variable called result after
the following statements have executed? (Hint: 10 and 20 are both
integers)
double result;
result = 10 / 20;
- 0.5
- 0.0
- 10
- 1.0