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

QUESTION 1 in Do-while-loop...? a.the loop may not run any iteration b.the numbe

ID: 3877944 • Letter: Q

Question

QUESTION 1

in Do-while-loop...?

a.the loop may not run any iteration

b.the number of iterations is known in advanced

c.it checks the loop condition first

d.it  does the loop instructions first

QUESTION 2

A counter keeps track of _________.

a.the number of times an event has occurred

b.the number of machine cycles required by a segment of a program

c.the number of loop structures with a program

d.the number of times software has been revised

QUESTION 3

When two loops are nested, the loop that is contained be the other is the __________ loop.

a.captive

b.unstructured

c.inner

d.outer

QUESTION 4

To ensure that a user's entry is the correct data type, frequently you _________________.

a.prompt the user to verify that the type is correct.

b.use a method built into the programming language.

c.include a statement at the beginning of the program that lists the data types allowed

d.all of the above

QUESTION 5

A while loop ________.

a.has a body that must execute at least one time

b.is a type of pretest loop

c.can be replaced by a for loop

d.1+2

$ @85 LG .11 76% 6:04 AM 1thecs.s.lte luupw..:liutilu:1 OUE$TION 2 A courter keeps tr3ck of of timea an event has occumed 1he number of mochie cycks requred by senment of program 1he number of loop strctures with s progrsm ofumea a sottware haa bean 111.STICIN cop caplive uiatrucbur lo ensure that auser's entry is the correc! dMA type, frenently yo" prompt lhe user ID yenty th 11he type is carrect. melhod buih nto the programming langunge. Includestatemen atthe bednning of lhe program d'at llsta tie da types allowed hc above QUISTION 3 A whllc loop HK H lady llll mal H.HI-" HI IH.xl ane lil"H typ aprettlop can be replaced by for loop 1+2 LTiCK suse!ni "ide'lli !e s:1w!!. submu. LZici, iave tii. ..ses s w suwe!li uudkw s.

Explanation / Answer

QUESTION 1

Answer: d

A do-while loop executes all the instructions at least once even if the condition is satisfied or not. It checks the condition, if the condition is true it again executes the instructions until the condition becomes false.

QUESTION 2

Answer: a

A counter is a variable that tracks the number of times an event has occured in a program.

QUESTION 3

Answer: c

In a nested loop, the loop containing other loop is called the outer loop and the loop contained by the outer loop is called as inner loop.

QUESTION 4

Answer: d

To ensure whether the user inputs correct data or not we check it by

1.we assist the user to verify that the type is correct.

2.or use a method built into the programming language.

3.or include a statement at the beginning of the program that lists the data types allowed

QUESTION 5

Answer: b

A while loop is a type of pretest loop because the condition is first checked and then the body of the while loop is executed if the condition is true.

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