No student devices needed. Know more
30 questions
The number or word we assign to a variable
Value
Bug
Information
Text
Which is the Python logo?
What is a input?
A function that allows us to ask the user to enter some data.
To plug in something.
Data displayed on a screen.
A function
What is a output?
A piece of data that is shown on the screen.
Data that the user enters
An output
A orange
What function is used to output a message in python?
print("")
input=name
name=input
What syntax would you use to create a name variable?
name=input()
input=name
name=input{}
name=INPUT
Why would you use a loop?
To repeat a piece of code
To create a loop
To input data
The Python interpreter takes the code that you write and converts it to the language that the computer’s hardware understands.
Is this statement True or False?
TRUE
FALSE
When you try to run Python scripts, a multi-step process begins. In this process the interpreter performs three steps:
Identify the correct order of these steps:
1 → 2 → 3
3 → 2 → 1
2 → 3 → 1
1 → 3 → 2
What will the output be from the following code?
print("Hello" + 2 + "world")
Hello 2 world
Hello2world
TypeError
HelloHelloworld
What will the output be from the following code?
print("Hello world!" * 2 * "Hello world!")
Hello world! Hello world! Hello world! Hello world!
Hello world! Hello world!
Hello Hello World! World!
TypeError
Which Python command is used to output information to the screen?
read
output
display
What is syntax?
Syntax is the word used to describe an error
Syntax is the rules of the programming language
It is used to read information
It is used to output information
What will the output be from the following code?
Print("Hello world!")
NameError
Hello world!
"Hello world"
Print(Hello world!)
What is python named after?
Snake
Television show called Monty Python
What is a variable?
A box(memory location) where you store values
a type of graphics
Data type
a type of memory
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
TRUE
FALSE
When you have an error in your code what is the term to summarize finding and fixing that error?
Error checking
Debugging
Error Finder
Syntax finder
In python the ' STRING data type' can be defined as...?
holds alphanumeric text
hold whole numbers
holds numbers with a decimal point
holds either a true or false value
What will be the output of the code
amount = int(input("Enter a currency in Rupees")
convert=amount*20
print(CONVERT)
10000
Invalid Syntax
CONVERT
Write a code which will ask user to enter a currency in Indian Rupees and then convert the amount in two currencies (AED and POUND respectively)
Your output should look as following :
Enter amount in Indian Rupees
Your amount in AED =
Your amount in Pounds =
In python the ' BOOLEAN data type' can be defined as...?
holds alphanumerical data
holds whole numbers
holds a number with a decimal point
holds either true or false
Explore all questions with a free account