Who developed Python Programming Language?
Revision Test- Programming in Python

Quiz
•
Computers
•
University
•
Hard
Chhinder Kaur
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Wick van Rossum
Rasmus Lerdorf
Guido van Rossum
Niene Stom
Answer explanation
Python language is designed by a Dutch programmer Guido van Rossum in the Netherlands.
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is the correct extension of the Python file?
.python
.pl
.py
.p
Answer explanation
‘.py’ is the correct extension of the Python file. Python programs can be written in any text editor. To save these programs we need to save in files with file extension ‘.py’.
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is used to define a block of code in Python language?
Indentation
Key
Brackets
All of the mentioned
Answer explanation
In Python, to define a block of code we use indentation. Indentation refers to whitespaces at the beginning of the line.
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following character is used to give single-line comments in Python?
//
#
!
/*
Answer explanation
To write single-line comments in Python use the Numero sign (#) at the beginning of the line. To write multi-line comments, close the text between triple quotes.
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the order of precedence in python?
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Answer explanation
For order of precedence, just remember this PEMDAS (similar to BODMAS).
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is not a core data type in Python programming?
Tuples
Lists
Class
Dictionary
Answer explanation
Class is a user-defined data type.
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following Python expression if x=56.236? print("%.2f"%x)
56.236
56.23
56.0000
56.24
Answer explanation
The expression shown above rounds off the given number to the number of decimal places specified. Since the expression given specifies rounding off to two decimal places, the output of this expression will be 56.24. Had the value been x=56.234 (last digit being any number less than 5), the output would have been 56.23.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Workshop Day - 2

Quiz
•
University
10 questions
python test 1_23_24

Quiz
•
University
20 questions
Technical Quiz R1

Quiz
•
University
15 questions
Python

Quiz
•
University
10 questions
Python Basics

Quiz
•
University
10 questions
Q2 - Python

Quiz
•
University
10 questions
Python Basics

Quiz
•
University
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade