NEW
Font size
WorksheetsProgramming Boot Camp I-I
Total questions: 20
Worksheet time: 10mins
What is a variable in programming?
A symbolic name for a value that can change
A comment within the code
A fixed value that cannot be changed
A function that performs a specific task
Name the different data types in programming.
tuple
integer, float, string, boolean, array, object
char
double
What is the purpose of programming?
To fly to the moon
To paint a picture
To instruct computers to perform specific tasks or solve problems.
To bake cookies
What is Python programming language known for?
Complexity, speed, and security
Confusion, inefficiency, and rigidity
Longevity, efficiency, and popularity
Simplicity, readability, and versatility
What are arithmetic operators in Python?
+, -, *, /, %, **, //
^
++
&&
How is addition performed in Python?
Using the '-' operator
Using the '+' operator
Using the '/' operator
Using the '*' operator
How is subtraction performed in Python?
Subtraction in Python is done using the '+' operator.
Subtraction in Python involves using the '*' operator.
Subtraction in Python is performed using the '-' operator.
Subtraction in Python is achieved through the '//' operator.
How is multiplication performed in Python?
Using the '/' operator
Using the '-' operator
Using the '*' operator
Using the '+' operator
How is division performed in Python?
Division in Python is performed using the '+' operator
Division in Python is performed using the '/' operator for floating-point division and the '//' operator for integer division.
Division in Python is done using the '*' operator
Python does not support division operations
What is the remainder operator in Python?
++
!
%
*
/
How is integer division performed in Python?
Integer division in Python is done using the plus operator (+).
Integer division in Python is performed using the asterisk operator (*).
Integer division in Python is performed using the double forward slash operator (//).
Integer division in Python is achieved by using the percent operator (%).
What happens when you divide two integers in Python?
The result will always be an integer
The result will be a boolean
The result will be a string
The result will be a float if the division is not evenly divisible, and an integer if it is evenly divisible.
What is the result of 10 % 3 in Python?
2
1
0
5
What is the result of 15 // 4 in Python?
3
5
6
4
What is the data type of the result of integer division in Python?
boolean
float
integer
string
What is the data type of the result of remainder operator in Python?
integer
float
string
boolean
What is the data type of the result of addition in Python?
integer
boolean
list
string
What is the data type of the result of subtraction in Python?
float
bool
int
str
What is the data type of the result of multiplication in Python?
str
list
int or float
dict
What is the data type of the result of division in Python?
boolean
int
float
string
