10 Questions
Which of the following is not a characteristic of a good Python coding environment?
Automatically generating code for small projects
Which of the following is not a platform on which Python is available?
Lunar
What type of error does the following code contain?
print(This will be displayed")
Syntax error
What type of error does the following code contain?
print (70/0)
Runtime error
Python supports many simple data types. Match the given data with its type:
88537.547 = float False = Boolean 12345 = integer "12. Introduction to Python" = string
Which of the following is not considered a comparison operator?
=
What will be the output from the following code segment?
a,b = "I", "love to"
print(a,b,"code.",sep=';')
I;love to;code.
Which of the following is not a Python data structure?
Crash table
Given the following while loop:
index = 0
output = 0
while Index < 7:
Output += Index * 49
Index += 2
What is the value of Output after the third iteration of the loop?
294
Which one of the following statements regarding function definitions is false?
Use the keyword function to define the start of the function.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free