Search Header Logo

Python Basics Quiz

Authored by FITRI KARIMAH

Computers

11th Grade

Used 4+ times

Python Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a variable in Python?

var x = 5

int x = 5

x = 5

declare x = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to take input from the user in Python?

scan()

input()

get()

read()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this code

=> print("Hello", "World")

HelloWorld

Hello, World

Hello World

"Hello" "World"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the int() function do?

Turns an integer into a string

Turns a string into an integer

Rounds a number

Adds two numbers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT a Python data type?

str

float

number

bool

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this code? x = "10" y = int(x) print(y + 5)

105

"105"

15

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for "equal to" in an if statement?

=

==

:=

===

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?