Python Programming Professional Certification
Get Python Programming Certificate from Itronix Solutions which you can share in the Certifications section of your LinkedIn profile, on printed resumes, CVs, or other documents.
Exam Details:
- Format: Multiple Choice Question
- Questions: 10
- Passing Score: 8/10 or 80%
- Language: English
Question 1: What will be the output of the following code snippet?
print(63 + (4 + 2)(2 + 1))
- 432
- 18
- 36
- 234
Question 2: What will be the datatype of the var in the below code snippet?
var = 3.14
print(type(var))
var = “Itronix”
print(type(var))
- str and float
- int and str
- str and str
- float and str
Question 3: What will be the output of the following code snippet?
a = [11, 22, 33]
a = tuple(a)
a[0] = 69
print(a)
- [69,22,33]
- (69,22,33)
- (11,22,33)
- Error
Question 4: What will be the output of the following code snippet?
print(type(5 / 2))
print(type(5 // 2))
- float and float
- float and int
- int and float
- int and int
Question 5: What will be the output of the following code snippet?
a = [11, 12, 13, 14, 15]
sum = 0
for i in a:
sum += i
print(sum)
- 11
- 65
- 15
- 50
Question 6: Which of the following concepts is not a part of Python?
- Pointers.
- Loops.
- Dynamic Typing.
- All of the above.
Question 7: What will be the output of the following code snippet?
def solve(a, b):
return b if a == 0 else solve(b % a, a)
print(solve(25, 50))
- 10/10
- 75
- 50
- 25
Question 8: What will be the output of the following code snippet?
def func():
global value
value = “Local”
value = “Global”
func()
print(value)
- Local
- Global
- None
- Local variable referenced before assignment
Question 9: Which of the following types of loops are not supported in Python?
- for
- while
- do-while
- None of the above
Question 10: What will be the output of the following code snippet?
def check(a):
print(“Even” if a % 2 == 0 else “Odd”)
check(13)
- Even
- Odd
- Error
- None