Assignment 0
1 point
1) Which of the following is a multiple of both 3 and 5?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)Which is the most powerful entity in the Rock, Paper and Scissors game?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)Which one of the following is considered as tic tac toe win?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4) Given the following jumbled word: UNGCMPOIT
Guess the correct English word
Guess the correct English word
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)Which one of the following devices is used to track the location of a vehicle?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)If AMIT is encoded as BNJU and SIMRAN is encoded as TJNSBO, then which of the following is encoding for RAVI?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)Given two six faced die, what is the maximum sum of numbers that you can get on these two die?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)Guess the movie name : _ N _ _ E _ _ E
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)Which one of the following is correct rearrangement of numbers in sorted order?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
10)In how many different ways can the letters of the word ’OPTICAL’ be arranged?
Yes, the answer is correct.
Score: 1
Accepted Answers:
Assignment 1
1 point
1)Which of the following is true about a program?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)State True or False.
A program can be written in simple english language
A program can be written in simple english language
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)Which of the following is a programming language?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)State True or False.
Programming languages are used to give instructions to computers.
Programming languages are used to give instructions to computers.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)Which of the following can be used to communicate across multiple sprites?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)Which of the following is an output of the above set of instructions?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)What kind of block should i use to make my sprite move around?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)Which of the following is a facility provided by Scratch to use sound effects?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)What happens when the green flag symbol is clicked in Scratch?
Yes, the answer is correct.
Score: 1
Accepted Answers:
Assignment 2
1 point
1)In Python, a variable must be declared before it is assigned a value.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)What is the output of the following program?
for i in range(2):
print(i,end="")
for i in range(4,6):
print(i,end="" )
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)What is the output if the following code snippet?
a=4.5
b=15
print(a+b)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)What is the output of the following program?
i = 1
while True:
if i%3 == 0:
break
print(i,end="")
i + = 1
No, the answer is incorrect.
Score: 0
Accepted Answers:
1 point
5)What is the output of the following program?
i = 2
while True:
if i%3 == 0:
break
print(i,end="")
i += 2
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)Which of the following is correct variable name in Python?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)What is the output of this expression in Python, 3*1**3?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)State True or False.
Python is a case-sensitive language.
Python is a case-sensitive language.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)Which of the following is not a keyword in Python?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
10)What would be the value of variable y if the following set of instructions are executed?
x=4.5
y=int(x)
x=4.5
y=int(x)
Yes, the answer is correct.
Score: 1
Accepted Answers:
4
Assignment 3
1 point
1)What will be the output of following program?
numbers = [1, 2, 3, 4]
numbers.append([5,6,7,8])
print(len(numbers))
No, the answer is incorrect.
Score: 0
Accepted Answers:
1 point
2)What will be displayed by the following code?
list1 = [1, 3]
list2 = list1
list1[0] = 4
print(list2)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)What does the function random.randrange(49,150) return in Python?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)Which of the following options is the possible outcome of the function shown below?
random.randrange(1,100,10)
random.randrange(1,100,10)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)What can be the output of the following code snippet?
list = [55, 66, 77, 88, 99]
print(random.choice(list))
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)If the word in your mind is HIT, in how many ways can you pose the jumbled question?
No, the answer is incorrect.
Score: 0
Accepted Answers:
1 point
7)How is trimmed mean calculated?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)State True or False.
Matplotlib in Python can only generate line graphs.
Matplotlib in Python can only generate line graphs.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)What is the output of the following matplotlib program?
from matplotlib import pyplot as plt
x = [1, 2, 3, 4, 5]
y = [1, 2, 3, 4, 5]
plt.plot(x,y)
plt.show()
Yes, the answer is correct.
Score: 1
Accepted Answers:
A straight line
Assignment 4
1 point
1)Which of the following is a valid question that would be posed when ‘Guess the Movie Name’ game is played with the movie ”SKYSCRAPER”?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)What is the output of the snippet of code shown below?
A = [[1, 2, 3],[4, 5, 6],[7, 8, 9]]
print(A[1])
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)What is the output of the code shown?
A = [[1, 2, 3],[4, 5, 6],[7, 8, 9]]
print([A[row][1] for row in (0, 1, 2)])
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)What is the output of the code shown below?
A = [[1, 2, 3],[4, 5, 6],[7, 8, 9]]
print([A[i][i] for i in range(len(A))])
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)In ”Guess the Movie Name” game, we initially have all blanks (or *). Slowly as the person guesses a letter the question undergoes a change in state (the corresponding letter is opened up). If the movie name is INTERSTELLER, which of the following can never be a state of the question during the run of the program?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)What is the minimum number of people required to guarantee a collision in their day of birth?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)If there are k symbols in a Dobble game card, how many comparisons are needed at the maximum?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)What is the maximum number that can be filled in 5*5 Magic Square?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)The probability of a birth date collision in a non-leap year is
Yes, the answer is correct.
Score: 1
Accepted Answers:
more than that of leap year
Assignment 5
1 point
1)Binary search algorithm uses
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)The number of swaps needed to sort the numbers [8, 22, 7, 9, 31, 5, 13] in ascending order, using bubble sort is
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)Suppose a list is [2, 9, 5, 4, 8, 1]. After the first pass of bubble sort (while sorting in ascending order), the list becomes
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)Which of the following is TRUE in the Monty Hall game with 3 doors?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)Which file format is supported by Python Speech Recognition library?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)Consider the secure Rock Paper Scissors game
0->Rock
1->Paper
2 ->Scissors
Player 1’s input : 1000010210
Player 2’s input : 1012010211
Who won?
Who won?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)In the simple Monte Hall game, we had 3 doors and 1 door contained a prize. The player has to guess
which door could possibly contain the prize. That door would be opened and if it contains the prize he
wins it. If more doors are added, the player has more choices to guess. What do you think will happen
to the probability (i.e. chance) of winning if more doors are added?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)In rock, paper, scissors game, how many combinations of choices made by the players are possible?((Rock, Paper) and (Paper, Rock) are considered different combinations.)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)Rock, Paper and Scissors game, if one of the players shows Scissors then which of the following is/are TRUE?
1. He is guaranteed to win the game if the other player shows Rock.
2. He is guaranteed to win the game if the other player does not show Rock.
3. He is guaranteed to win the game if the other player shows Paper.
4. He is guaranteed to lose the game if the other player shows Paper.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
10)The average number of key comparisons done in a successful sequential search in a list of length 9 is
Yes, the answer is correct.
Score: 1
Accepted Answers:
5
Assignment 6
1 point
1)What is the output of the following program?
x = "abcdef"
i = "a"
while i in x:
print(i, end = " ")
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)Which of the following arithmetic operators can be used with strings?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)What is the output of the following code snippet?
line = "What will have so will"
L = line.split('a')
for i in L:
print(i, end=' ')
[‘What’, ‘will’, ‘have’, ‘so’, ‘will’]
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)Fill in the code to complete the following function for computing factorial:
def factorial(n):
if n == 0:
return 1
else:
return .......
Yes, the answer is correct.
Score: 1
Accepted Answers:
0 points
5)A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward
as forward. Fill in the code to complete the following function for checking whether a string is a palindrome.
def isPalindrome(s):
if len(s) != 1:
return True
elif s[0] != s[-1]:
return False
else:
return isPalindrome(s.substring(1, len(s) - 1))
Accepted Answers:
1 point
6)What is the output of the following recursive function?
def test(i,j):
if(i==0):
return j
else:
return test(i-1,i+j)
print(test(4,7))
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)What is the game strategy used in the Tic Tac Toe game?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)What does the following function do?
def fun(n):
if (n == 0 or n == 1):
return n
if (n%3 != 0):
return 0
return fun(n/3)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)Which of the following statements is correct regarding recursion and iteration?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
10)If COMPUTER is denoted as KPDITWQC and SCIENCE is denoted as YKHQLKQ, how is SET denoted by this encoding scheme?
Yes, the answer is correct.
Score: 1
Accepted Answers:
Assignment 7
1 point
1)In the function gmplot.GoogleMapPlotter(a, b, c), what are a, b and c?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)What is the output shape of the program?
import turtle
t=turtle.Pen()
for i in range(4):
t.forward(60)
t.left(90)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)What is the output of following code snippet?
from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)State True or False
Turtle programming is same as that performed in Logo
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)What is the output shape of the following program?
import turtle
polygon = turtle.Turtle()
num_sides = 6
side_length = 70
angle = 360.0 / num_sides
for i in range(num_sides):
polygon.forward(side_length)
polygon.right(angle)
turtle.done()
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)What is the correct sequence of cells in a 5*5 matrix that should be displayed for spiral traversing animation?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)Which of the following scenarios is considered as a win in snakes and ladders?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)Which of the following statements is true about PIL?
Yes, the answer is correct.
Score: 1
Accepted Answers:
Assignment 8
1 point
1)Suppose t = (1, 2, 4, 3), which of the following is incorrect?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)What is the output of the following code?
a=(1,2,3,4)
del(a[2])
print(a)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)Is the following piece of code valid?
a=(1,2,3,4)
del a
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)What type of data is: a=[(1,1),(2,4),(3,9)]?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)What is VADER?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)Which of the following does CLAHE use to enhance the images?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)What is an Anagram?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)Consider the scenario below: Ram wants to play a lottery game in which he has to choose one ticket out of 10 tickets. If the ticket chosen by the
participant is 9, then he wins 500$. The price for playing the lottery game is 100$. Ram decides to play this game 10 times in order to guarantee his win. Would you advise him to play this game?
participant is 9, then he wins 500$. The price for playing the lottery game is 100$. Ram decides to play this game 10 times in order to guarantee his win. Would you advise him to play this game?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)Find out the anagrams present in the following sentences. One day, When I was going through my old stuff, I found my old study table. Though It was damn dusty, but still i could read the stupid stuff that i used to write on it as a kid
Yes, the answer is correct.
Score: 1
Accepted Answers:
Assignment 9
1 point
1)In networkx, in order to draw Erdos Renyi graph there is a function ‘gnp random graph(n,p)’. What are n and p here?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)Which of the following is NOT a Graph visualisation software/tool?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)What is the output of the following code snippet?
import networkx as nx
G=nx.Graph()
print(G.nodes())
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)What is the output of the following program?
import networkx as nx
G=nx.path_graph(4)
print(G.nodes())
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)If the area of India is 10400 km2 , calculate the area of Maharashtra. (If points are placed randomly in the map of India, then number of points in
India(except Maharashtra) is 90 and number of points in Maharashtra is 23.)
India(except Maharashtra) is 90 and number of points in Maharashtra is 23.)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)Sentence tokenisation is possible through NLTK in Python.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)Stylometry is based on the observation that authors tend to write in unique ways
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)What should be the output of the following program?
import network as nx
G=nx.Graph()
for i in range(3):
G.add node(i)
G.add edge(1,2)
G.add edge(2,3)
G.add edge(1,3)
nx.draw()
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)What should be passed as an argument in the function given below?
G.add_nodes_from(*)
Yes, the answer is correct.
Score: 1
Accepted Answers:
Assignment 10
1 point
1)What is the relationship between RANBIR and ALIA according to the game FLAMES?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)What is the output of the following program?
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,3,4,2,1])
c=a+b
c = c*a
print (c[2])
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)What is the output of the statement a.size if a is a numpy array defined as a = np.array([[1,2,3],[0,1,4]])?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)What is the output of the following Python program?
import numpy as np
a = np.array([[0, 1, 0], [1, 0, 1]])
a += 3
b=a+3
print (a[1,2] + b[1,2])
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)If the string s="Python" then what is the output of the statement s[::-1]?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)State True or False.
numpy.asanyarray(input) converts input to an ndarray. Here, input can be scalars, lists, lists of tuples, tuples, tuples of tuples, tuples of lists.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)Which of the following attributes is used to obtain picture size using PIL in Python?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)What is the output of the statement print(s.upper()) if s=’SImRan’ ?
Yes, the answer is correct.
Score: 1
Accepted Answers:
Assignment 11
1 point
1)The function isleap() in the calendar module in Python returns
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)What is the output of the following program?
import calendar
yy = 2017
mm = 11
print(calendar.month(yy, mm))
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)In the question above, if the user wants to display the calendar of the year 2017, then which of the following functions should he use?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
4)What is the output of the code shown below if the system date is 18th June, 2017(Thursday)?
tday=datetime.date.today()
print(tday)
tday=datetime.date.today()
print(tday)
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)State True or False.
Selenium is an open source tool which is used for automating the test cases carried out on web browsers.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
6)State True or False
Selenium is required if you want to use remote WebDriver.
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
7)Which of the following methods is used to locate an element in a webpage?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)What is the use of xpath in selenium?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
9)Which of the following is not a valid webdriver class?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
10)Which of the following platforms does Selenium support?
Accepted Answers:
Assignment 12
T
1 point
1)In the point distribution method of page rank algorithm, at each iteration, each node shares its page rank value by
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
2)In random walk method, what is the next step when a sink node is encountered in the underlying graph?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
3)According to Google Page rank algorithm, rank of a page depends on:
Accepted Answers:
1 point
4)Which of the following is not true about Collatz Conjecture?
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
5)State True or False.
The sequence based on 3n+1 problem will always reach 1.
Yes, the answer is correct.
Score: 1
Accepted Answers:
0 points
6)What is the sequence obtained according 3m+1 algorithm for m=9?
Accepted Answers:
1 point
7)Consider the following statements:
Statement (a): Random Walk method requires lesser number of iterations to calculate accurate PageRank as compare to Points Distribution method
Statement (b): Points Distribution method requires lesser number of iterations to calculate accurate PageRank as compare to Random Walk method
Statement (a): Random Walk method requires lesser number of iterations to calculate accurate PageRank as compare to Points Distribution method
Statement (b): Points Distribution method requires lesser number of iterations to calculate accurate PageRank as compare to Random Walk method
Yes, the answer is correct.
Score: 1
Accepted Answers:
1 point
8)In the web graph, nodes are the web pages. What are the edges?
No comments:
Post a Comment