0% found this document useful (0 votes)
9 views4 pages

Python Project

This document is a quiz on Python programming covering various topics such as its creator, features, data types, and basic syntax. It includes multiple-choice questions that test knowledge on Python's characteristics, coding practices, and the use of its built-in functions. The quiz serves as a tool for assessing understanding of introductory Python concepts.

Uploaded by

soniaagupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Python Project

This document is a quiz on Python programming covering various topics such as its creator, features, data types, and basic syntax. It includes multiple-choice questions that test knowledge on Python's characteristics, coding practices, and the use of its built-in functions. The quiz serves as a tool for assessing understanding of introductory Python concepts.

Uploaded by

soniaagupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Programming: Chapter Quiz

Topic 1: Introduction & Features


1. Who created the Python programming language?
a. Bill Gates
b. Guido van Rossum
c. Mark Zuckerberg
d. Steve Jobs

2. Which feature of Python makes it easy for beginners to learn?


a. It is very complex
b. It is difficult to read
c. Simplicity and Readability
d. It is very expensive

3. Python is an "Interpreted Language." This means:


a. It executes code line by line directly
b. You must wait a long time to compile it
c. It only works on Windows
d. It is only for making robots

4. Which mode is best for typing short, one-line commands to get


immediate results?
a. Script Mode
b. Silent Mode
c. Interactive Mode
d. Game Mode

5. In Script Mode, Python files are saved with which extension?


a. .docx
b. .py
c. .jpg
d. .txt

6. What is the name of the built-in editor used to write and run Python
code?
a. IDLE
b. Notepad
c. Chrome
d. Scratch
7. Which of the following is a VALID variable name in Python?
a. 12name (Starts with a number)
b. my_age (Uses an underscore)
c. Total marks (Contains a space)
d. @section (Contains a special symbol)

8. If you want to store the number 10.5 (a decimal), which data type
should you use?
a. Integer
b. String
c. Float
d. Boolean

9. A variable that stores either "True" or "False" is known as a:


a. String
b. Boolean
c. Float
d. Integer

10. Which function is used to display output on the screen?


a. input()
b. save()
c. print()
d. display()

11. What symbol is used to start a single-line comment in Python?


a. *
b. $
c. #
d. &

12. If you want to ask a user for their name, which function would you use?
a. print()
b. input()
c. open()
d. run()

13. During installation, why is it important to check the box "Add


[Link] to PATH"?
a. It makes the computer run faster.
b. It allows you to run Python commands from the Command Prompt
easily.
c. It installs extra games.
d. It changes the color of the Python window.

14. Which menu in IDLE do you click to open a new file for Script Mode?
a. Edit -> New File
b. Run -> New File
c. File -> New File
d. Options -> New File

15. What is the keyboard shortcut to run a Python program in Script


Mode?
a. F1
b. F5
c. Ctrl + S
d. Alt + F4

16. Which of the following is an INVALID variable name because it is a


"Reserved Keyword"?
a. my_variable
b. float
c. Student1
d. total_sum

17. What happens if you try to use a space in a variable name like user
name = "Amit"?
a. Python ignores the space.
b. Python automatically adds an underscore.
c. It results in a Syntax Error.
d. The program runs perfectly.

18. Look at this code: print("Hello" + name). What is the + sign doing
here?
a. Adding two numbers.
b. Joining (combining) the string "Hello" with the value of the variable
name.
c. Deleting the variable.
d. Dividing the text.
19. What would be the data type of the value "100" (with quotation
marks)?
a. Integer
b. Float
c. String
d. Boolean

20. In the sample program for "Area of a Triangle," what does the symbol
** represent?
a. Multiplication
b. Addition
c. Exponent (Power), such as square root when using 0.5
d. Division

21. What are the three greater-than symbols (>>>) in the Python Shell
called?
a. Command lines
b. Arrows
c. Python Prompt
d. Stop signs

22. If you want to open a program you already saved, which shortcut
should you use?
a. Ctrl + N
b. Ctrl + O
c. Ctrl + S
d. Ctrl + P

You might also like