Question

Question 5 What is the data type in the declaration: double total; A) it hasn't any...

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 cannot change 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 out during 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. That number is stored in the array at element zero.

}

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question 5:
D)double

Question 6:
E)one

Question 7:
True

Questio 8:
True

Question 9:

C) this will always true

Question 10:
True

question 11:
D)Switch and Do While

question 12:
C)string

question 13:
B)RED

Question 14:
the value of array[0] at the at line of the code is 4.
Explanation:

changeA(array);//at this line of code ,
the value is incremented by 1.
so 2+1=3

changeB(array);//at this line of code ,
the value is incremented by 1.
so 3+1=4

changeC(array[0]);//when it reaches this line,
the value is 4.

Add a comment
Know the answer?
Add Answer to:
Question 5 What is the data type in the declaration: double total; A) it hasn't any...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT