set 3

    1. Aggregate functions are functions that take a ___________ as input and return a single value. a) Collection of values b) Single value c) Aggregate value d) Both Collection of values & Single value Answer: a Explanation: None. 2. SELECT __________ FROM instructor WHERE dept name= ’Comp. Sci.’; Which of the following should … Read more

Python MCQs on List Comprehension: SET 1

python

Python MCQs on List Comprehension In this section, we are going to introduce you to the most frequently asked Python MCQs on List Comprehension. These Python MCQs on List Comprehension will be going to help you in Interviews and Exams.   1. What will be the output of the following Python code snippet? k = … Read more

Python MCQs on Decorators

python

Python MCQs on Decorators In this section, we are going to introduce you to the most frequently asked Python MCQs on Decorators. These Python MCQs on Decorators will be going to help you in Interviews and Exams.   1. What will be the output of the following Python code? def mk(x): def mk1(): print(“Decorated”) x() … Read more

Python MCQ’s on Mapping Functions: SET 3

python

  21. What will be the output of the following Python code? x = [[0], [1]] print((‘ ‘.join(list(map(str, x))))) a) (‘[0] [1]’,) b) (’01’,) c) [0] [1] d) 01 22. What will be the output of the following Python code? x = [[0], [1]] print((‘ ‘.join(list(map(str, x))),)) a) (‘[0] [1]’,) b) (’01’) c) [0] [1] … Read more

Python MCQs on Argument Parsing: SET 2

python

11. What will be the output of the following Python code? def foo(k): k = [1] q = [0] foo(q) print(q) a) [0] b) [1] c) [1, 0] d) [0, 1]   12. How are variable length arguments specified in the function heading? a) one star followed by a valid identifier b) one underscore followed … Read more

Python MCQs on Recursion

python

Python MCQs on Recursion In this section, we are going to introduce you to the most frequently asked Python MCQs on Recursion. These Python MCQs on Recursion will be going to help you in Interviews and Exams. 1. Which is the most appropriate definition for recursion? a) A function that calls itself b) A function … Read more

Python MCQs on Classes and Objects: SET 1

python

Python MCQs on Classes and Objects In this section, we are going to introduce you to the most frequently asked Python MCQs on Classes and Objects. These Python MCQs on Classes and Objects will be going to help you in Interviews and Exams.   1. _____ represents an entity in the real world with its … Read more

Python MCQs on While and For Loops: SET 1

python

Python MCQs on While and For Loops In this section, we are going to introduce you to the most frequently asked Python MCQs on While and For Loops. These Python MCQs on While and For Loops will be going to help you in Interviews and Exams.   1. What will be the output of the … Read more

Python MCQs on Argument Parsing: SET 1

python

Python MCQs on Argument Parsing In this section, we are going to introduce you to the most frequently asked Python MCQs on Argument Parsing. These Python MCQs on Argument Parsing will be going to help you in Interviews and Exams.   1. What is the type of each element in sys.argv? a) set b) list … Read more

Python MCQs on Mapping Functions: SET 1

python

Python MCQs on Mapping Functions In this section, we are going to introduce you to the most frequently asked Python MCQs on Mapping Functions. These Python MCQs on Mapping Functions will be going to help you in Interviews and Exams.   1. What will be the output of the following Python code? elements = [0, … Read more