ADITYA CODING CLUB
ADITYA COLLEGE OF ENGINEERING
Sign in to Google to save your progress. Learn more
PYTHON PROGRAMMING TEST-4
1. Test contains 10 questions
2. Each question carries 1 Mark
Name of the Student: *
Roll Number:
Type valid Roll Number
*
Name of the Brach *
Section: *
1. What will be the output of the following code?
x = 5

y = 6

print("x*y")

*
1 point
2. What will be the output of the following code?
age = 16

message = "my age is: "

print message, age

*
1 point
3. What is output of following code −
def func(n): 
  if(n==1): 
     return 1
  else: 
     return(n+func(n-1)) 
print(func(4))
*
1 point
4. What will be the output of the following Python code?
i = 1 while True: if i%3 == 0: break print(i)   i + = 1
*
1 point
5.  Which of the following functions can help us to find the version of python that we are currently working on? *
1 point
6. The following python program can work with ____ parameters.
def f(x): def f1(*args, **kwargs): print("Sanfoundry") return x(*args, **kwargs) return f1
*
1 point
7. What will be the output of the following Python code?
print("abc. DEF".capitalize())
*
1 point
8. What is the output of the following code?
dict={}
print(all(dict))
*
1 point
9.  What will be the output of the following Python code?
a=10 globals()['a']=25 print(a)
*
1 point
10. What will be the output of the following Python code?
x=12 def f1(a,b=x): print(a,b) x=15 f1(4)
*
1 point
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy