ADITYA CODING CLUB
Aditya College of Engineering, Madanapalle
Python Programming Test-2
1. Test contains 10 Questions 
2. Each Question Carries 1 Mark
Roll Number: *
Type Valid Roll Number 
Name of the Student: *
Department *
Year of Course: *
Required
Section  *
1. What will be the datatype of the var in the below code snippet?
var = 10 print(type(var)) var = "Hello" print(type(var))
*
1 point
2.  How is a code block indicated in Python? *
1 point
3.  Which of the following declarations is incorrect in python language? *
1 point
4. Python Dictionary is used to store the data in ___ format.
*
1 point

5. What will be the output of the following Python code?

a=7 if a>4: print("Greater")
*
1 point

6. What is the output of the following code?

for i in range(10, 20, 2): print( i, end=', ')
*
1 point
7.  Write the output of the following:
  t1=(1,2,3,4,5,6,7) 
  t1[t1[1]]   
*
1 point
8.  Write the output of the following code: 
str = "Welcome" 
str[2] = 'a' 
print(str)
*
1 point
9.  In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type: *
1 point

10.Consider the following sequence of statements:

n = 300 m = n

Following execution of these statements, Python has created how many objects and how many references?

*
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