Y8 Python

Y8 Python

7th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

1st Grade - Professional Development

20 Qs

vocab review unit 1 term 2

vocab review unit 1 term 2

8th Grade

16 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

QUIZ BAB 4: SISTEM OPERASI

QUIZ BAB 4: SISTEM OPERASI

8th Grade - University

20 Qs

Perangkat lunak quiz

Perangkat lunak quiz

7th - 9th Grade

20 Qs

Python

Python

8th - 9th Grade

15 Qs

DATA ANALYTICS USING EXCEL

DATA ANALYTICS USING EXCEL

7th Grade

15 Qs

UH Informatika Bab.VI

UH Informatika Bab.VI

8th Grade

20 Qs

Y8 Python

Y8 Python

Assessment

Quiz

Computers

7th - 8th Grade

Practice Problem

Hard

Created by

S Walker

Used 26+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

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?