Q.1
What is the output of the following program?y == lambda x: x * yprint z (6)
  • A. 48
  • B. 14
  • C. 64
  • D. None of the above
Q.2
What will be the output of the following Python code snippet?d1 = {"john":"peter":d2 = {"john":"peter":d1 > d2
  • a) True
  • b) False
  • c) Error
  • d) None
Q.3
What does the function re.match do?
  • (A) matches a pattern at the start of the string
  • (B) matches a pattern at any position in the string
  • (C) such a function does not exist
  • (D) none of the mentioned
Q.4
Point out the correct combination with regards to kind keyword for graph plotting.
  • ‘hist’ for histogram
  • ‘box’ for boxplot
  • ‘area’ for area plots
  • all of the mentioned
Q.5
What is the output of the following program?squares = {1:2:3:4:5:25}print(squares.pop(4))print(squares)
  • 16{1: 1, 2: 4, 3: 9, 5: 25}
  • 16{1: 1, 2: 4, 3: 9, 4:16, 5: 25}
  • 4{1: 1, 2: 4, 3: 9, 5: 25}
  • 4{1: 1, 2: 4, 3: 9, 4:16, 5: 25}
Q.6
Data Frame in pandas is
  • a) 1 dimensional array
  • b) 2 dimensional array
  • c) 3 dimensional array
  • d) None of the above
Q.7
This function in the library of Pandas allows you to manipulate data and create new variables:
  • a) read_csv function
  • b) Pivot_table function
  • c) apply function
  • d) merge function
Q.8
______________ function returns current date and time.
  • a) SET DATEFIRST
  • b) SYSDATETIME
  • c) Cert_ID
  • d) GETDATE
Q.9
In a SELECT with a GROUP BY clause, a WHERE clause, and a HAVING clause, the WHERE conditions are applied before the HAVING conditions.
  • a) True
  • b) False
  • c) Either True or False
  • d) None of the above
Q.10
We apply the aggregate function to a group of sets of tuples using the _______ clause.
  • a) group by
  • b) group
  • c) group set
  • d) group attribute
0 h : 0 m : 1 s