Search Header Logo
Unit1-Understanding Algorithims

Unit1-Understanding Algorithims

Assessment

Presentation

Computers

10th Grade

Easy

Created by

Ala Jaber

Used 14+ times

FREE Resource

64 Slides • 76 Questions

1

media

2

media

3

media

4

media

5

Multiple Choice

What is an algorithm?

1

A way to do something

2

A computer term that means a musical rhythm

3

A list of steps

4

Algorithm isn't a real word

6

media

7

media

8

Multiple Choice

Why is efficiency important in an algorithm?



1

A) It ensures the algorithm gives accurate results

2

B) It ensures the algorithm produces the same result each time

3

C) It ensures the problem is solved in the shortest time with minimal resources

4

D) It ensures the algorithm can replace a manual method

9

Multiple Choice

Which of the following best describes accuracy in an algorithm?



1

A) Producing the same result every time it is run

2

B) Solving the problem in the shortest possible time

3

C) Leading to the expected outcome

4

D) Using as many resources as possible

10

Multiple Choice

What does consistency mean in the context of algorithms?



1

A) The algorithm must always produce the expected result, even with changes in input

2

B) The algorithm must solve the problem faster than manual methods

3

C) The algorithm must produce the same result each time it is run

4

D) The algorithm must use as few computer resources as possible

11

media

12

Multiple Choice

What is the difference between an algorithm and a program?



1

A) An algorithm is written in a programming language, a program is written in English

2

B) An algorithm is a detailed design for a solution, a program is the implementation of that design

3

C) An algorithm and a program are exactly the same

4

D) A program designs a solution, and an algorithm executes it

13

Multiple Choice

A high-level programming language is a programming language that is similar to natural human language.

1

True

2

False

14

media

15

media

16

media

17

Multiple Choice

Question image
What is this symbol?
1
Decision
2
Input/Output
3
Start/End
4
Process

18

Multiple Choice

What is the correct symbol for an input in a flowchart?

1

A parallelogram

2

A rectangle

3

A square

19

Multiple Choice

In a flowchart, which symbol is used to represent the start or end of an algorithm?



1

A) Rectangle

2

B) Diamond

3

C) Oval (rounded rectangle)

4

D) Parallelogram

20

Multiple Choice

Question image
What flowchart symbol does this represent?
1
Input/Output
2
Start/End
3
Decision
4
Process

21

Multiple Choice

Which flowchart symbol is used to represent a decision that needs to be made?

1

A) Rectangle

2

B) Diamond

3

C) Oval

4

D) Arrow

22

Multiple Choice

What does a parallelogram represent in a flowchart?



1

A) Process to be carried out

2

B) Logical flow of the algorithm

3

C) Input or output

4

D) Start or end of the algorithm

23

media

24

media

25

Multiple Choice

Why are computers considered useful when following algorithms?

1

A) Because they can think and make their own decisions

2

B) Because they follow instructions more quickly than humans

3

C) Because they can design new algorithms themselves

4

D) Because they do not require instructions to operate

26

media

27

Multiple Choice

What is the correct definition for 'pseudo code?'
1
a notation resembling a complex programming language, used in program design.
2
a notation resembling a simplified programming language, used in program design.

28

Multiple Choice

What is pseudocode?

1

A simple java-like programming language

2

Statements in plain English

3

A control structure used in Java

4

A java class

29

Multiple Choice

What is pseudocode?



1

A) A high-level programming language

2

B) A structured, code-like language used to describe an algorithm

3

C) A type of flowchart symbol

4

D) A compiled version of an algorithm

30

Multiple Choice

Why is pseudocode useful for a developer?

1

A) It helps them focus on logic and efficiency without worrying about programming language rules

2

B) It automatically converts into machine code

3

C) It replaces the need for actual programming

4

D) It eliminates the use of flowcharts

31

Multiple Choice

What makes pseudocode relatively straightforward?

1

A) It uses natural human language only

2

B) It can be easily translated into any high-level programming language

3

C) It requires no understanding of logic

4

D) It replaces the need for algorithms

32

media

33

media

34

media

35

Multiple Choice

What is a variable in programming?



1

A) A fixed value that never changes

2

B) A unique name given to a constant

3

C) A container used to store data that can change during program execution

4

D) A calculation performed on two numbers

36

Multiple Choice

What is an identifier?

1

A calculation symbol used in arithmetic

2

A descriptive name given to a variable or constant

3

A container for storing values

