Unit 4 - Variables, Conditionals, Functions

Unit 4 - Variables, Conditionals, Functions

9th - 12th Grade

21 Qs

quiz-placeholder

Similar activities

Python KS3

Python KS3

6th - 9th Grade

17 Qs

Python Basics - yr 9

Python Basics - yr 9

9th - 12th Grade

18 Qs

Unit 4 Variables, Conditionals & Functions CS20-21

Unit 4 Variables, Conditionals & Functions CS20-21

9th - 12th Grade

18 Qs

AP Computer Science Unit 4

AP Computer Science Unit 4

9th - 12th Grade

17 Qs

Conditionals- Loops Vocab

Conditionals- Loops Vocab

10th - 12th Grade

17 Qs

Javascript Basics Test

Javascript Basics Test

7th - 12th Grade

20 Qs

algorithms and programming

algorithms and programming

8th - 10th Grade

16 Qs

Python Basics & Syntax

Python Basics & Syntax

10th - 12th Grade

20 Qs

Unit 4 - Variables, Conditionals, Functions

Unit 4 - Variables, Conditionals, Functions

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Brian Ranallo

Used 32+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the order of letters printed to the console when this program is run?

a b c

a b c b c b c

a b c b c

a b c a

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This function chooses the screen to display based on the score. What is the correct way to call this function?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the value of the variable bags be at the end of the flowchart shown here?

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct definition for Conditional Statement.

affects the sequential flow of control by executing different statements based on the value of a Boolean expression

stores information as a number, String, or Boolean

joins together two or more strings end-to-end to make a new string

an ordered sequence of characters

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What number will be output by the console.log command on line 7?

10

100

20

200

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This flowchart is used by an apartment rental Web site to set the variable "include" to "true" for apartments that meet certain criteria.

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age ?

boolean

number

string

list

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?