Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MULTIPLE CHOICE Please select the best answer. 1. All of the following are examp

ID: 3674309 • Letter: M

Question

MULTIPLE CHOICE Please select the best answer.

1. All of the following are examples of high-level programming languages, except:

a. C#

b. C

c. Java

d. C++

e. Assembly

2. Which of the following is a valid call to a method?

a. Console.Write;

b. Console.Write[“ok”];

c. Write.Console(“ok”);

d. Console.Write(“ok”);

e. None of the above

3) Which statement increases the result by 15?

a. 15 += result;

b. 15 =+ result;

c. result =+ 15;

d. result += 15;

e. result = 15 +;

4) What is stored in ans as a result of the arithmetic expression, given the following declarations? int ans = 10, v1 = 5, v2 = 7, v3 = 18; ans += v1 + 10 * (v2/5) + v3 / v2;

a. 18

b. 32

c. 27

d. 30

e. None of the above

5) Which of the following is placed in a method heading to indicate that no value will be returned?

a. noReturn

b. void

c. arguments

d. static

e. public

Explanation / Answer

1)e. Assembly
2)d. Console.Write(“ok”);
3)d. result += 15;
4)e. None of the above
5)b. void

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote