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)
Thanks for taking this test.
Congratulations, You cleared this InfyTQ Mock Screening Test !!
One morning after sunrise, Suresh was standing facing a pole. The shadow of the pole fell exactly to his right. To which direction was he facing?
class A():
pass
class B():
pass
class C(A,B):
pass
class Computers:
def __init__(self, price):
self.price = price
obj=Computers(30000)
obj.quantity=12
obj.keyboard=10
print(obj.quantity+len(obj.__dict__))
Which of the following is wrong statement :
a. MongoDB supports search by field, range queries, regular expression searches
b. MongoDB can store the business subject in the minimal number of documents
c. Secondary indices is not available in MongoDB
d. All of the above
class Demo:
def __init__(self,x,y,z):
self.a=x
self._b=y
self.__c=z
Find the output
Query :
update employers set mobnumber = 98765841 where id = 1003
update employers set name = “Barton” where id = 1004
delete from employers where gender = ‘M’
select name, gender, mobnumber from employers
class InvalidLengthException(Exception):
pass
class Mobile:
def __init__(self,mob_no):
self.__mob_no=mob_no
def validate_mobile_number(self):
try:
if(len(self.__mob_no)!=10):
raise InvalidLengthException
else:
print("Valid Mobile Number")
except InvalidLengthException:
print("Invalid Length - inside class")
print("Inside the class")
mob = Mobile("987665")
try:
mob.validate_mobile_number()
print("Outside the class")
except InvalidLengthException:
print("Invalid Length - outside class")
Eight persons A, B, C, D, E, F, G and H are sitting around a rectangular table in such a way that two persons sit on each of the four sides of the table facing the center. Persons sitting on opposite sides are exactly opposite to each other.
D faces North and sits exactly opposite to H. E; is to the immediate left of H. A and G sit on the same side. G is exactly opposite of B who is to the immediate right of c. A is sitting to the left of D.
Who is sitting opposite to A?
Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
SQL Statement :
Select count(*) from Employee WHERE Salary > ANY (Select Salary from Employee);
prints
print(2**2**3**1+5)
In a family of 7 persons having 4 female and 3 male members, P is the brother of Q and son of R. R has two children and two grandchildren. V is the daughter of S who is the son-in-law of R. W is the nephew of Q and son of T. How is V related to T?
Predict the output :
Select substr(‘123456789’,INSTR(‘abcabcabc’,’b’),4) from DUAL;
class A:
def __init__(self,x=3):
self._x = x
class B(A):
def __init__(self):
super().__init__(5)
def display(self):
print(self._x)
def main():
obj = B()
obj.display()
main()
Peter and Paul are two friends. The sum of their ages is 35 years. Peter is twice as old as Paul was when Peter was as old as Paul is now. What is the present age of Peter ?
Some of these insert statements will produce an error. Identify the statement.
CREATE TABLE employee (id INTEGER,name VARCHAR(20),salary NOT NULL);
1. INSERT INTO employee VALUES (1005,Rach,0);
2. INSERT INTO employee VALUES (1007,Ross, );
3. INSERT INTO employee VALUES (1002,Joey,335);
Which of the following best describes polymorphism?
If you have 150 pebbles and need to make packets out of it in such a way that if any number of pebbles up to 150 is required you can hand it over without opening the packets, what is the minimum number of packets you need?
Choose the correct option :
OLAP stands for :
class A:
def test(self):
print("test of A called")
class B(A):
def test(self):
print("test of B called")
super().test()
class C(A):
def test(self):
print("test of C called")
super().test()
class D(B,C):
def test2(self):
print("test of D called")
obj=D()
obj.test()
In a box, there are 8 red, 7 blue and 6 green balls. One ball is picked up randomly. What is the probability that it is neither red nor green?
Choose the correct option :
A boy name X has rupees 1000 in their bank account. His friend Y needs rupees 200, so he tries to make a transaction. He asks his bank to make the transaction to his friend’s account. After filling all the details and successful transaction, 200 is deducted from X’s account. But his friend Y told him that he doesn’t receive the money. What property of transaction has not been maintained here?
def f(x):
def f1(*args, **kwargs):
print("*", 5)
x(*args, **kwargs)
print("*", 5)
return f1
@f
def p(m):
p(m)
print("hello")
25 liters of 70% HCL solution is mixed with X liters of 40% HCL solution to make a 50% HCL solution. Find the amount of 40% HCL solution added.
Consider the given options :
Table : Employee
Output : Steve reports to Suresh , Yuvraj reports to Suresh
class Test:
def __init__(self):
self.x = 0
class Derived_Test(Test):
def __init__(self):
Test.__init__(self)
self.y = 1
def main():
b = Derived_Test()
print(b.x,b.y)
main()
Choose the correct option :
Tables : Employee & Joining
SELECT Employee.Emp_id, Joining.Joining_Date
FROM Employee
FULL OUTER JOIN Joining
ON Employee.Emp_id = Joining.Emp_id
ORDER BY Employee.Emp_id;
How many records will be returned ?
dig = 0
for i in range(0, 5, 0.1):
dig += i
i+=0
print(dig)
Two pipes P and Q can fill a tank in 24 minutes and 27 minutes respectively. If both the pipes are opened simultaneously, after how much time should B be closed so that the tank is full in 8 minutes?
class A:
def __str__(self):
return '1'
class B(A):
def __init__(self):
super().__init__()
class C(B):
def __init__(self):
super().__init__()
def main():
obj1 = B()
obj2 = A()
obj3 = C()
print(obj1, obj2,obj3)
main()
A pipe can fill a tank in 3 hrs .Due to a leakage in the tank it takes 3.5 hrs to fill the same tank. Then how many hours will the leakage can empty the tank.
x = 5
def f1():
global x
x = 4
def f2(a,b):
global x
return a+b+x
f1()
total = f2(1,2)
print(total)
100 students appeared for two different examinations 60 passed the first,50 the second and 30 both the examinations. Find the probability that a student selected at random failed in both the examination ?
int = 1
def randommethod():
global int
for i in (1, 2, 3):
int += 1
randommethod()
print(int)
r = lambda g: g * 2
s = lambda g: g * 3
x = 2
x = r(x)
x = s(x)
x = r(x)
x = s(x)
print(x)
class A:
def __init__(self):
self.__x = 1
class B(A):
def display(self):
print(self.__x)
def main():
obj = B()
obj.display()
main()
To open a text file for writing operation, we use :
def vending_machine(insert_money,item_id):
if item_id == 101 and insert_money:
#line1
#line2
insert_money=True
item_id = 101
print(vending_machine(insert_money,item_id))
val = 154
while(not(val)):
val **=2
else:
val//=2
print(val)
class class1:
def __init__(me,a):
me.a=a
print(a)
ob=class1(10)
Choose the correct answer :
A composite attribute is converted to individual attributes in ______.