Python Programming Quiz

Python Programming Quiz

5th Grade

10 Qs

quiz-placeholder

Similar activities

Comments in Python

Comments in Python

5th - 8th Grade

10 Qs

Python

Python

KG - 9th Grade

8 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Python Skills

Python Skills

1st Grade - Professional Development

15 Qs

Python Statements

Python Statements

5th - 7th Grade

10 Qs

Python 101

Python 101

1st - 5th Grade

15 Qs

Python - 01

Python - 01

1st - 5th Grade

11 Qs

6th Grade Media Quiz

6th Grade Media Quiz

KG - University

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

5th Grade

Hard

Created by

Debaprasad Maity

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the extension of a Python file?

.txt

.py

.java

.doc

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who began working on Python in the late 1980s?

Dennis Ritchie

Guido van Rossum

James Gosling

Bjarne Stroustrup

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does indentation in Python indicate?

A function

A variable

A block of code

A comment

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to create a comment in Python?

/* This is a comment */

<-- This is a comment -->

# This is a comment

// This is a comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the print() function in Python?

To output a variable

To create variables

To define a function

To import libraries

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a data type in Python?

int

float

array

string

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in Python?

A way to create comments

A method to handle errors

A block of code that runs when called

A type of variable

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?