4

A character representing multiplication or division

37

Multiple Choice

What does an arithmetic operator do?

1

A) Stores data in memory

2

B) Describes something clearly

3

C) Performs a calculation on two numbers

4

D) Gives a variable a unique name

38

media

39

Multiple Choice

What is the result of 13 DIV 4?

1

A) 3.25

2

B) 3

3

C) 1

4

D) 27

40

Multiple Choice

Which operator is used to calculate the remainder of a division?

1

MOD

2

DIV

3

^

4

41

Multiple Choice

The expression 3 ^ 3 is equal to:

1

A) 6

2

B) 9

3

C) 27

4

D) 81

42

Multiple Choice

What is the main difference between / and DIV?

1

A) / gives the exact decimal result, while DIV gives only the whole number part

2

B) / is used for subtraction, while DIV is used for division

3

C) DIV can only be used with multiplication

4

D) / gives the remainder, while DIV gives the power

43

media

44

Multiple Choice

What is the difference between a variable and a constant?

1

A variable stores data that changes, while a constant stores data that does not change

2

A variable stores numbers, while a constant stores text

3

A variable is always larger than a constant

4

A constant can change, while a variable cannot

45

Multiple Choice

Why should descriptive names be chosen for variables and constants?

1

A) To make the program run faster

2

B) To reduce the memory used

3

C) To make the code easier to read and understand

4

D) To prevent the program from crashing

46

Multiple Choice

Which of the following is an example of a naming convention in programming?




1

A) Adding numbers at random in variable names

2

B) Using camelCase or snake_case for identifiers

3

C) Changing variable names halfway through a program

4

D) Using one-letter names only

47

media

48

media

49

media

50

Multiple Choice

What is pseudocode?




1

A) A precise method for solving a problem

2

B) A structured, code-like language used to design algorithms

3

C) The final program code written in a programming language

4

D) A type of arithmetic operator

51

media

52

media

53

media
media

54

media
media

55

media
media

56

media

57

media

58

media

59

Multiple Choice

Why can’t a computer understand the instruction “Wait for water to boil” in an algorithm?

1

A) Computers cannot perform repetitive tasks

2

B) The instruction is ambiguous and lacks a clear measurable condition

3

C) Computers do not have sensors for water

4

D) The algorithm runs too quickly

60

Multiple Choice

What condition would make the algorithm clear for a computer to follow when boiling water?

1

A) Wait until there is steam and bubbles

2

B) Wait until the kettle turns off automatically

3

C) Wait until the water reaches 100°C

4

D) Wait until someone checks the kettle manually

61

Multiple Choice

Which construct in programming refers to a process being repeated until a condition is met?

1

A) Selection

2

B) Iteration

3

C) Construct

4

D) Condition

62

Multiple Choice

Which programming construct allows a choice to be made between different alternatives?

1

A) Selection

2

B) Iteration

3

C) Construct

4

D) Construct

63

media

64

media

65

media

66

media

67

Multiple Choice

In programming, what does iteration allow you to do?

1

A) Make a choice between alternatives

2

B) Store data that never changes

3

C) Repeat the same set of statements several times

4

D) Translate pseudocode into program code

68

media

69

media

70

Multiple Choice

Why are efficient searching algorithms important?

1

A) They reduce the amount of RAM needed

2

B) They allow information to be found quickly, even in very large lists

3

C) They make data permanently stored

4

D) They prevent algorithms from using loops

71

media

72

Multiple Choice

What happens in the bubble sort algorithm when two items are in the wrong order?

1

A) They are deleted

2

B) They are swapped

3

C) They are skipped

4

D) They are combined into one item

73

media

74

media

75

Multiple Choice

In the bubble sort algorithm (ascending order), what happens if two adjacent values are not in ascending order?

1

A) The algorithm stops immediately

2

B) The values are skipped and left in place

3

C) The two values are swapped

4

D) The values are deleted from the list

76

Multiple Choice

We are sorting the following list in ascending order:
 
1    4    2    9    3    8    5
 
What does the list look like after one pass of the bubble sort algorithm. 
1
1 2 4 3 8 5 9
2
1 4 2 5 3 8 9
3
4 2 9 3 8 5 1

77

media

78

media

79

media

80

Multiple Choice

What key technique does merge sort use to break down a problem into smaller parts?

1

A) Iteration

2

B) Parallel processing

3

C) Recursion

4

D) Selection

81

media

82

Multiple Choice

Question image

