Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
User JackTerrance
Wall
Recent activity
All questions
All answers
Ask a Question
Questions by JackTerrance
0
votes
Q: Which one of the following is not a keyword in Python language?
Which one of the following is not a keyword in Python language? a) pass b) eval c) assert d) nonlocal...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: Which function is called when the following Python program is executed? f = foo() format(f)
Which function is called when the following Python program is executed? f = foo() format(f) a) str() b) format() c) __str__() d) __format__()...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: Which of the following statements is used to create an empty set in Python?
Which of the following statements is used to create an empty set in Python? a) ( ) b) [ ] c) { } d) set()...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What will be the output of the following Python code? print("abc. DEF".capitalize())
What will be the output of the following Python code? print("abc. DEF".capitalize()) a) Abc. def b) abc. def c) Abc. Def d) ABC. DEF...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What arithmetic operators cannot be used with strings in Python?
What arithmetic operators cannot be used with strings in Python? a) * b) – c) + d) All of the mentioned...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What will be the output of the following Python program? z=set('abc') z.add('san') z.update(set(['p', 'q'])) z
What will be the output of the following Python program? z=set('abc') z.add('san') z.update(set(['p', 'q'] ... ;, ‘c’, [‘p’, ‘q’], ‘san}...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: Which module in the python standard library parses options received from the command line?
Which module in the python standard library parses options received from the command line? a) getarg b) getopt c) main d) os...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc ... (id(q) == foo(q)) a) Error b) None c) False d) True...
asked
Jan 2, 2023
in
Technology
python-question-answers
0
votes
Q: What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp = tester(12) >>>print(temp.id)
What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp ... >>>print(temp.id) a) 12 b) 224 c) None d) Error...
asked
Jan 2, 2023
in
Technology
python-question-answers
0
votes
Q: Which one of the following is not a keyword in Python language?
Which one of the following is not a keyword in Python language? a) pass b) eval c) assert d) nonlocal...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: Which function is called when the following Python program is executed? f = foo() format(f)
Which function is called when the following Python program is executed? f = foo() format(f) a) str() b) format() c) __str__() d) __format__()...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What will be the output of the following Python statement? >>>"a"+"bc"
What will be the output of the following Python statement? >>>"a"+"bc" a) bc b) abc c) a d) bca...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i)
What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i) a) 4 3 2 1 b) error c) 1 2 3 4 d) none of the mentioned...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What is the order of namespaces in which Python looks for an identifier?
What is the order of namespaces in which Python looks for an identifier? a) Python first searches the built-in ... , then the local namespace and finally the built-in namespace...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper())
What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper()) a)a B C D b) a b c d c) error d)A B C D...
asked
Jan 2, 2023
in
Technology
python-question-answers
0
votes
Q: What will be the output of the following Python function? len(["hello",2, 4, 6])
What will be the output of the following Python function? len(["hello",2, 4, 6]) a) Error b) 6 c) 4 d) 3...
asked
Jan 2, 2023
in
Technology
python-question-answer
0
votes
Q: Which of these is the definition for packages in Python?
Which of these is the definition for packages in Python? a) A set of main modules b) A folder of python modules ... statements d) A set of programs making use of Python modules...
asked
Jan 2, 2023
in
Technology
python-question-answer
0
votes
Q: What will be the output of the following Python expression if x=56.236? print("%.2f"%x)
What will be the output of the following Python expression if x=56.236? print("%.2f"%x) a) 56.236 b) 56.23 c) 56.0000 d) 56.24...
asked
Jan 2, 2023
in
Technology
python-question-answer
0
votes
Q: Which of the following is not a core data type in Python programming?
Which of the following is not a core data type in Python programming? a) Tuples b) Lists c) Class d) Dictionary...
asked
Jan 2, 2023
in
Technology
python-question-answer
0
votes
Q: What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
What will be the output of the following Python function? min(max(False,-3,-4), 2,7) a) -4 b) -3 c) 2 d) False...
asked
Jan 2, 2023
in
Technology
python
0
votes
Q: The following python program can work with ____ parameters. def f(x): def f1(*args, **kwargs): print("Sanfoundry") return x(*args, **kwargs) return f1
The following python program can work with ____ parameters. def f(x): def f1(*args, **kwargs): print("Sanfoundry") return x(*args, * ... ) return f1 a) any number of b) 0 c) 1 d) 2...
asked
Jan 2, 2023
in
Technology
python-question-answers
0
votes
Q: Which of the following is the use of id() function in python?
Which of the following is the use of id() function in python? a) Every object doesn’t have a unique id b) Id ... the object c) All of the mentioned d) None of the mentioned...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: Which of the following functions is a built-in function in python?
Which of the following functions is a built-in function in python? a) factorial() b) print() c) seed() d) sqrt()...
asked
Jan 2, 2023
in
Technology
python-questions-answers
0
votes
Q: What will be the output of the following Python code?
What will be the output of the following Python code? l=[1, 0, 2, 0, 'hello', '', []] list(filter(bool, l)) a) [1 ... ;] d) [1, 0, 2, 0, ‘hello’, ”, []]...
asked
Dec 31, 2022
in
Technology
python-questions-answers
0
votes
Q: Which of the following is the truncation division operator in Python?
Which of the following is the truncation division operator in Python? a) | b) // c) / d) %...
asked
Dec 31, 2022
in
Technology
python-questions-answer
0
votes
Q: What are the values of the following Python expressions?
What are the values of the following Python expressions? 2**(3**2) (2**3)**2 2**3**2 a) 512, 64, 512 b) 512, 512, 512 c) 64, 512, 64 d) 64, 64, 64...
asked
Dec 31, 2022
in
Technology
python-questions-answers
0
votes
Q: Which of the following is true for variable names in Python?
Which of the following is true for variable names in Python? a) underscore and ampersand are the only two special ... have leading and trailing underscores d) none of the mentioned...
asked
Dec 31, 2022
in
Technology
python-questions-answers
0
votes
Q: What does pip stand for python?
What does pip stand for python? a) Pip Installs Python b) Pip Installs Packages c) Preferred Installer Program d) All of the mentioned...
asked
Dec 31, 2022
in
Technology
python-questions-answers
0
votes
Q: The size of the alphabet M in symbol is calculated as?
The size of the alphabet M in symbol is calculated as? a) 2(k+1) b) 2k c) 2(k-1) d) 1+2k...
asked
Dec 31, 2022
in
Technology
digital-communications-questions-answers-signal-processing
0
votes
Q: Which measurement considers phase as an important parameter?
Which measurement considers phase as an important parameter? a) Coherent b) Non-coherent c) All of the mentioned d) None of the mentioned...
asked
Dec 31, 2022
in
Technology
digital-communications-questions-answers-signal-processing
Page:
« prev
1
...
20
21
22
23
24
25
26
...
667
next »
...