[Solved]-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:
- 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 type
D)none
E)one
Question 7
int a = 4, b = 9, c = 2,
Evaluate
c >= 2 && a < 5 || b < 8
True
False
Question 8
Arrays are passed by reference
True
False
Question 9
If (5 == 5 && 6 == 6 && 2 < 8 && 9 !=89)
A)No way of knowing
B)This will always be false
C)This will always be true
D)May be true or false
Question 10
If you pass a variable by VALUE to a function, the function cannotchange the value of the in the scope of the caller.
True
False
Question 11
Should be used with designing a menu driven program
A)Else and While Loop
B)Else if and Do While
C)Switch and For Loop
D)Switch and Do While
Question 12
Which is NOT a data type in Visual Studios 2017 C IDE
A)char
B)int
C)string
D)float
E)double
Question 13
if the sun comes out during the day and the moon comes outduring the night
if cruise ships sail on the ocean
if Valencia has a pro football team
Answer is RED
else
Answer is WHITE
else
Answer is GREEN
else
Answer is BLUE
A)WHITE
B)RED
C)GREEN
D)BLUE
Question 14
void changeA(int array[ ]){
array[0]++;
}
void changeB(int a[ ]){
array[0]++;
}
void changeC(int array){
array[2]++;
}
main(){
int array[10] = {2};
changeA(array);
changeB(array);
changeC(array[0]);
// What is the value of array[0] at this line of the code. Thatnumber is stored in the array at element zero.
}
Expert Answer
Answer to 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 la… . . .
OR

