Choose the suitable description of the uses for break statement.
i. forcing termination
ii. immediately terminated
iii. resumes to any code in between
iv. resumes to the next statement
Topic 3: Program Control Structure
Quiz
•
Education
•
University
•
Medium
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the suitable description of the uses for break statement.
i. forcing termination
ii. immediately terminated
iii. resumes to any code in between
iv. resumes to the next statement
i and ii
ii and iii
i, ii and iii
i, ii and iv
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The continue statement
resumes the program if it is hanged
resumes the program if break was applied
skips the rest of the loop in current iteration
all of the choice
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine the value of y after the following program fragment is executed.
15
14
1
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which looping process checks the test condition at the beginning of the loop?
for
if...else
do...while
while
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is a do…while loop guaranteed to loop?
0
1
2
Infinitely
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the CORRECT syntax of for statement?
for (initialization , incrementation , expression) {
statement block;
}
for (initialization ; incrementation ; expression) {
statement block;
}
for (initialization ; expression ; incrementation) {
statement block;
}
for (initialization) , (expression) , ( incrementation); {
statement block;
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Looping in a program means
Repeat the specified lines of code
Jumping to the specified branch of program
Both of above
None of above
10 questions
แบบทดสอบ Application Canva
Quiz
•
University
15 questions
EDUC 108 Social Literacy
Quiz
•
University
15 questions
Introduction of Accounting
Quiz
•
University
10 questions
CHAPTER 3: ACCOUNTING CYCLE
Quiz
•
University
10 questions
Chapter 1-4 MICROECONOMICS
Quiz
•
University
15 questions
Understanding Loops in Pascal
Quiz
•
University
12 questions
JAVA FUNDAMENTALS
Quiz
•
University
12 questions
Plagiarism - Review
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade