Font size
WorksheetsBasic Python Quiz for Beginners
Total questions: 20
Worksheet time: 32mins
Is Python a high level programming language ?
TRUE
FALSE
Who is the creator of Python programming language ?
Dennis Ritchie
James Gosling
Guido van Rossum
Ross Ihaka
What is anaconda in context of python programming ?
Free and open-source distribution of Java
Free and open-source distribution of the Python
Free and open-source distribution of C
Free and open-source distribution of html
What is Jupyter notebook ?
Jupyter Notebook is a book about Jupiter Planet.
Jupyter Notebook is an application to play games.
Jupyter Notebook is a web application that you can use to write python code
None of the above
What is Visual Studio Code ?
Visual Studio Code is a free source-code editor to write code.
Visual Studio Code is a paid source-code editor to write code.
Visual Studio Code is a programming language.
There is no visual studio code.
Complete the program to find greater of two numbers ?
Which program will generate a table of 3?
Which Program will generate odd numbers ?
What is the data type of ["Sunday","Monday","Tuesday"]
List
String
Numeric
Tuple
What is the data type of {"India","UAE","USA"} ?
Tuple
List
String
Numeric
What will be the answer of print(5+10) ?
510
15
51
50
What will be the answer of print("50" + "50")
100
5050
505
2500
What is the purpose of continue statement ?
To skip the loop
To break the loop
What is the purpose of break ?
Skip the loop
Break the loop
What is the output of :
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break
apple
cherry
banana
cherry
apple
banana
apple
What is the output of :
fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "apple":
continue
print(x)
apple
banana
banana
cherry
apple
cherry
banana
What is a correct syntax to output "Hello World" in Python?
echo "Hello World"
echo("Hello World")
p("Hello World")
print("hello World")
How to you insert comment in Python ?
Using "#"
Using "//"
Using "--"
Using "\\"
What is the correct file extension for Python files?
.pyth
.pyt
.py
.pt
What is the output of print(100/0 ) ?
100
0
1
Division Error
