Python-Recap 1

Python-Recap 1

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Bài kiểm tra 15 phút

Bài kiểm tra 15 phút

7th Grade - University

10 Qs

Computer Science SL

Computer Science SL

9th - 12th Grade

9 Qs

tle m 1 to 5

tle m 1 to 5

10th Grade

10 Qs

Types of Media (Print Media)

Types of Media (Print Media)

12th Grade

7 Qs

info FAKT py/1

info FAKT py/1

11th Grade

10 Qs

CPA UNIT 1

CPA UNIT 1

9th - 12th Grade

10 Qs

Library induction

Library induction

10th Grade - University

10 Qs

Python 01: Print

Python 01: Print

9th Grade

10 Qs

Python-Recap 1

Python-Recap 1

Assessment

Quiz

Instructional Technology

9th - 12th Grade

Medium

Created by

Zubaidah Shaheen

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which Python code segment will display “Hello, world!” on the screen?

"Hello, world!"

print "Hello, world!"

print("Hello, world!")

display Hello, world!

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What does the following Python code display?

print("Hello")

print("World")

HelloWorld

Hello

World

Hello World

World

Hello

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What type is the following variable?

x = "Hi there"

float

integer

boolean

string

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the type of the variable x in the following Python program?

x = input("Enter something: ")

integer

string

float

boolean

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What can you use to make the user enter numbers?

int(print("enter a number"))

print(int("enter a number"))

print("enter a number")

int(print "enter a number")