Kips Class 7 Cyber Apps Chapter 7 More on Python


Chapter 7 More on Python

Brain Developer
A. Fill in the blanks:
1. The order in which the operators are evaluated is called Precedence of operators.
2. The valid combination of both operands and operators makes an expression, which returns a computed result.
3. '+' operator is used to concatenate or join two or more strings.
4. In Python, the flow of execution is altered by the use of Control Statements.
5. The if else control structure is used when either of the two different actions is to be performed depending upon the result of the conditional expression.
6. In Python, the conditional statement is terminated with a colon symbol.

B. State True or False:
1. An operator does not need any operand to perform any operations. (False)
Correct Answer:
An operator need one or more operand to perform any operations.
2. Unary operators can be used on more than three operators. (False)
Correct Answer:
Unary operators can be used on only one operand.
3. Exponential operator is used to calculate the power of numbers. (True)
4. Higher precedence operators are operated before the lower precedence operators. (True)
5. 'if-elif-else' statements are used when we have to evaluate only one condition. (False)
Correct Answer:
'if-elif-else' statements are used when we have to evaluate multiple condition.
6. Iterative Statements enable the execution of a set of statements to repeat till the condition is true. (True)

C. Application Based Questions:
1. Sumit is converting a decimal number to a binary number. He needs to calculate the remainder in each step. Which operator do you suggest him to use for this task?
Answer:
He should use % (Remainder) Operator for this task.

2. Arif’s father is a businessman. He wants to determine whether he made a profit or loss based on the revenue figures. Suggest an appropriate conditional construct he can use to solve the problem.
Answer:
He should use if…else conditional statement construct to solve the problem.

D. Multiple Choice Questions:
1. The values on which operators work are known as ___________________.
a) Operands
b) Operating system
c) Data
d) Numbers
Answer:
a) Operands

2. // (floor division) is same as / (division).
a) True
b) False
c) In some cases, yes
d) None of these
Answer:
c) In some cases, yes

3. In which construct the statements in a program are executed in a sequential manner followed by one after the another with no possibility of branching off to another action.
a) Conditional
b) Sequential
c) Iterative
d) None of these
Answer:
b) Sequential

4. Which statement among the following enables the execution of a statement to repeat till the condition is true.
a) Conditional
b) Sequential
c) Iterative
d) None of these
Answer:
c) Iterative

5. If in a conditional expression, the condition evaluates to false, then which block of statements will be executed first?
a) else
b) if
c) both
d) None of these
Answer:
a) else

E. Name the following:
1. Two types of arithmetic operators __________________
2. Three types of Logical operators ____________________
3. Two operators used in strings __________________
4. The statement which is used to evaluate only one condition ________________
5. The procedure to write the steps of a program in a well defined way ________________
Answer:
1. Two types of arithmetic operators: Unary operator, Binary operator
2. Three types of Logic operators: and, or, not
3. Two operators used in strings: '+' and '*'
4. The statement which is used to evaluate only one condition: if statement
5. The procedure to write the steps of a program in a well defined way: Algorithm

F. Answer the following questions briefly:
1. What do you mean by the term operator?
Answer:
Operators are symbols that perform arithmetic and logical operations on operands and provide a meaningful result.

2. What is the difference between '/' and '//' operator?
Answer:
'/' and '//' both are Binary Arithmetic Operators. '/' (Division) operator is used to divide the numbers and give an output in the decimal form, e.g., value of 5/2 is 2.5 whereas '//' (Floor division) divides the numbers and gives an output in the integer form, e.g., value of 5//2 is 2 and the value of -5/2 is -3.

3. What is the use of '*' operator in a string manipulation?
Answer:
'*' operator in a string manipulation is used to replicate a given string for a number of times. It is also known as Replication Operator.

4. What are the different types of control structures?
Answer:
The different types of control structures are Sequential statements, Conditional statements, and Iterative statements.

5. Explain the use of if…else control structure.
Answer:
The if…else control structure is used when either of the two different actions is to be performed depending upon the result of the conditional expression.

No comments:

Post a Comment

Also read!

Click on any of the below text for additional links:

Class 6

Class 6 Computer Kips Solutions
Class 6 Gul Mohar English Solutions
→ Class 6 Map Pointing Solutions
Class 6 NCERT Civics Solutions
Class 6 NCERT Geography Solutions
Class 6 NCERT History Solutions
Class 6 NCERT Maths Solutions
Class 6 NCERT Science Solutions

Class 7

Class 7 Computer Kips Solutions
Class 7 Gul Mohar English Solutions
English Grammar Class 7
English Writing Skills Class 7
Class 7 Map Pointing Solutions
Class 7 NCERT Civics Solutions
Class 7 NCERT Civics Notes
Class 7 NCERT Civics Extra Questions
Class 7 NCERT Geography Solutions
Class 7 NCERT Geography Notes
Class 7 NCERT Geography Extra Questions
Class 7 NCERT History Solutions
Class 7 NCERT History Notes
Class 7 NCERT History Extra Questions
Class 7 NCERT Maths Solutions
Class 7 NCERT Science Solutions
Class 7 NCERT Science Notes
Class 7 NCERT Science Extra Questions

Class 8

Class 8 Kips Artificial Intelligence Solutions
Class 8 Gul Mohar English Solutions
English Grammar Class 8
English Writing Skills Class 8
Class 8 Map Pointing Solutions
Class 8 NCERT Civics Solutions
Class 8 NCERT Civics Notes
Class 8 NCERT Civics Extra Questions
Class 8 NCERT Geography Solutions
Class 8 NCERT Geography Notes
Class 8 NCERT Geography Extra Questions
Class 8 NCERT History Solutions
Class 8 NCERT History Notes
Class 8 NCERT History Extra Questions
Class 8 NCERT Maths Solutions
Class 8 NCERT Science Solutions
Class 8 NCERT Science Notes
Class 8 NCERT Science Extra Questions
Class 8 NCERT Science Exemplar
Class 8 NCERT Science MCQs

Class 9

Class 9 Kips Artificial Intelligence Solutions
Class 9 Map Pointing Solutions
Class 9 NCERT Civics Solutions
Class 9 NCERT Geography Solutions
Class 9 NCERT History Solutions
Class 9 NCERT Maths Solutions
Class 9 NCERT Science Solutions

Class 10

Class 10 Kips Artificial Intelligence Solutions
Class 10 NCERT English Solutions
→ Class 10 Map Pointing Solutions
Class 10 NCERT Civics Solutions
Class 10 NCERT Civics Notes
Class 10 NCERT Civics Extra Questions
Class 10 NCERT Geography Solutions
Class 10 NCERT Geography Notes
Class 10 NCERT Geography Extra Questions
Class 10 NCERT History Solutions
→ Class 10 NCERT History Notes
Class 10 NCERT History Extra Questions
Class 10 NCERT Maths Solutions
Class 10 NCERT Science Solutions
Class 10 NCERT Science Notes
Class 10 NCERT Science Extra Questions

Computer Languages

Python Basics

Extra Activities

Extra Activities

Extra Knowledge

Extra Information
General Knowledge
Historical Places in India
Latest technology
Physical Sciences
Facts

• Mathematics quick links
Mathematical Terms
Maths Tricks

Home Top