Question: Need help with these C++ questions Question 1 If (var ==false) is testing a: a string a character a boolean variable an array 2 points

Need help with these C++ questions

Question 1

If (var ==false) is testing a:

a string

a character

a boolean variable

an array

2 points

Question 2

A function can not have void as a return type.

true

false

2 points

Question 3

The arguments in a function calling statement must match the arguments in the function's header ________________________.

in number, order, and type

in number and type only

in number, order, and name

in number and order only

2 points

Question 4

What is the subscript of the last element in the array Table if is defined as follows: float Table[30];

30

31

29

0

2 points

Question 5

Which of the following appear in a function header (the first line of a function definition/implementation)?

The function name, return data type, and argument data types.

The function name, return data type, argument data types, and argument names.

The function name, return data type, and argument names

2 points

Question 6

The following line of code: temp = numAr[8];

copies the value from the variable temp into position 8 of numAr

copies the value from position 8 of numAr into the variable temp

copies 8 values from numAr into the variable temp

copies 8 into the variable temp

2 points

Question 7

What does the letter "D" look like inside the computer?

d

D

decimal 68

decimal 100

2 points

Question 8

What will be displayed by the following code?

 int fn( int n ) { n++; } 
int main() { int num = 3; fn( num ); cout << num; return 0; }

2

3

4

0

2 points

Question 9

If an array called AR has been properly declared to hold 1000 boolean values, then its subscripts will range from _____ to _____.

0 to 1

0 to 999

1 to 1000

0 to 1000

2 points

Question 10

The return type void indicates that the function will return ______.

the null address

an integer

more than one value

nothing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!