Search Header Logo
bab3.2 struktur kod arahan

bab3.2 struktur kod arahan

Assessment

Presentation

Computers

7th Grade

Practice Problem

Hard

Created by

MUHAMAD KPM-Guru

FREE Resource

94 Slides • 26 Questions

1

media

2

media

3

Multiple Choice

What is the purpose of control structures in problem-solving?

1

To manage data storage

2

To control the flow of execution

3

To enhance graphics

4

To optimize memory usage

4

media

5

Multiple Choice

What is the main characteristic of a sequential control structure in programming?

1

It executes commands in a random order

2

It executes commands line by line in a specific order

3

It allows for branching and looping

4

It is the most complex structure

6

media

7

Multiple Choice

What is the purpose of the structured sequence in problem-solving?

1

To complicate the process

2

To provide a clear solution

3

To confuse the solver

4

To eliminate steps

8

media

9

Multiple Choice

What is the output of the code when the marks for the two exams are 80 and 90?

1

85

2

90

3

80

4

75

10

media

11

Multiple Choice

What is the average mark calculated from the two exam scores?

1

65.5

2

66.5

3

67.5

4

68.5

12

media

13

Multiple Choice

What are the steps Jessica needs to follow to calculate the area of the triangle?

1

Identify the required input

2

Determine the output needed

3

Understand the process and structure involved

4

All of the above

14

media

15

Multiple Choice

What is the formula to calculate the area mentioned in the algorithm?

1

Area = base × height

2

Area = 1/2 × base × height

3

Area = base + height

4

Area = base - height

16

media

17

Multiple Choice

What is the formula to calculate the area based on the inputs provided in the flowchart?

1

Area = base * height

2

Area = 1/2 * base * height

3

Area = base + height

4

Area = base - height

18

media

19

Multiple Choice

What is the purpose of the code when the green flag is clicked?

1

To calculate area

2

To change the background

3

To stop the program

4

To display a message

20

media

21

Multiple Choice

What is the formula used to calculate the area of a triangle in the given Python code?

1

Area = base * height

2

Area = 0.5 * base * height

3

Area = base + height

4

Area = base / height

22

media

23

Multiple Choice

What is the area of the triangle as shown in the Scratch application output?

1

15

2

30

3

225

4

45

24

media

25

Multiple Choice

What is the output of the Python program when the base is 15 cm and the height is 30 cm?

1

225.0

2

417.45

3

30.0

4

15.0

26

media

27

Multiple Choice

Question image

How would you modify line 3 so that the loop stops when both dice are equal to 3?

1

when (die1 <= 3 && die2 <= 3) {

2

when (die1 == 3 || die2 == 3) {

3

when (die1 == 3 && die2 == 3) {

4

when ((die1 + die2) == 3) {

28

media

29

Fill in the Blank

Question image

A train company is designing a program to handle passenger complaints. Part of the design is shown.

State which type of loop is used in this design.

30

media

31

Multiple Choice

A programming command that allows a computer to choose between two sequences of code based on a conditional statement (e.g. Color = BLUE).
1
Sensor 
2
Block
3
Switch
4
Touch

32

media

33

Multiple Choice

What is the purpose of a control structure in problem-solving?

1

To determine conditions for decision-making

2

To execute code without conditions

3

To create loops in programming

4

To store data temporarily

34

media

35

Multiple Choice

What are the three types of control structures mentioned in the image?

1

Tunggal

2

Dwi pilihan

3

Pelbagai pilihan

4

Kenyataan

36

media

37

Multiple Choice

What is the recommended daily calorie intake for males aged 16-18 years?

1

2690 kcal

2

2840 kcal

3

2440 kcal

4

2010 kcal

38

media

39

Multiple Choice

What are the three steps mentioned in the problem statement process?

1

Identify the required input

2

Determine the output needed

3

Analyze the process and structure

4

All of the above

40

media

41

Multiple Choice

What is the calorie value for a user aged 60 or older?

1

2010

2

2460

3

2440

4

1780

42

media

43

Multiple Choice

What is the first step in the flowchart for determining the calorie value based on gender and age?

1

Enter gender

2

Enter age

3

Display calorie value

4

End process

44

media

45

Multiple Choice

What is the purpose of the Scratch 2.0 application as shown in the image?

1

To calculate calories based on gender and age

2

To create animations

3

To play games

4

To teach programming basics

46

media

47

Multiple Choice

What is the output for a male aged 35 based on the given Python code?

1

2010 calories

2

2460 calories

3

2440 calories

4

2690 calories

48

media

49

Multiple Choice

What is the output for a person aged 25 according to the code?

1

Nilai kalori yang dibenarkan ialah 1780

2

Nilai kalori yang dibenarkan ialah 2180

3

Nilai kalori yang dibenarkan ialah 2000

4

Nilai kalori yang dibenarkan ialah 2050

50

media

51

Multiple Choice

Question image
According to the image, the order of the elements in scratch are...
1
1.Stage 2.Sprites 3.Blocks 4.Scripts
2
1.Stage 2.Blocks 3.Sprites 4.Scripts
3
1.Scripts 2.Blocks 3.Sprites 4.Stage
4
1.Scripts 2.Blocks 3.Stage 4.Sprites

52

media

53

media

54

media

55

media

56

media

57

media

58

media

59

media

60

media

61

media

62

media

63

media

64

media

65

media

66

media

67

media

68

media

69

media

70

media

71

media

72

media

73

media

74

media

75

media

76

media

77

media

78

media

79

media

80

media

81

media

82

media

83

media

84

media

85

media

86

media

87

media

88

media

89

media

90

media

91

media

92

media

93

media

94

media

95

media

96

media

97

media

98

media

99

media

100

media

101

media

102

media

103

media

104

media

105

media

106

media

107

media

108

media

109

media

110

media

111

media

112

media

113

media

114

media

115

media

116

media

117

media

118

media

119

media

120

Poll

How confident do you feel about this topic now?

Very confident
Somewhat confident
Not confident
media

Show answer

Auto Play

Slide 1 / 120

SLIDE