Computer Science - Online Test

Q1. While defining a function which of the following symbol is used.
Answer : Option C
Explaination / Solution:
No Explaination.


Q2. Which of the following is the slicing operator?
Answer : Option B
Explaination / Solution:
No Explaination.


Q3. Which of the following Python function can be used to add more than one element within an existing list?
Answer : Option C
Explaination / Solution:
No Explaination.


Q4. Which of the following method is used as destructor?
Answer : Option D
Explaination / Solution:
No Explaination.


Q5. Who is called Father of Relational Database from the following?
Answer : Option C
Explaination / Solution:
No Explaination.


Q6.

What is the output of the following program? import csv d=csv.reader(open('c:\PYPRG\ch13\city.csv'))

next(d)

for row in d: print(row)

if the file called “city.csv” contain the following details

chennai,mylapore

mumbai,andheri

Answer : Option B
Explaination / Solution:
No Explaination.


Q7. getopt() will return an empty array if there is no error in splitting strings to
Answer : Option C
Explaination / Solution:
No Explaination.


Q8. The function that returns the largest value of the selected column is
Answer : Option A
Explaination / Solution:
No Explaination.


Q9.

Read the code:

a. import matplotlib.pyplot as plt

b. plt.plot(3,2)

c. plt.show()

Identify the output for the above coding.
Answer : Option C
Explaination / Solution:
No Explaination.


Q10. Which of the following defines what an object can do?
Answer : Option C
Explaination / Solution:
No Explaination.