Shri. S. H. Kelkar College of Arts, Commerce and Science, Devgad
Shri. S. H. Kelkar College of Arts, Commerce and Science, Devgad
What is the output when we execute list(“hello”)? [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]. [‘hello’]. [‘llo’]. [‘olleh’] 1
What is the process of tracking down the bugs called? Debugging Bugging Syntaxing. Error-proning 1
What is the return type of function id? void() main() Int() vd() 3
tells you the current tells you the end tells you the file none of the
What is the use of tell() method in python? position within the file position within the file is opened or not mentioned 1
What method is used to create a cursor object? fetch() getcursor() cursor() fetch() 3
What type of data is: a=[(1,1),(2,4),(3,9)]? Array of tuples List of tuples Tuples of lists Invalid type 2
What will be the output of the following Python
code? print("Hello {0!r} and {0!s}".format('foo', Hello {name1} and
'bin')) {name2} Hello ‘foo’ and foo Error Hello and 2
What will be the output of the following Python
code? print("Hello {name1} and Hello {name1} and
{name2}".format(name1='foo', name2='bin')) Hello foo and bin {name2} Error Hello and 1
What will be the output of the following Python code?1 )
>>>str="hello". 2)>>>str[:2]. 3)>>> eh he h e 2
What will be the output of the given code? h “hlm” lm hlm 4
>>>"h"+"lm"
What will be the output of the given code? hon! hon "hon" "hon!" 1
>>>"python!”[3:]
What will be the output of the given code? WXYZ ! WXYz56@ Wxyz WXYz!56 4
>>>print(‘wxyZ!56’.swapcase())
What will be the output of the given code? >>>str = “*” “hello”*”world” hello*world hello world error 2
>>>seq = (“hello”,”world”) >>>print (str.join(seq))
[‘John’, ’is’, ’good [‘John’, ’is', ’good’, [‘John is', ’good [‘John is’, [‘John’, ’is’,
What will be the output of the given code? >>>str = student’] ‘student’,] student’] 'good’, ‘student’] ’good
“John is good student” >>>print (str.split(‘ ‘,2)) student’]
What will be the output of the given code? >>>str1 = e ld l er 2
‘hello world' >>>str2 = ‘computer’ >>>str1 [-2]
What will be the output of the given code? 14 15 13 16 3
>>>string="hello COMPUTER!" >>>len(string)
if there is no
When does the fetchone() method return a None if the query executed if the tuple is next row in the
value? returns none if next row is none none result set 4
When the output you get is not the expected output,
then what kind of error is said to be occurred? Runtime Syntax Semanti exceptional 3
Which error is caused because of Missing parenthese
in expression like 8)? Runtime Syntax Semanti exceptional 2
Which expressions can be the part of formal lanuage
from the following. 1. @ 2. 3+3=6 3. Please 4. NaOH 5
hello there 1,2,3,4. 1,2,4. 1,2,3,4,5 3,5 4
which function is used to converts value into integer? int() integer() Int() Integer() 1
Which function is used to write all the characters? write() writechar() writeall() writechars() 1
Which geometry manager organizes widgets in blocks
before placing them in the parent widget. Position() Grid() Pack() Place() 3
which is the following is the conditional statement Break Pass continues If-else 4