NEW
Font size
WorksheetsPython Basics or Syntax
Total questions: 17
Worksheet time: 9mins
The number or word we give to a variable Example name="Robert"
What does the word Robert Refers to?
Value
Text
name
Information
The word (command) used to display numbers and text on the screen
OUTPUT
COMMAND
What is a variable in Programming?
A box(memory location) where you store values
a type of graphics
Data type
a type of memory
What symbol is used in python to assign values to a variable?
equals =
asterisk *
forward slash /
plus +
What will be the output?
name = 'Grace Kitosi'
print (name)
grace kitosi
Grace Kitosi
Grace kitosi
name
What is a input?
A function that allows us to ask the user to enter some data.
Data displayed on a screen.
A function
To plug in something.
What is an output?
An output
DA piece of data that is shown on the screen.
Data that the user enters
Which of the following is correct?
name=input
input=name
name=input()
input()=name
If Python were to get into a fight with JavaScript, who would win?
Python
JavaScript
When you have an error in your code what is the term to summarize finding and fixing that error?
Error checking
Syntax finder
Debugging
Error finder
A data type than can have one of two values: True or False
Boolean
modulo
variable
interpreter
Which command allows a user to type when the program is running?
INPUT
input
First Name = "Bara"
Is the above code correct?
YES
NO
FirstName = "Hawa"
Is the above code correct?
YES
NO
1Name = "Bara Alawi"
Is the above code correct?
YES
NO
What is the name of this software?
Personal Computer
PyCharm
What is the name of this software?
Personal Computer
PyCharm
