Question 1 Value X Following Int X 5 X X X X 14 B 10 C 13 D 15 Question 2 Last Line Value Q37224964

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:

  1. Void or Data Type
  2. the name
  3. 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.