

CSDC101 - Control Structure 1
Presentation
•
Other
•
University
•
Medium
Joshua Martinez
Used 4+ times
FREE Resource
55 Slides • 15 Questions
1
CSDC101 - Control Structures 1
Sequence | Selection | Repetition

2
3
4
5
6
7
8
9
10
11
12
13
14
Multiple Choice
int x = 0;
cin >> x;
cout << xx << endl;
The statement above is an example of what control structure?
Sequence
Selection
Repetition
15
16
17
18
19
20
21
Multiple Choice
What is the output of the logical expression below?
(true || false) && (!true || !false)
true
false
22
23
Multiple Choice
Which gets to be evaluated first in the expression below?
(true || false) && (!true || !false)
true
false
!true
!false
(true || false)
24
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
(count == 0) && (limit < 20)
true
false
25
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
count == 0 && limit < 20
true
false
26
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
(limit > 20) || (count < 5)
true
false
27
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
!(count == 12)
true
false
28
29
30
31
Multiple Select
Which of the following is/are true about IF statements? Check all that applies.
The only way for the body of IF statement to execute is for the condition to be TRUE.
It repeats the block of code
The body is executed first before testing the condition.
The condition is always tested before executing the body.
It executes a statement or a block of statement depending on some condition(s).
32
33
34
Multiple Choice
What is the value of x after performing the code block below?
int x = 0;
if(x>1) x = x + 1;
x = x + 2;
0
1
2
3
35
36
37
38
39
40
Multiple Choice
Which is true about if-else statements?
Both the body of If and Else will be performed regardless of the result if the condition.
Only the body of the If statement is performed if the condition is true.
Only the body of the else statement is performed if the condition is true.
The else statement requires a condition for its body to execute.
41
42
43
44
45
46
47
Multiple Choice
if x is 3, what is the output of the code snippet below?
test
run
test run
No output
48
Multiple Choice
What is the output of the code snippet below if x is 3?
test
run
test run
no output
49
50
51
52
53
54
55
56
57
58
Multiple Choice
What is the value of y if x =3?
1
2
3
4
59
60
61
62
63
64
65
66
67
68
69
Multiple Choice
If x is 2, what is the output of the code snippet?
is
a break
is a break
is a break indeed.
This is a break
70
Multiple Choice
If x is 2, what is the output of the code snippet?
is
a break
is a break
is a break indeed.
This is a break
CSDC101 - Control Structures 1
Sequence | Selection | Repetition

Show answer
Auto Play
Slide 1 / 70
SLIDE
Similar Resources on Wayground
63 questions
record cards health check disclaimers
Presentation
•
KG - University
62 questions
Unit 6 Spend a Night with Ocean Animals Around You (Grammar)
Presentation
•
KG - University
64 questions
Chapter 1- The Chemical World
Presentation
•
University
70 questions
Unit 1 level 3
Presentation
•
University
64 questions
Bahasa Inggris 2 Meeting 6 and 7
Presentation
•
University
60 questions
Modelo Psicoanalítico
Presentation
•
University
68 questions
GW batteries
Presentation
•
12th Grade - University
65 questions
Divergent Strabismus
Presentation
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade