NEW
Font size
WorksheetsPython Series
Total questions: 15
Worksheet time: 3mins
What is Python?
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991
Python is a popular programming language. It was created by Guido van Rossum, and released in 1994
Python is a popular programming language. It was created by Guido van Rossum, and released in 1993
Python is a popular programming language. It was created by Guido van Rossum, and released in 1992
What can Python do?
Python can't be used on a server to create web applications
Python can be used on a server to create web applications
Python can be used on at server to create web applications
Python can be used on a server to created web applications
Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python a simple syntax similar to the English language
Python has syntax that allows developers to write programs with fewer lines than some programming languages
Python on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick
What is a correct syntax to output "Hello World" in Python?
echo("hello world");
echo "hello world"
p("hello world");
print("hello world");
How do you insert COMMENTS in Python code?
/*This is a comment*/
#This is a comment
#//This is a comment
//This is a comment
Python is an interpreted programming language, this means that as a developer you write Python
(.py)
(.pY)
(.PY)
(.Py)
To check if you have python installed on a Windows PC, search in the start bar for Python or run the following on the Command Line
(cmd.exe):
cmd.exe
(cmd.exe);
(cmd.exe).
Which one is NOT a legal variable name?
my_var
_myvar
Myvar
my-var
How do you create a variable with the numeric value 5?
x = 5
both the other answer are correct
x = int(5)
x = int(5);
What is the correct file extension for Python files?
.pyth
.pt
.py
.pyt
How do you create a variable with the floating number 2.8?
x = 2.8
x = float(2.8)
Both the other answers are correct
Variables are containers for storing data..?
values
value
values;
There may be times ........ want to specify a type on to a variable
when you
that you
like that
is
Variables of numeric types are created when you assign a value to them:
x = 1
y = 2/8
z = 1J
z = 1/J
Int, or integer, is a whole number, positive or negative, without decimals, of unlimited length.
z = --3255522
x = 1
y = -35656222554887711
print(type(x))
