Question
1. Which of the following format statements will create a Traceback errors? a. '%d %s %g' %(3, 4, 5) b. '%d %s %g' %(3 ,
1. Which of the following format statements will create a "Traceback" errors?
a. '%d %s %g' %(3, 4, 5)
b. '%d %s %g' %(3 , '4', 5)
c. '%g %g %d' %(3, 4.0, 5)
d. '%s %g %d' %(3, '4.0',5)
2. What is the name of variable which controls execution of the loop, when to continue or stop?
a. definite variable
b. indefinite variable
c. iteration variable
d. loop variable
3. Which of the following statements is not true for Python programming language?
a. variable names are case sensitive
b. Reserved words can be used for variable names
c. string variables cannot be converted to integers
d. "if" statement doesn't need an "else" statement to work
4. A 'for" loop is good for
a. making choices in a program
b. running lines of program code for a predictable number of times
c. for counting
d. for conditional execution of the program
5. Which one of the following computer component will retain data after computer power is turned off?
a. Central Processing Unit
b. Memory Cache
c. L1 Cache
d. Secondary Memory
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started