FBISE, NCP & NBF-aligned resources for Classes 9–12

/18

Computer Chapter 3 : Topic 4.1

An algorithm is a set of instructions

1 / 18

Which statement best describes the meaning of an algorithm in the context of programming and problem solving?

2 / 18

In JavaScript programming, why is it important that an algorithm follows a specific logical sequence of steps?

3 / 18

Which type of programming structure is used when instructions are executed one after another without any condition?

4 / 18

Which control structure allows a program to make decisions based on whether a condition is true or false?

5 / 18

In JavaScript, which keyword is primarily used to implement decision-making in an algorithm?

6 / 18

What will happen if a selection condition in an if statement evaluates to false in a JavaScript program?

7 / 18

Which structure is best used when a task must be repeated multiple times until a condition becomes false?

8 / 18

Which JavaScript loop is most suitable when the number of repetitions is known in advance?

9 / 18

What is the main risk of writing a repetition structure incorrectly in an algorithm?

10 / 18

Which statement best explains how sequence, selection, and repetition work together in an algorithm?

11 / 18

In a JavaScript algorithm, what is the purpose of using an else statement with an if condition?

12 / 18

Which loop structure guarantees that the code inside it will execute at least once before checking the condition?

13 / 18

What is the correct interpretation of a step-by-step algorithm used in JavaScript programming?

14 / 18

Which part of a loop controls whether the repetition continues or stops in JavaScript?

15 / 18

What will be the effect of placing a break statement inside a loop in JavaScript?

16 / 18

Which of the following best describes a real-world example of a selection structure in an algorithm?

17 / 18

Why is indentation and logical structure important when writing algorithms or JavaScript code?

18 / 18

Which of the following best explains how repetition improves efficiency in an algorithm?

Your score is

0%

9th class objective books