JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
Python Programming Basics
Before sharing this exam customize this description, the title above, and the questions below.
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Full Name
Your answer
Class
*
Your answer
1. When we type a command, we can see the result immediately in this.
*
1 point
Python Shell
Python Script
Command Line
None of the above
Required
2. Which of these is NOT a feature of Python?
*
1 point
Open Source
Portable
Used for Game Development
Structured Language
3. Which punctuation symbols are used to mark the beginning and end of a print command in Python?
*
1 point
{ }
[ ]
( )
< >
4. Which symbol is a Python Interpreter prompt?
*
1 point
#>
>>>
>
> >
5. Which statement is the correct way to display the message "Welcome to Python"?
*
1 point
display("Welcome to Python")
Print("Welcome to Python")
print("Welcome to Python");
print("Welcome to Python")
6. When we save a python file, the extension is
*
1 point
.python
.py
.pi
.pt
7. Special constants with a prefix '\' are called ________.
*
1 point
operators
keywords
constants
escape sequences
8. In Python the word "Program" is the same as "program"?
*
1 point
Yes
No
9. The character constant to display output in a newline is
*
1 point
\N
\t
\k
\n
10. What output will be generated by the following statement? print("Plan A\\ Plan B")
*
1 point
Plan A, Plan B
Plan A\ Plan B
Plan A\\ Plan B
Plan APlan B
11. Which of the following is an incorrect option for the print statement.
*
1 point
Must be enclosed in round parentheses
Can have special characters within double quotes
Cannot be used more than once in a program
MAy be used to display the result of a mathematical calculation
12. Which of these is a correct statement?
*
1 point
A Python program can be run in script mode only
We cannot write multi line programs in the interactive mode
In script mode, we have to save a program to be able to run it
We have to declare comments in a program to be able to run it.
13. ____________ are storage locations in Python.
*
1 point
Data types
Variables
Operators
Comments
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms
Help and feedback
Contact form owner
Help Forms improve
Report