Search Header Logo

APCSP U4 L4-L8 Conditionals

Authored by Catherine Alvarado

Computers

9th Grade

Used 4+ times

APCSP U4 L4-L8 Conditionals
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the else if statement in a conditional?

To execute a different block of code if the previous condition is true.

To terminate the execution of the conditional statement.

To skip the current iteration of a loop and move to the next iteration.

To provide an alternative condition to check if the previous condition is false.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a loop in programming?

To execute a block of code only once.

To execute a block of code multiple times based on a condition.

To define a new variable.

To perform mathematical calculations.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code snippet? var x = 5; var y = 10; var z = (x > y) ? 'Greater' : 'Smaller'; console.log(z);

Greater

Smaller

Equal

Undefined

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

A precise sequence of instructions for processes that can be executed by a computer

computer science

algorithm

processing

output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A device or component that allows information to be given to a computer

algorithm

output

input

storage

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Any device or component that receives information from a computer

output

input

algorithm

processing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Keyboard, buttons on the keyboard, mouse, camera, and microphone

algorithm

examples of inputs

processing

examples of outputs

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?