What does the graph show about the performance of Bubble Sort as the number of items increases?

1

A) The time taken stays nearly constant

2

B) The time taken increases rapidly

3

C) The time taken decreases

4

D) The time taken is always zero

83

Multiple Choice

Question image

According to the graph, which sorting algorithm is more efficient when the number of items becomes very large?

1

A) Bubble Sort

2

B) Merge Sort

3

C) Both are equally efficient

4

D) Neither — efficiency does not depend on the algorithm

84

media

85

media

86

Multiple Choice

Which of the following statements correctly describes the divide and conquer approach to solving the convex hull problem?

1

The algorithm sorts the points and then adds them one by one to the convex hull using a greedy approach.

2

The algorithm splits the set of points into two halves, recursively finds the convex hull for each half, and then merges the two convex hulls.

3

The algorithm uses a stack to keep track of the vertices of the convex hull while scanning the points in sorted order.

4

The algorithm starts with the leftmost point and sweeps to the rightmost point, adding points to the hull if they form a left turn.

87

Multiple Choice

Which algorithm design approach is Merge Sort based on?

1

A) Brute force

2

B) Divide and conquer

3

C) Trial and error

4

D) Sequential processing

88

Multiple Choice

In which situation might Bubble Sort be more practical than Merge Sort?

1

A) When sorting very large datasets (over 100,000 items)

2

B) When sorting lists smaller than 1000 items

3

C) When maximum efficiency is always required

4

D) When recursion cannot be used

89

Multiple Choice

Which statement best describes the divide and conquer algorithm design?

1

It tries all possible solutions until one is found.

2

It repeats the same task over and over again until it succeeds.

3

It relies only on computer memory rather than processing power.

4

It solves a problem by dividing it into smaller sub-problems and combining their solutions.

90

Multiple Choice

Which sorting algorithm works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order?

1

Merge Sort

2

Quick Sort

3

Bubble Sort

4

Insertion Sort

91

Multiple Choice

Which of the following sorting algorithms is considered a stable sort?

1

Bubble Sort

2

Quick Sort

3

Heap Sort

4

Selection Sort

92

media

93

Multiple Choice

What is the main characteristic of a linear search?

1

A) It divides the list into two halves and searches each half.

2

B) It always finds the item in a single step.

3

C) It checks items one by one from the start until the item is found or the list ends.

4

D) It rearranges the data into ascending order before searching.

94

Multiple Choice

Why is a linear search described as sequential?




1

A) Because it splits the list into smaller sublists.

2

B) Because it only works on sorted data.

3

C) Because it skips every other item while searching.

4

D) Because it goes through the list item by item in order.

95

media

96

media

97

media

98

Multiple Choice

What is a key requirement for using a binary search?

1

A) The list must be sorted in ascending or descending order.

2

B) The list must contain only unique numbers.

3

C) The list must always start with the number 0.

4

D) The list must be arranged in pairs.

99

Multiple Choice

In a binary search, when there is an even number of items in the list, which number is chosen as the median?

1

A) The lower of the two middle numbers

2

B) The average of the two middle numbers

3

C) The higher of the two middle numbers

4

D) A randomly chosen middle number

100

media

101

Multiple Choice

How can the efficiency of searching algorithms be compared?

1

A) By counting how many steps the programmer writes

2

B) By checking whether the algorithm uses recursion

3

C) By measuring the clock speed of the CPU

4

D) By analyzing the ‘best case’ and the ‘worst case’ scenarios

102

Multiple Choice

A linear search is always more efficient than a binary search.

1

True

2

False

103

media

104

Multiple Choice

In the best-case scenario for a binary search of 1000 items, how many comparisons are required?

1

1

2

5

3

10

4

1000

105

Multiple Choice

In the worst-case scenario for a binary search of 1000 items, how many comparisons are required?

1

1

2

5

3

10

4

1000

106

Multiple Choice

What is the main disadvantage of using a binary search algorithm?

1

A) It is slower than a linear search

2

B) It requires the list to be sorted first

3

C) It cannot handle large lists

4

D) It only works with text data

107

Multiple Choice

What is the main advantage of using binary search over linear search?

1

It is easier to implement.

2

It works on unsorted arrays.

3

It has a faster average time complexity.

4

It requires less memory.

108

Multiple Choice

Which of the following is a necessary condition for binary search to work?

1

The list must contain only integers.

2

The list must be sorted.

3

The list must be in descending order.

4

