Variables, Input and Output

Variables, Input and Output

9th - 11th Grade

32 Qs

quiz-placeholder

Similar activities

CooperKing NOCTI Quiz

CooperKing NOCTI Quiz

11th - 12th Grade

30 Qs

AP CSP BONUS QUIZIZZ - Python Preview

AP CSP BONUS QUIZIZZ - Python Preview

9th - 12th Grade

30 Qs

Python programming

Python programming

11th Grade

30 Qs

Remedial dan Pengayaan Pemrograman

Remedial dan Pengayaan Pemrograman

10th Grade

30 Qs

Semester 1 Exam Review

Semester 1 Exam Review

9th - 12th Grade

30 Qs

Python Quiz 2

Python Quiz 2

10th Grade

30 Qs

PTS TIK 2023

PTS TIK 2023

10th Grade

30 Qs

python

python

11th Grade - University

35 Qs

Variables, Input and Output

Variables, Input and Output

Assessment

Quiz

Computers

9th - 11th Grade

Medium

Created by

Patrick Bryar

Used 1+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to accept data as input at run time?

output()

print()

int()

input()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character is used to give comments in python program?

&

@

&

#

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type than can have one of two values: True or False?

boolean

variable

modulo

interpreter

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which example is the correct way to write a variable in Python and and assign it a value?

my_variable = 10

my variable = 10

my_variable is 10

my_variable: 10

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data type is the most suitable to store a whole number?

String

Integer

Boolean

Float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print function do in python?
It's a variable.
It can input data.
It displays something like a string or integer
It loops the code.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello world!")
SyntaxError
Hello world!
"Hello world!"
print(Hello world!)

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?