#Jobber Notification :
1. Correct name of caller function
1. funct
2. func()
3. func([param])
4. None of the above
Answer : func([param])
2. When a function does not return any value, what value is thrown by it, by default when execute in shell
1. int
2. bool
3. None of the above
4. void
Answer : None of the above
3. Which type of argument assumes a default value if a value is not provided in their function call for that argument.
1. default argument
Answer : default argument
4. Whats get printed
def f( ):pass
print type(f())
1. <type 'function'>
2. <type 'type'>
3. <type 'Nontype'>
4. <type 'str'>
Answer : <type 'Nontype'>
5. Argument passed to function in correct potential order is called as
1. required argument
2. keyword argument
3. default argument
4. variable length argument
Answer : required argument
6. def func(x<5):
"""comment"""
return x
print func(x=4)
1. 5
2. 4
3. Error
4. 0
Answer : 4
7. What is the return value of trunc()
1. int
2. bool
3. float
4. None of the above
Answer : int
8. Which of the following is correct def of variable length arguments
1. def func(param):
2. def func(*param):
3. def func(^param):
4. def func(@param):
Answer : def func(*param):
9. set = { } is a
1. tuple
2. dictionary
3. set
4. list
Answer : dictionary
10. Python dictionaries are also called as
1. associative arrays
2. hash tables
3. Both A and B
4. None of the above
Answer : Both A and B
11. Which of the following is immutable
1. tuple
2. list
3. dic
4. All of the above
Answer : tuple
12. In order to store value in terms of key and values. We use what datatype
1. list
2. tuple
3. dic
4. last
Answer : dic
13. print ({'a':'b','a':'c'}) output is
1. Error
2. {'a':'b','a':'c'}
3. {'a':'c'}
4. {'a':'b'}
Answer : {'a':'c'}
14. If L1 is a list, output of cmp(L1,L1) is
1. 1
2. -1
3. 0
4. Error
Answer : 0
15. list=['a','b','c','d','e']
print list[10:]. What is output
1. Index Error
2. [ ]
3. ['a']
4. ['e']
Answer : [ ]
16. Which of the following method use to construct dictionary to list
1. keys( )
2. values( )
3. items( )
4. get( )
Answer : items( )
17. operator to remove list
1. remove
2. erase
3. del
4. delete
Answer : del
18. Which of the following is not built in method of list
1. append( )
2. insert( )
3. add ( )
4. count( )
Answer : add ( )
19. for i in range(0,1):
1. 0
2. 10
3. 11
4. None of the above
Answer : 11
20. While a<3:
a=a+1
print a;
break
if a & 1
output is
1. 2
2. 2 3
3. 2 3 4
4. None of the above
Answer : 2
21.How many times will loop execute ?
x=0
for x in range (0,5):
if x
x+=1
1. 3
2. 4
3. 5
4. 6
Answer : 5
22. range(0,4,2) output
1. 0 2
2. 0 1 3
3. 0 2 4
4. 0 1 2 3
Answer : 0 2
23. for i in range(0,2):
for j in range ( i,2) :
print j;
1. 011
2. 11
3. 012
4. 0,12
Answer : 011
24. Which of the following method is used to delete a file
1. os.delete( )
2. file.delete( )
3. os.remove( )
4. file.remove( )
Answer : os.remove( )
25. Which of the following is used to display the current position in a file
1. seek ( )
2. tell( )
3. seek(pos)
4. set( )
1. Correct name of caller function
1. funct
2. func()
3. func([param])
4. None of the above
Answer : func([param])
2. When a function does not return any value, what value is thrown by it, by default when execute in shell
1. int
2. bool
3. None of the above
4. void
Answer : None of the above
3. Which type of argument assumes a default value if a value is not provided in their function call for that argument.
1. default argument
Answer : default argument
4. Whats get printed
def f( ):pass
print type(f())
1. <type 'function'>
2. <type 'type'>
3. <type 'Nontype'>
4. <type 'str'>
Answer : <type 'Nontype'>
5. Argument passed to function in correct potential order is called as
1. required argument
2. keyword argument
3. default argument
4. variable length argument
Answer : required argument
6. def func(x<5):
"""comment"""
return x
print func(x=4)
1. 5
2. 4
3. Error
4. 0
Answer : 4
7. What is the return value of trunc()
1. int
2. bool
3. float
4. None of the above
Answer : int
8. Which of the following is correct def of variable length arguments
1. def func(param):
2. def func(*param):
3. def func(^param):
4. def func(@param):
Answer : def func(*param):
9. set = { } is a
1. tuple
2. dictionary
3. set
4. list
Answer : dictionary
10. Python dictionaries are also called as
1. associative arrays
2. hash tables
3. Both A and B
4. None of the above
Answer : Both A and B
11. Which of the following is immutable
1. tuple
2. list
3. dic
4. All of the above
Answer : tuple
12. In order to store value in terms of key and values. We use what datatype
1. list
2. tuple
3. dic
4. last
Answer : dic
13. print ({'a':'b','a':'c'}) output is
1. Error
2. {'a':'b','a':'c'}
3. {'a':'c'}
4. {'a':'b'}
Answer : {'a':'c'}
14. If L1 is a list, output of cmp(L1,L1) is
1. 1
2. -1
3. 0
4. Error
Answer : 0
15. list=['a','b','c','d','e']
print list[10:]. What is output
1. Index Error
2. [ ]
3. ['a']
4. ['e']
Answer : [ ]
16. Which of the following method use to construct dictionary to list
1. keys( )
2. values( )
3. items( )
4. get( )
Answer : items( )
17. operator to remove list
1. remove
2. erase
3. del
4. delete
Answer : del
18. Which of the following is not built in method of list
1. append( )
2. insert( )
3. add ( )
4. count( )
Answer : add ( )
19. for i in range(0,1):
1. 0
2. 10
3. 11
4. None of the above
Answer : 11
20. While a<3:
a=a+1
print a;
break
if a & 1
output is
1. 2
2. 2 3
3. 2 3 4
4. None of the above
Answer : 2
21.How many times will loop execute ?
x=0
for x in range (0,5):
if x
x+=1
1. 3
2. 4
3. 5
4. 6
Answer : 5
22. range(0,4,2) output
1. 0 2
2. 0 1 3
3. 0 2 4
4. 0 1 2 3
Answer : 0 2
23. for i in range(0,2):
for j in range ( i,2) :
print j;
1. 011
2. 11
3. 012
4. 0,12
Answer : 011
24. Which of the following method is used to delete a file
1. os.delete( )
2. file.delete( )
3. os.remove( )
4. file.remove( )
Answer : os.remove( )
25. Which of the following is used to display the current position in a file
1. seek ( )
2. tell( )
3. seek(pos)
4. set( )
Answer : tell( )
For more notifications Download here :
https://play.google.com/store/apps/details?id=com.phoenixapplabs.myjobber
Powered By : Phoenix App Labs
Key words: #Aspire, #ILP, #Aspire Questions, #IRA1, #ILP Tips, #ILP Experience, #ILP Preparation, #Jobber App, #TCS ILP, #ILP Training, #Python, #Aspire Python
Powered By : Phoenix App Labs
Key words: #Aspire, #ILP, #Aspire Questions, #IRA1, #ILP Tips, #ILP Experience, #ILP Preparation, #Jobber App, #TCS ILP, #ILP Training, #Python, #Aspire Python
0 comments:
Post a Comment