Search Header Logo

Sequence and Selections

Authored by H Valli

Computers

9th - 12th Grade

Used 5+ times

Sequence and Selections
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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)

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?