Questions | Python | DBMS | Quant | Duration | Correct | Incorrect |
40 | 20 | 10 | 10 | 60 min | +4 | -0 |
CUT-OFF : 70%
Why no ‘-‘ markings for Incorrect Questions ? – Main motive of this Mock Test Series is to make you learn from your experience. In order to make you attempt all questions, we are excluding the concept of negative marking in our Mock Tests. Although, InfyTQ Qualifier Round will have minus marking.
For any queries or bug reporting, feel free to mail us at :
0 of 40 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 40 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Thanks for taking this test.
Congratulations, You cleared this InfyTQ Mock Screening Test !!
There are 1000 junior and 800 senior students in a class. And there are 60 sibling pairs where each pair has 1 junior and 1 senior.1 student is chosen from senior and 1 from junior randomly. What is the probability that the two selected students are from a sibling pair ?
What is the output of the following code?
>>> False==()or[]
Choose the correct answer :
The SQL ALTER statement can be used to :
dicts = dict()
for l in enumerate(range(2)):
dicts[l[0]] = l[1]
dicts[l[1]+7] = l[0]
print(dicts)
x=12
def f1(a,b=x):
print(a,b)
x=15
f1(4)
Consider the following set of relations
EMP ( emp_no,emp_name,dept_no,salary)
DEPT (dept_no,dept_name,location)
Write SQL query for the following
Find all the employees whose departments are located in ‘Chennai’ and salary is greater than Rs. 20,000.
x=2
y=x<<2
y=~y+1
print(y)
What is delattr(obj,name) used for?
Choose the correct option :
A table is in BCNF if it is in 3NF and if every determinant is a following key
class A:
def __init__(self,X):
self.X = X
def count(self,X):
self.x = self.X + 1
class B(A):
def __init__(self,Y = 0):
A.__init__(self, 3)
self.Y = Y
def count(self):
self.Y += 1
def main():
obj = B()
obj.count()
print(obj.X, obj.Y)
main()
class stud:
def __init__(self, roll_no, grade):
self.roll_no = roll_no
self.grade = grade
def display (self):
print("Roll no : ", self.roll_no, ", Grade: ", self.grade)
stud1 = stud(28, ‘acode’)
stud1.age=24
print(hasattr(stud1, 'age'))
Choose the correct option :
MongoDB is written in :
class Employee:
__counter=100
def __init__(self, name):
self.name=name
Employee.__counter+=1
self.id = Employee.__counter
@staticmethod
def get_counter():
return Employee.__counter
employee1=Employee("Tino")
employee2=Employee("Chris")
employee3=Employee("Robb")
print(Employee.get_counter()-100)
lst = [1, 2, 3]
lst.append([5,6,7,8,9,10])
print(len(lst))
Choose the correct opinion :
Which of the following SQL terminology is same as $match in MongoDB ?
________ matches the start of the string.
________ matches the end of the string.
Identify the number of rows returned :
Query : SQL> SELECT * FROM CUSTOMERS WHERE SALARY <> 2335;
Choose the correct option :
Which of the following normal form deals with the repeating group anomaly ?
Identify the most efficient test data set for testing the below code using ‘Logic Coverage technique’.
if previous_year_percentage>=75 and previous_year_percentage<=85:
scholarship=5000
elif previous_year_percentage>85 and previous_year_percentage<=95:
scholarship=8000
elif previous_year_percentage>95:
scholarship=10000
else:
scholarship=0
Choose the correct option :
Which of the following condition(s) is not a part of updating a view :
Vini and Sukriti started working on a project and they can complete the project in 30 days. Vini worked for 16 days and Sukriti completed the remaining work in 44 days. How many days would Sukriti have taken to complete the entire project all by herself?
numbers ={}
letters ={}
comb ={}
numbers[1]=56
numbers[3]=7
letters[4]='B'
comb['Numbers']= numbers
comb['Letters']= letters
print(comb)
Identify the number of rows returned :
Query : SQL> SELECT * FROM CUSTOMERS WHERE SALARY > 3000;
There are 19 red balls and one black ball. Ten balls are put in one jar and the remaining 10 are put in another jar. What is the possibility that the black is in the right jar.
def int():
print("CODE")
int = int()
Three taps P,Q and R can fill a tank in 10,20 and 30 hours respectively. If P is open all the time and Q and R are open for one hour each alternately, then the tank will be full in :
class Demo:
def __init__(self,x,y,z):
self.a=x
self._b=y
self.__c=z
Pipe A fills a tank in 30 minutes. Pipe B can fill the same tank 5 times as fast as pipe a. If both the pipes were kept open when the tank is empty, how much time will it take for the tank to overflow?
class fruits:
def __init__(self):
self.price = 100
self.__bags = 5
def display(self):
print(self.__bags)
obj=fruits()
obj.display()
Two painters P1 and P2 paint the house in 3 days. If P1 alone can paint the house in 12 days, in how many days can P2 alone complete the same paint work ?
def binary_search(num_list, element):
low=0
high=len(num_list)-1
mid=(low+high)//2
while(num_list[mid]!=element and low<high):
if(element>num_list[mid]):
low=mid+1
else:
high=mid-1
mid=(low+high)//2
if(element == num_list[mid]):
print("Element is in the list at index", mid)
else:
print("Element is not in the list")
Above code is for Binary Search Algorithm for the list of elements sorted in ascending order, what modifications are required if it has to be used for the list which is in descending order.
20 men were employed to do some work in a certain time. But when 1/3rd of the scheduled time was over, it was found that only 1/4th of the total work was completed. How many more men should now be employed to complete the work in 3/4ths of the originally scheduled time?
a={}
a[2]=1
a[1]=[2,3,4]
print(a[1][1])
A bag contains 4 white, 5 red and 6 blue balls. Three balls are drawn at random from the bag. The probability that all of them are red, is:
class A:
def one(self):
return self.two()
def two(self):
return 'A'
class B(A):
def two(self):
return 'B'
obj1=A()
obj2=B()
print(obj1.two(),obj2.two())
Ramesh is younger to Suren by 9 years. If their ages are in the respective ratio of 4:5, how old is Ramesh ?
Syntax of constructor in Python?
Rohit Sharma’s score in a T20 game is 4 times the average of his scores in the previous 5 games. What has been the percentage increase in his average after the 6th game?
class fruits:
def __init__(self):
self.price = 100
self.__bags = 5
def display(self):
print(self.__bags)
obj=fruits()
obj.display()