Python Flashcards
The valid combination of both operands and operators make an ………….. which returns a computed result.
Expression
The …………….. operator is used to concatenate or join two or more strings.
’+’
The statements that keep on repeating themselves as long as a given condition is true are called the ………………… statements.
conditional
In programming languages, the ……………. statements cause the program control to transfer to a specific location depending on the outcome of the conditional expression.
Iterative
In Python, the conditional statement is terminated with a ………………. symbol
Colon
Unary operators can be used on more than three operands. True or False?
False
An iterative statement is based on 3 values. True or False?
True
Every loop works with the help of a variable known as the control variable. True or False?
True
The iterative statements enable the execution of a set of statements to repeat till the condition is true. True or False?
true
The while loop is used when you are not sure about how many times a loop body will be executed. True or False?
True
The ‘if-else-elif’ statement is used when you need to evaluate only one condition. True or False?
True
If you want to convert a decimal to a binary number, and calculate the reminder in each step. Which operator will you use for this task?
Module Operator (%)
You are a sales manager. You want to determine whether you made a profit or loss based on the revenue figure. What is a appropriate conditional construct that you can use to solve the problem
if-else condition
An iterative statement is also known as ………………. statement.
Looping
The ………………….. loop is used when you are sure about how many times a loop body will be executed
For