Conditional Coding Pre-Assessment

Conditional Coding Pre-Assessment

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Swift Programming Review 1

Swift Programming Review 1

8th - 12th Grade

15 Qs

Hour of Code

Hour of Code

6th - 12th Grade

12 Qs

Conditional Statements

Conditional Statements

8th Grade

9 Qs

Swift Playground

Swift Playground

5th - 6th Grade

12 Qs

Basics of Coding SC 1

Basics of Coding SC 1

7th - 9th Grade

15 Qs

Coding Basics in Swift

Coding Basics in Swift

7th Grade

11 Qs

Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

Nested If

Nested If

6th - 12th Grade

15 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

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?