100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

COMP 110 Exam 1 Questions With Correct Answers A+

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
04-01-2025
Written in
2024/2025

COMP 110 Exam 1 Questions With Correct Answers A+ The "flow of control" or "control flow" in a program is the logic which governs what statement the computer will evaluate next, in other words the order in which statements are evaluated. - AnswerTrue The standard mode of control flow in our programs is linear, meaning statements are evaluated one after another after another. - AnswerTrue With an if-else statement, control flow can fork in one, or two, possible different directions. - AnswerTrue An if statement always requires a corresponding else. - AnswerFalse The condition of an if statement should always be a bool expression. - AnswerTrue When control reaches an if statement, and the condition evaluates to False, control will continue on into the then block. - AnswerFalse The then and else blocks of an if-then statement are written at the same level of indentation as the if keyword and else keyword. - AnswerFalse It is possible to nest if-else statements inside of either the then block or the else block of other if- else statements. - AnswerIt is possible to nest if-else statements inside of either the then block or the else block of other if-else statements. After either the then block or else block completes, control continues to the next statement following the if-else statement, which is written at the same level of indentation of the if-else construct. - AnswerTrue The while statement allows you to repeat a block of statements in your program. - AnswerTrue The while statement is called a loop, because the control of your program jumps back up to a point earlier in the program than the end of the repeat block. - AnswerTrue You can name a variable while in your program without Python confusing your variable's name and the while keyword. - AnswerFalse The condition in the while statement's syntax must be a

Show more Read less
Institution
Comp 110
Course
Comp 110








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Comp 110
Course
Comp 110

Document information

Uploaded on
January 4, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

©Jason MacConnell 2025 ALL RIGHTS RESERVED.




COMP 110 Exam 1 Questions With Correct
Answers A+


The "flow of control" or "control flow" in a program is the logic which governs what statement
the computer will evaluate next, in other words the order in which statements are evaluated. -
Answer✔True
The standard mode of control flow in our programs is linear, meaning statements are evaluated
one after another after another. - Answer✔True
With an if-else statement, control flow can fork in one, or two, possible different directions. -
Answer✔True
An if statement always requires a corresponding else. - Answer✔False

The condition of an if statement should always be a bool expression. - Answer✔True
When control reaches an if statement, and the condition evaluates to False, control will continue
on into the then block. - Answer✔False
The then and else blocks of an if-then statement are written at the same level of indentation as
the if keyword and else keyword. - Answer✔False
It is possible to nest if-else statements inside of either the then block or the else block of other if-
else statements. - Answer✔It is possible to nest if-else statements inside of either the then block
or the else block of other if-else statements.
After either the then block or else block completes, control continues to the next statement
following the if-else statement, which is written at the same level of indentation of the if-else
construct. - Answer✔True
The while statement allows you to repeat a block of statements in your program. - Answer✔True
The while statement is called a loop, because the control of your program jumps back up to a
point earlier in the program than the end of the repeat block. - Answer✔True
You can name a variable while in your program without Python confusing your variable's name
and the while keyword. - Answer✔False
The condition in the while statement's syntax must be a bool expression. - Answer✔True

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.
StarGuide Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
16
Member since
1 year
Number of followers
0
Documents
2591
Last sold
1 week ago
FIRST CLASS GALORE

Accurate Exam Study Materials.Verified And Updated By Professionals.

4.3

4 reviews

5
1
4
3
3
0
2
0
1
0

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

Frequently asked questions