Sequence and Selections

Sequence and Selections

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

J277 Programming - Data Types

J277 Programming - Data Types

9th - 11th Grade

11 Qs

Casting in Java

Casting in Java

9th - 12th Grade

11 Qs

C# Programming Basics Quiz

C# Programming Basics Quiz

10th Grade

10 Qs

Python Revision Tour

Python Revision Tour

12th Grade

10 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

recap DIN h446

recap DIN h446

12th Grade

11 Qs

Code.org CSP Unit 4 Review

Code.org CSP Unit 4 Review

9th - 12th Grade

6 Qs

Sequence and Selections

Sequence and Selections

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

H Valli

Used 5+ times

FREE Resource

6 questions

Show all answers

1.

DRAG AND DROP QUESTION

1 min • 1 pt

place the answers correctly in order to ask the age of a user:

​​ (a)   = ​ (b)   ​ ​ ​ (c)   ​ ​ ​ (d)  

int (
(
input (
"What is your age"
))
age

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to print hello world

Print("hello world")

print = "hello world"

print(hello world)

print("hello world")

Answer explanation

Media Image

When you want to print hello world,

1) always make sure that the 'p' in print is always lower case

2) always make sure there are brackets after print

3) always make sure there is no space between print and the brackets

4) always make sure there are speech marks inside the brackets, UNLESS, you want to output the value in a variable

correct answer:

print("hello world")

3.

REORDER QUESTION

1 min • 1 pt

Reorder the following

kiwi

27

=

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following TWO are NOT correct variable names

player_life

_marvel

#playerone

1_life

Answer explanation

Media Image

A variable can have:

1) Letter (0-9)

2) Number (A-z)

3) Underscore ( _ )

Rules:

1) A variable name cannot start with a Number

2) No special characters are allowed EXCEPT for underscore ( _ )

3) Spaces are not allowed when naming a variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term sequencing mean?

To code something in the correct order

To code something in any order, as long as it makes sense to me

To iterate something 2 times

To find a result between 2 conditions

Answer explanation

Media Image

Sequencing means to ensure that everything is in a correct and logical order

Lets look at a recipe, If I was to change the recipe order, there may be a change in taste, colour and/or smell.

Similarly, a computer needs to be told what to do in order otherwise it will get confused and crash!

6.

DRAG AND DROP QUESTION

1 min • 1 pt

Order the code correctly:

  1. 1. ​ ​ (a)  

  2. 2. ​ (b)  

  3. 3. ​ (c)  

  4. 4. ​ (d)  

num1 = int(input("gimme a number")
num2 = int(input("gimme a number")
ans = num1 + num2
print(ans)
num1 = input(int(gimme a number))
num2 = input(int("gimme a number))
Print("Ans")
Print(ans)