User|

Course| C++ Programming My spouse and i

Test| Week 5 Midterm Exam

Started| 11/12/12 your five: 06 PM HOURS

Submitted| 11/13/12 12: 28 EVENING

Status| Completed

Score| sixty four out of 100 details В

Time Elapsed| 2 hours, zero minute away of 2 several hours.

Instructions| The midterm exam involves multiple choice questions. You will have 2 hours to complete that. Good Luck!

Query 1

0 away of 2 points

|

| Research the following code snippet:

int greater_num(int num1, int num2)

Which of the following describes a constraint around the use of this kind of function? Answer | | | | | Selected Answer: | В В All the above outlined items. | Correct Answer: | В В The use of tarif does not let this function to be employed for a images program.

| | |

Problem 2

2 out of 2 details

|

| What is useful when coping with complex group of instructions to get developing the code? Response | | | | | Chosen Answer: | В В Carrying out a manual walkthrough on the piece of paper before the actual code is created. | Appropriate Answer: | В В Executing a manual walkthrough on the piece of paper before the actual code is created.

| | |

Question several

zero out of 2 points

|

| Which of the next is true about functions? Answer | | | | | Picked Answer: | В В Capabilities can have multiple guidelines and can returning multiple return values. | Correct Solution: | В В Function may have multiple parameters and will return one particular return value.

| | |

Question 5

0 out of 2 points

|

| Which of the subsequent must be offered when understanding a function? Response | | | | | Chosen Answer: | В В A name to get the function, a identity for each unbekannte, and a name pertaining to the come back value| Accurate Answer: | В В A name pertaining to the function, a term and type for each parameter, and a type for the return benefit

| | |

Question a few

a couple of out of two points

|

| Study the subsequent code snippet:

for (cnt = 0; cnt < 10; cnt++)

cout << "I'm too good!!!" << endl;

Which in turn of the pursuing debugging instructions may be used within the above code snippet to get checking in the event the loop works 10 times? Answer | | | | | Chosen Answer: | В В Each of the above shown items| Appropriate Answer: | В В All the above shown items

| | |

Problem 6

0 out of 2 details

|

| Precisely what is the error in the following function description?

int doubler(int old_value)

double new_value = old_value * 2;

Answer | | |

| Selected Solution: | В В The function returns a worth of type double. | Correct Solution: | В В The function does not return a value.

| | |

Issue 7

2 away of 2 points

|

| Which in the following is a correct 1st line of an event definition called calc_average that accepts three int parameters and earnings a twice? Answer | | | | | Selected Response: | В В double calc_average(int a, int b, int c)| Appropriate Answer: | В В twice calc_average(int a, int b, int c)

| | |

Question eight

a couple of out of two points

|

| Which from the following may be the finest choice for a return type from a function that prompts users to enter their particular password? Response | | | | | Selected Answer: | В В chain

Correct Response: | В В string

| | |

Question 9

2 away of 2 items

|

| Consider a function named calc, which welcomes two numbers as integers and results their quantity as an integer. Which usually of the subsequent is the correct statement to call the function calc? Answer | | | | | Selected Solution: | В В int amount = calc(2, 3);

Appropriate Answer: | В В int sum = calc(2, 3);

| | |

Question twelve

0 out of 2 points

|

| What is made for each insight parameter if a function is called? Answer | | | | | Selected Response: | В В None from the above

Right Answer: | В В...

Tags:

Essay on CARD 405 Interview Inquiries

Transcendentalism Positive or Adverse Essay