The list must have an even number of elements.

109

Multiple Choice

In a binary search, if the target value is greater than the middle element, what is the next step?

1

Search the left half of the list.

2

Search the right half of the list.

3

Return the middle element.

4

Search the entire list again.

110

Multiple Choice

Which of the following best describes the binary search algorithm?

1

It searches for an element by checking each one sequentially.

2

It uses a divide and conquer approach.

3

It uses a breadth-first search.

4

It uses a depth-first search.

111

media

112

media

113

media

114

Multiple Choice

The mechanism of finding an element /key in a given set of elements is known as ________________

1

sorting

2

searching

3

both

4

none

115

Multiple Choice

What is the main factor in deciding which sorting or searching algorithm to use?




1

The brand of the computer being used

2

The size and nature of the data to be processed

3

The color scheme of the programming environment

4

The programming language used

116

Multiple Choice

What would the average number of iterations be for the Linear Search Algorithm, where n represents number of elements?

1

n

2

n/2

3

n^2

4

n-1

117

Multiple Choice

Identify the INCORRECT statement about searching


i. Binary search starts by testing the largest data

ii. Linear search can be done for unsorted data only

iii. Linear search starts by testing data at the middle of list

iv. Binary search can be done for sorted homogeneous data

1

i, ii and iii

2

ii, iii and iv

3

i, iii and iv

4

i, ii, iii and iv

118

Multiple Choice

Which of these is NOT a Sort algorithm
1
Binary
2
Merge
3
Bubble
4
Insertion

119

media

120

Multiple Choice

What are decomposition and abstraction examples of in computational thinking?


1

a) Thought processes

2

b) Hardware components

3

c) Programming languages

4

d) Sorting algorithms

121

media

122

Multiple Choice

Which of the following is an example of thinking computationally?
1
Planning out your route when going to meet a friend
2
When going to meet a friend, wandering around until you find them
3
When going to meet a friend, asking a parent to plan your route for you

123

Multiple Choice

Breaking a complex problem down into smaller problems and solving each one individually.
1
Decomposition
2
Abstraction
3
Programming
4
Algorithmic Thinking

124

Multiple Choice

Q: In computational thinking, what does decomposition involve?

1

a) Writing algorithms in pseudocode

2

b) Removing unnecessary details to focus on the main points

3

c) Breaking a problem into smaller, more manageable parts

4

d) Testing a program to ensure it works correctly

125

media

126

Multiple Choice

What is one main advantage of using decomposition in problem solving?

1

a) It removes unnecessary details from a problem

2

b) It allows sub-problems to be solved by different teams simultaneously

3

c) It guarantees that no errors will occur in the final program

4

d) It makes the program run faster on the computer

127

Multiple Choice

What is one benefit of decomposition when algorithms are turned into programs?




1

a) It ensures the program will never crash

2

b) It increases the speed of the processor

3

c) It reduces the need for testing

4

d) It allows code to be reused in future programs

128

media

129

Multiple Choice

What does abstraction mean in computer science?

1

a) Removing unnecessary details and focusing only on the essential features

2

b) Writing an algorithm step by step in detail

3

c) Repeating a set of instructions until a condition is met

4

d) Breaking a problem into smaller, more manageable parts

130

media

131

Multiple Choice

Which of the following best illustrates the concept of abstraction?

1

a) A programmer writing every single machine instruction for a program

2

b) A driver fixing the engine before starting the car

3

c) A programmer using the print command without knowing how it works internally

4

d) A mechanic describing every spark and fuel process to a driver before they drive

132

media

133

media

134

Multiple Choice

Why do high-level programming languages require a translator before execution?

1

a) Because they are already written in binary code (1s and 0s)

2

b) Because they can only be used to design games like noughts and crosses

3

c) Because they directly match the processor’s instruction set

4

d) Because the processor cannot understand them without translation into binary

135

Multiple Choice

What is the main purpose of using subprograms in programming?

1

a) To reduce program complexity and make code easier to understand

2

b) To replace the need for the main program

3

c) To store binary instructions permanently

4

d) To increase the processor’s clock speed

136

media

137

media

138

media

139

media

140

Multiple Choice

When designing a solution to a problem, what should be identified at the outset?



1

a) The hardware specifications of the computer

2

b) The color and appearance of the user interface

3

c) The inputs, outputs, and processing requirements

4

d) The order in which users will test the program

media

Show answer

Auto Play

Slide 1 / 140

SLIDE