On what basis is it determined, when a variable comes into existence in memory? 
Data Type
Storage Class
Scope
All of the above
Find the speed of the train, if a train 142 m long passes a pole in 6 seconds. 
77.2 km/hr
79.6 km/hr
84.9 km/hr
79.2 km/hr
A guy bought 10 pencils for Rs. 50 and sold them for Rs. 60.What is his gain in terms of percentage? 
10
5
20
12
Avinash covers a distance of 8km in 50 minutes. If he covers 3km distance in 2/5th of time then, What speed should he maintain to cover the remaining distance in the remaining time? 
13 Kmph
14 Kmph
15 Kmph
11 Kmph
Find the odd man out? 

396, 462, 572, 427, 671, 264. 
462
396
427
264
A rectangular parking space is marked out by painting three of its sides. If the length of the unpainted side is 9 feet, and the sum of the lengths of the painted sides is 37 feet, then what is the area of the parking space in square feet?
81
126
46
252
 There are 10 items in a box, out of which 3 are defective. 2 items are taken one after the other. What is the probability that both of them are defective? 
4/60
3/60
2/60
Both a and b
In object oriented programming languages, virtual function should be ____
Public
Private
Protected
Default
Today it is Thursday. After 139 days, it will be 
Monday
Tuesday
Wednesday
Thursday
What is the value of c , If 8 is 4% of a, and 4 is 8% of b. c equals b/a?
12
1/4
0.155
None of these
What is time complexity of fun()? 

 

int fun(int n) 
{ 
    int count = 0; 
    for (int i = n; i > 0; i /= 2) 
        for (int j = 0; j < i; j++) 
            count += 1; 
    return count; 
} 


O(n2)
O(n*log(n))
O(n)
O(n*log(n*log(n)))
Identify the mistake in the following Java code snippet: 

class Student { 
private int score; 
public static void setScore(int s) { 
score = s; 
} 
}
score should not be private
s is not correctly passed to score
setScore cannot be static as it accesses an instance variable
None of the above
Which design pattern is used to create a single instance of a class throughout the application? 
Factory Method
Singleton
Prototype
Builder
Which normal form eliminates repeating groups by putting them into separate tables and connecting them through foreign keys?
1 NF
2 NF
3 NF
BCNF
In E-R model, Y is the dominant entity and X is subordinate entity. Which of the following true
If Y is deleted then X is also deleted
If X is deleted then Y is also deleted
If Y is deleted, then X is not deleted
None of the above
Which of the following command is used to delete a table in SQL? 
Delete
Truncate
Remove
Drop
The employee information in a company is stored in the relation 

Employee (name, sex, salary, deptName) 

Consider the following SQL query

select deptName 
       from Employee 
       where sex = 'M' 
       group by deptName 
       having avg (salary) > (select avg (salary) from Employee) 

It returns the names of the department in which 



the average salary is more than the average salary in the company
the average salary of male employees is more than the average salary of all male employees in the company
the average salary of male employees is more than the average salary of employees in the same department
the average salary of male employees is more than the average salary in the company
Select the correct database object which does not exist physically
Table
View
Index
None of the above
What is the worst case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order ? 
O(n)
O(n log(n))
O(n2)
O(1)\