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

QUESTION 46 The following logic was intended to result in the numbers from 10 to

ID: 3703142 • Letter: Q

Question

QUESTION 46

The following logic was intended to result in the numbers from 10 to 1 being printed. What will it actually do?

Start

   count = 10

   While count > 0

   { Print count

   count = count + 1

}

Print "The countdown is finished."

Stop

It will print the numbers from 10 to 1 as intended.

It will actually print the numbers from 1 to 10.

It will print the numbers 10, 11, 12, and so on without stopping.

none of these are accurate

QUESTION 45

A ______ method is used to return a value from a class.

static

setter

mutator

getter

QUESTION 43

A class object can be ___________ .

stored in an array

passed to a method

both of these

neither of these

QUESTION 42

Which of the following can be overloaded?

class names

destructors

constructors

none of these

QUESTION 39

A ________ file is the new version of a master file after transactions have been applied.

parent

child

sorted

none of these

QUESTION 38

A _______ file is the saved version of a master file reflecting data before transactions were applied.

parent

child

sorted

none of these

QUESTION 37

A default contructor for a class requires __________ .

only one parameter

multiple parameters

no parameters

none of these

QUESTION 36

If the loop control variable is not altered within the loop, what will often happen?

The loop will never execute.

An infinite loop will occur.

The loop will execute only one time.

none of these

QUESTION 35

For a decision with two alternatives (one for true and one for false), you should use a(n) ________ structure, while for a decision with four alternatives (or maybe more), you should use a(n) _______ structure.

loop; if-else;

sequence; if-else;

if-else; case;

none of these

a.

It will print the numbers from 10 to 1 as intended.

b.

It will actually print the numbers from 1 to 10.

c.

It will print the numbers 10, 11, 12, and so on without stopping.

d.

none of these are accurate

Explanation / Answer

Question 46
Answer:
d. none of these are accurate

Question 45
Answer:
d.getter

Question 43
Answer:
c.both of these


Question 42
Answer:
c. constructors


Question 39
Answer:
d. none of these


Question 38
Answer:
b. child

Question 37
Answer:
c. no parameters


Question 36
Answer:
b. An infinite loop will occur.

Question 35
Answer:
c. if-else; case

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