Python-Code Right or Wrong

Python-Code Right or Wrong

7th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

HTML FINAL

HTML FINAL

7th Grade

15 Qs

Practice Quiz - Computer Virus

Practice Quiz - Computer Virus

7th Grade

13 Qs

Hari 3 - Kuis Coding & Perkenalan AI - Fitri Yanti

Hari 3 - Kuis Coding & Perkenalan AI - Fitri Yanti

1st - 12th Grade

12 Qs

KT thường xuyên Tin 7

KT thường xuyên Tin 7

6th - 8th Grade

10 Qs

Mid-Tern Exam's Review

Mid-Tern Exam's Review

8th Grade

15 Qs

Computer Hardware 8th

Computer Hardware 8th

6th - 8th Grade

15 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Quiz kelas 7 (Hardware)

Quiz kelas 7 (Hardware)

7th Grade

10 Qs

Python-Code Right or Wrong

Python-Code Right or Wrong

Assessment

Quiz

Computers

7th - 8th Grade

Practice Problem

Medium

Created by

Timothy Whiting

Used 27+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code is correct?

age = input ("What is your age? ")

age=input ("What is your age? ")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code is correct?

if age>=18

print(You are old enough to vote)

if age>=18:

print("You are old enough to vote")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code is correct?

age=int(input("How old are you? "))

age=int(input("How old are you? ")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code is correct?

if age>=18:

print("Congrats! You are old enough to vote!!")

else:

print("You are NOT old enough to vote. Sorry Charlie")

else:

print("You are NOT old enough to vote. Sorry Charlie")

if age>=18:

print("Congrats! You are old enough to vote!!")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code is correct?

ans1=input What is the capital of Texas?

ans1=input("What is the capital of Texas? ")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code is correct?

while ans1!="Austin":

print("No, try...try again")

ans1=input("What is the capital of Texas? ")

while ans1!="Austin":

print("No, try...try again")

ans1 ("What is the capital of Texas? ")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code is correct?

while counter<13:

product = counter * 9

print(str(counter) + " x 9 = " + str(product))

while counter<13:

product = counter * 9

print(counter) + " x 9 = " +(product))

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?