It Final Assignment
It Final Assignment
1.
GROUP ASSIGNMENT
Grad
12
Name:- Rebira Alemayehu
ID No :- 34
Part II: Match the items given under column B with associated items in column A
ANSWER A B
G 1. Program flow control A. if, if…else, if…elif..else
J 2. Bytecode(.pyc file) B. interactive interpreter
E 3. Breakpoint C. a>b, a==b
H 4. Indentation D. writes, compiles, tests and runs a program
A 5. Branching statement E. line interpreter pauses while
running
F 6. Nested loop F. Loop inside another loop
C 7. Condition(expression) G. Order of code execution
D 8. IDE H. Indicates block of code
B 9. Read-Eval-Print Loop (REPL) I. Any line preceded by the hash(#)
I 10. Comment J. Python Virtual
Part III: Choose the correct answer from the given alternatives.
D 1. All are a program flow controls except____.
A. sequential statement B. branching statement
C. looping D. comment
C 2. The statement range(9) generates a sequence of numbers from_____.
A. 0 to 9 B. 0 to 8
C. 1 to 9 D. 1 to 8
A 3. One of the following cannot be the condition(expression) of ‘if statement’:
A. a = b B. a !=b
C. a >=b D. a == b
B 4. Which of the following indentation is not valid in python?
A. if 5:print(‘five’) B. if a>b:print(‘greater than’)
C. if 4 > 5: print(‘false’) D. if a:print(‘yes’)
A 5. Compiled source code is stored in_____.
A. .pyc file B. .py file
C. Pvm file D. Compiler