Question 1
What is the value of x after the following
int x = 5;
x++;
x++;
x+=x++;
A)14
B)10
C)13
D)15
Question 2
The last line in value returning function (before the }) shouldcontain the word return.
True
False
Question 3
This contains three parts:
- Void or Data Type
- the name
- optional parameter list
A)Menu System
B)Function Header
C)Switch
Question 4
What is a variable?
A)a pointer
B)a place in memory to hold data
C)int
D)a computer programming language
Question 5
What is the data type in the declaration:
double total;
A) it hasn’t any data type assigned to it yet
B) you can’t tell the data type from this declaration
C) total
D) double
E) int
Question 6
How many pieces of data can a variable hold at a given time?
A)two
B)infinite
C)it depends on the data
OR
OR