Python Programming Quiz

Python Programming Quiz

5th Grade

10 Qs

quiz-placeholder

Similar activities

Introduction to Coding

Introduction to Coding

5th - 8th Grade

11 Qs

9.03 Programming Iteration

9.03 Programming Iteration

5th - 10th Grade

10 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

[Pygame Zero] Python Games Workshop Quiz

[Pygame Zero] Python Games Workshop Quiz

5th Grade

7 Qs

CodeMonkey Coding Vocabulary

CodeMonkey Coding Vocabulary

3rd - 7th Grade

12 Qs

Roblox Scripting Quiz 1

Roblox Scripting Quiz 1

5th Grade

10 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python

Python

KG - Professional Development

13 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?