
DCS1101 - Week 4 (Conditions)
Presentation
•
Computers
•
University
•
Practice Problem
•
Easy
Yasmin Basiran
Used 7+ times
FREE Resource
30 Slides • 17 Questions
1
Making decisions and program flow
2
3
Draw
Last week, we used flowcharts. Which symbol represents a process?
4
Poll
When you make a decision, do you always have all the information you need?
Yes
No
5
Poll
Can a good decision still lead to a bad outcome?
Yes
No
6
7
Multiple Choice
According to the video, what defines a good decision?
The result is always successful
The decision uses available information logically
The decision avoids risk completely
The decision avoids risk completely
8
Multiple Choice
Why is long-term thinking important in programming?
Code never changes
One mistake ends a program
Programs run only once
Learning improves through repeated decisions and fixes
9
10
11
12
Multiple Choice
In a problem analysis chart, where do decisions usually belong — input, process, or output?
13
14
15
Multiple Choice
What is the result of this expression?
10 < 5
16
17
18
19
20
Open Ended
If marks = 45, what will be printed?
if (marks >= 50)
cout << "Pass";
else
cout << "Fail";
21
22
23
Open Ended
Why might one condition not be enough in real-life problems?
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Multiple Choice
[HOTSPOT] What is the output?
int mark = 48;
if (mark >= 50)
cout << "Pass";
else
cout << "Try Again";
40
Open Ended
Find the error of this code:
int score = 75;
else (score == 75) {
cout << "Exactly 75";
}
41
Fill in the Blanks
[HOTSPOT] A cinema gives a student discount when the customer's age is 18 or below.
Complete the condition:
if (
Type answer...
cout << "Student Discount";
}
42
Multiple Choice
Which condition checks whether age is at least 20?
43
Multiple Choice
[HOTSPOT] What is the output of this code?
int number = 7;
if (number % 2 == 0)
cout << "Even";
else
cout << "Odd";
44
Multiple Choice
[HOTSPOT] What is the error of this code?
int score = 80;
if (score = 80)
cout << "Excellent";
45
Multiple Choice
Which condition checks whether age is between 18 and 60 inclusive?
46
Draw
Draw the flowchart for the following code:
if (mark >= 50)
cout << "Pass";
else
cout << "Fail";
47
Making decisions and program flow
Show answer
Auto Play
Slide 1 / 47
SLIDE
Similar Resources on Wayground
43 questions
Module 7 - Ethernet Switching
Presentation
•
University
41 questions
Sesión 01 Sistemas de Información
Presentation
•
University
40 questions
Information_systems_Week1
Presentation
•
University
40 questions
c1 tc1030
Presentation
•
University
43 questions
English 1 UNIT 3 Extended Family
Presentation
•
University
42 questions
Cloud Storage
Presentation
•
University
42 questions
GE IT Era- Lesson 1 & 3
Presentation
•
University
40 questions
Concordância verbal
Presentation
•
KG
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
25 questions
SER and Subject Pronouns
Quiz
•
8th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
19 questions
Key Concepts in Buddhism
Quiz
•
University
0 questions
Cell Domain Basic Review (Biology)
Quiz
•
University