Conditional Coding Pre-Assessment

Conditional Coding Pre-Assessment

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

Introduction to Networks

Introduction to Networks

6th - 8th Grade

14 Qs

G8_Ch2_Windows Movie Maker

G8_Ch2_Windows Movie Maker

8th Grade

15 Qs

Паскаль. Основные команды

Паскаль. Основные команды

8th - 11th Grade

10 Qs

Revision quiz on Access

Revision quiz on Access

8th Grade

12 Qs

Konsep Routing

Konsep Routing

1st - 10th Grade

10 Qs

Key Concepts 1

Key Concepts 1

5th - 7th Grade

11 Qs

21 Things Basics

21 Things Basics

7th - 8th Grade

10 Qs

Conditional Coding Pre-Assessment

Conditional Coding Pre-Assessment

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Lisa Thomen

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of writing code, what is a condition?

Something you test in your code that ends up being true or false
The order in which you write your commands
It tells you whether or not the code will run
It is an action that will only run when the code has a function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why would I want to use conditional code (an if / else statement, for example) when writing my code?

If I have multiple steps that I want to condense into something smaller and more manageable
If the situation I am coding for is constantly changing; the code will be successful no matter how the situation changes
If I want something to repeat over and over without me having to recode it
If I have a bug in the code and I want something to find it for me

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between an if / else statement and an if / else if statement?

An if /else statement will only run if there is a function.
They are the same thing,
An if / else statement only has one condition and an if / else if statement has two.
An if / else if statement has only one condition and an if / else statement has two.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is NOT a condition you worked with in the Swift Playgrounds lessons?

isOnGem
isOnClosedSwitch
isOnOpenSwitch
isOnBlock

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of writing code, what is conditional code?

It is code that will only run if the condition is true
It is code that repeats several times if the condition is false
It is code that has a name that you pick
It is code that will only run if you add in a function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is wrong with this code?

It is missing a bracket and won't run
He never turns left, he needs to after it says collectGem ( )
He never turns left, he should turn left after is says moveForward ( )
The code is fine, it should run perfectly

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is wrong with this code?

There are 2 if statements instead of an if / else if
Nothing
There is no need for anything about a gem
It needs to be looped

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?