Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COMP 230 WEEK 4 QUIZ SOLUTIONS

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
28-04-2022
Written in
2021/2022

COMP 230 WEEK 4 QUIZ SOLUTIONS

Institution
Course

Content preview

COMP 230 WEEK 4 QUIZ SOLUTIONS


1. Question : (TCO 4) A variable that determines if a loop will continue is known as a
____.

Student Answer:
loop marker

counter

looping variable

loop-control variable
Instructor See Chapter 2 in the textbook and the Week 4 lecture.
Explanation:


Points Received: 0 of 2
Comments:

1809981007 MultipleChoice 3 False

0 1809981007 MultipleChoice 3

2. Question : (TCO 4) What is the name for the statements that are repeated during
loop execution?

Student Answer:
Loop body or code block

Decision statements

Loop group

Loop variables
Instructor See Chapter 2 in the textbook and the Week 4 lecture.
Explanation:


Points Received: 0 of 2
Comments:

1809981008 MultipleChoice 4 False

0 1809981008 MultipleChoice 4

3. Question : (TCO 4) Which piece of pseudocode represents incrementing the loop-
control variable called rep?

Student Answer:
rep = 1

while (rep <= 10)

, rep = rep + 1

print "warning"
Instructor The counter variable is incremented.
Explanation:


Points Received: 2 of 2
Comments:

1809981009 MultipleChoice 7 True

0 1809981009 MultipleChoice 7

4. Question : (TCO 4) When a value is incremented by 1, ____.

Student Answer:
1 is added to the value

the value is multiplied by 1

1 is subtracted from the value

the value is divided by 1
Instructor See Chapter 2 in the textbook and the Week 4 lecture.
Explanation:


Points Received: 2 of 2
Comments:

1809981010 MultipleChoice 12 True

0 1809981010 MultipleChoice 12

5. Question : (TCO 4) When a loop-control variable is not altered during loop
execution, a(n) ______ loop may result.

Student Answer:
decrement

indeterminate

infinite

default
Instructor See Chapter 2 in the textbook and the Week 4 lecture.
Explanation:


Points Received: 2 of 2
Comments:

1809981011 MultipleChoice 15 True

Written for

Course

Document information

Uploaded on
April 28, 2022
Number of pages
5
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
academicmaster Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
772
Member since
5 year
Number of followers
676
Documents
6001
Last sold
2 weeks ago
MIDTERM &amp; FINALS

Get all latest Quizzes, Test Banks, Midterm and Final Exams. Ace your Exams with My Papers Guaranteed to help you score A in everything.

3.9

111 reviews

5
60
4
16
3
16
2
7
1
12

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions