Search Header Logo

Problem Solving REVIEW - CAPE

Authored by JTN Service

Computers

11th Grade

Used 1+ times

Problem Solving REVIEW - CAPE
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the sentinel value of an algorithm?

A control instruct

A print statement

Any input the user enters

A value that help the user terminate a loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the implementation and review stage of problem solving, process implementation involves the.

writing of algorithms

installation of software

analysis of the problem

evaluation of alternative solutions

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

num = 1

n = 0

WHILE n < 5 do

num = num + n

n = n + 2

PRINT num

ENDWHILE

1 3 7

1 2 3

12 4

1 3 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The problem states:

Print half the sum of two positive integers entered by the user.

Line 1: Read A

Line 2: Read B

Line 3: Sum = (B + A)/2

Line 4: Print 'Sum is, sum'

Line 1

Line 2

Line 3

Line 4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

total_marks = 0

num_marks = 0

end_of_data = -1

Read mark

While mark <> end_of_data do

total_marks = total_marks + mark

num_marks = num_marks + 1

Read mark

Endwhile

avg_mark = total_marks / num_marks

Print num_marks, total_marks, avg_marks

Which of the following programming constructs are used in the algorithm above?

Selection

Unbounded Iteration

Bounded Iteration

Recursion

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which programming construct is used when an algorithm repeats a set of instructions until a condition is met?

Iteration

Initialization

Selection

Recursion

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following algorithm shows the best way to PRINT the larger of TWO unique numbers

WHILE (a > b) DO

PRINT a

WHILE (a > b) DO

PRINT b

IF (a > b) THEN

PRINT b

ELSE

PRINT a

END IF

IF (a < b) THEN

PRINT b

ELSE

PRINT a

END IF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?