Python Programming Quiz

Python Programming Quiz

5th Grade

10 Qs

quiz-placeholder

Similar activities

Python

Python

KG - Professional Development

13 Qs

Basic Python Quiz 3

Basic Python Quiz 3

5th Grade

14 Qs

Python 4.2 and 4.3

Python 4.2 and 4.3

1st - 5th Grade

8 Qs

Basic JavaScript Programming Quiz

Basic JavaScript Programming Quiz

5th Grade

15 Qs

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

Python_R

Python_R

2nd Grade - Professional Development

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

Discover more resources for Computers