Search Header Logo
DCS1101 - Week 2 (Conditions)

DCS1101 - Week 2 (Conditions)

Assessment

Presentation

Computers

University

Practice Problem

Easy

Created by

Yasmin Basiran

Used 2+ times

FREE Resource

31 Slides • 13 Questions

1

media

2

media

3

Draw

Yesterday 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

Open Ended

How do you usually decide what to do when you are unsure?

7

8

Multiple Choice

According to the video, what defines a good decision?

1

The result is always successful

2

The decision uses available information logically

3

The decision avoids risk completely

4

The decision avoids risk completely

9

Multiple Choice

Why is long-term thinking important in programming?

1

Code never changes

2

One mistake ends a program

3

Programs run only once

4

Learning improves through repeated decisions and fixes

10

Open Ended

How is decision-making in poker similar to decision-making in a program?

11

Open Ended

What happens if a program is missing important information?

12

media

13

media

14

media

15

Multiple Choice

In a problem analysis chart, where do decisions usually belong — input, process, or output?

1
process
2
output
3
input

16

media

17

media

18

Multiple Choice

What is the result of this expression?

10 < 5

1
false
2
true
3
5 < 10
4
10 > 5

19

media

20

media

21

media

22

media

23

Open Ended

If marks = 45, what will be printed?

if (marks >= 50)

cout << "Pass";

else

cout << "Fail";

24

media

25

media

26

Open Ended

Why might one condition not be enough in real-life problems?

27

media

28

media

29

media

30

media

31

media

32

media

33

media

34

media

35

media

36

media

37

media

38

media

39

media

40

media

41

media

42

media

43

Open Ended

What decision can your program make today that it could not make yesterday?

44

media
media

Show answer

Auto Play

Slide 1 / 44

SLIDE