Python Programming Quiz

Python Programming Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

BASIC OF COMPUTER

BASIC OF COMPUTER

Professional Development

10 Qs

C

C

Professional Development

20 Qs

pengenalan dasar cara mengetik

pengenalan dasar cara mengetik

Professional Development

17 Qs

CEH V11 MOCK 2

CEH V11 MOCK 2

Professional Development

20 Qs

Service Learning Flowchart

Service Learning Flowchart

KG - Professional Development

10 Qs

Python-Quiz-Basic-Datatypes

Python-Quiz-Basic-Datatypes

12th Grade - Professional Development

10 Qs

SPARK FIDDLE

SPARK FIDDLE

Professional Development

20 Qs

C Programming

C Programming

Professional Development

10 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

ERROL ANTONIO

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get user input in Python 3?

input()

raw_input()

scan()

read()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to check if x is equal to 10?

x = 10:

x == 10:

x := 10:

x === 10:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

**

pow

^^

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(5 // 2)?

2.5

2

3

2.0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will float(3) return?

"3.0"

3.0

"3"

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a string "10" into an integer?

str("10")

int("10")

integer("10")

str(int("10"))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to write a single-line comment in Python?

/* comment */

""" comment """

#comment

// comment //

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?