Y8 Python

Y8 Python

7th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

AQA GCSE Computer Science - 3.2.2 Programming Concepts

AQA GCSE Computer Science - 3.2.2 Programming Concepts

8th - 10th Grade

20 Qs

Half term recap quiz

Half term recap quiz

8th Grade

15 Qs

Python Operator by Resha

Python Operator by Resha

8th Grade

15 Qs

BAB 4 - STRUKTUR KOD ARAHAN TINGKATAN 3

BAB 4 - STRUKTUR KOD ARAHAN TINGKATAN 3

8th - 10th Grade

20 Qs

Ms. Ayesha's Python Quiz

Ms. Ayesha's Python Quiz

7th Grade

20 Qs

Year 8 | Intro to Python | Quiz 1

Year 8 | Intro to Python | Quiz 1

7th Grade

15 Qs

Python Casting and Input

Python Casting and Input

8th - 11th Grade

15 Qs

Basic Python Key Terms

Basic Python Key Terms

6th - 8th Grade

20 Qs

Y8 Python

Y8 Python

Assessment

Quiz

Computers

7th - 8th Grade

Hard

Created by

S Walker

Used 25+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct way to save what the user has typed on the keyboard as "userValue"?

input(userValue)

userValue=input

userValue=input()

input=userValue()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these will print a message and the variable "userValue" to the screen?

print(Hello userValue)

print("Hello userValue")

print("Hello" userValue)

print("Hello", userValue)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these will make userValue into a number?

userValue=input(int())

int(userValue)=input()

userValue=int(input())

userValue=int(input)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I have two variables "answer" and "guess", which will check they are equal?

if answer = guess:

IF answer == guess:

if answer == guess

if answer == guess:

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is wrong with this code:

lucky = 5

guess = int(input("Enter a guess: "))

if lucky == input:

print("You win!")

The if statement checks the wrong values.

The guess needs to be a number.

The lucky number is wrong.

Nothing is wrong.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is wrong with this code:

lucky = 5

guess = input("Enter a guess: ")

if lucky == guess:

print("You win!")

The if statement checks the wrong values.

Guess needs to be an integer (number).

The lucky number is wrong.

Nothing is wrong.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is wrong with this code:

lucky = 5

guess = int(input("Enter a guess: "))

if lucky == guess:

print("You win!")

The if statement checks the wrong values.

The guess needs to be a number.

The lucky number is wrong.

Nothing is wrong.

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?