

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
60 questions
Modelo Psicoanalítico
Presentation
•
University
68 questions
GW batteries
Presentation
•
12th Grade - University
65 questions
Divergent Strabismus
Presentation
•
University
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
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Other
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
40 questions
8th Grade Math Review
Quiz
•
8th Grade - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
14 questions
Superhero
Quiz
•
1st Grade - University