Python Programming Quiz

Python Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Understanding Vocabulary

Understanding Vocabulary

University

10 Qs

MGT 269 Chapter 6: Job Application Letter & Resume

MGT 269 Chapter 6: Job Application Letter & Resume

University

10 Qs

cnc part programming

cnc part programming

University - Professional Development

10 Qs

AKUNTANSI KEUANGAN MENENGAH 1.1

AKUNTANSI KEUANGAN MENENGAH 1.1

University

10 Qs

SAS MATA PELAJARAN PILIHAN "TEKNOLOGI TERBARU SEPEDA MOTOR"

SAS MATA PELAJARAN PILIHAN "TEKNOLOGI TERBARU SEPEDA MOTOR"

11th Grade - University

10 Qs

GAME QUIZ!!

GAME QUIZ!!

University

15 Qs

Library Associations (LIS) - Dr. Santosh Gupta

Library Associations (LIS) - Dr. Santosh Gupta

University

14 Qs

Logic Gates Recap

Logic Gates Recap

University

10 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Sushma Sushma

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 is the correct syntax to assign a value to a variable in Python?

x = 5

int x = 5

x := 5

var x = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take input from a user in Python?

input()

scanf()

get()

cin

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to display output in Python?

echo()

display()

printf()

print()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to comment a single line in Python?

//

#

/* */

--

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

1name

name_1

name-1

@name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: print(2 + 3)?

23

5

2+3

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a string input to an integer?

str()

int()

float()

input()

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?