Question: True or False and Why 1. A condition is evaluated to either True or False 2. You cannot write a Python program out of its

 True or False and Why 1. A condition is evaluated to

True or False and Why 1. A condition is evaluated to either True or False 2. You cannot write a Python program out of its Flowchart diagram 3. Every if statement could be written as while statement 4. The symbol-is a logical operator 5. A program uses selection to implement a looping structure. 6. A variable (or an identifier) in Python can be any sequence of characters and integers. 7. Suppose that count is an integer variable initialized to 6. The statement count -2 when executed will set count to 8 8. The python function float is to convert a string data type to floating-point data type. 9. The python function int is to display a variable value as integer data type 10. Suppose A, B and C are Boolean variables set to True, False, True respectively. The logical expression not ((A or C) and (A and B)) is evaluated to False. MULTIPLE CHOICE wo-way selection in Python is using if statements if...else statements for loops sequential statements 2. The output of the following python program is count 5 while count 23: count 3 print(count) 23 dl 3. In a_control structure, the program executes particular statements once depending on some condition(s). 4. Which of the following is NOT a resrved word in Python? 5. Which of the following is logically erroneous, if you are trying to compare rate to 10? 6. Given msg, tax, price are string, float, and float variables respectively in Python program. random sequence selection dl repetition while selection if if rate =-10: while rate 15 if rate != 10: while rate 10: dl Which of the following assignment statements are valid? i msgTotal Evaluation' 11. price * 0.068 tax iii. tax= price * 0.068 iv. tax- price mEg (i) and iii) are valid C Only (i) is valid (ii) and (iiil are valid i and (iv are valid 7. Suppose that x is an int variable. Which of the following expressions always evaluates to false? a. (x 0) or (x 0) and (z0) (x0 and (z- 0) 8. Which of the following is true about nested loop with outer and inner loop? a.The body of the outer loop is executed first and followed by body of inner loop b.The body of the inner loop is executed for every iteration of outer loop c.The number of iteration is the sum of outer loop and inner loop iteration. d.The body of the outer loop is executed after the execution of the body of inner loop What is value ofy after the following code executes 9. for i in range (5, 15, 3): print('ny:,y 15 dl 10. How many times the following for loop does execute? for i in range (1,-5, -2): -2 none three times six times dl

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!