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)
Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity? 
Insertion Sort
Quick Sort
Heap Sort
Merge Sort
What will be the output of the following code: 
void solve() {  

int a[] = {1, 2, 3, 4, 5}; 

 int sum = 0;  

for(int i = 0; i < 5; i++) 

 { 

 if(i % 2 == 0) 

 { sum += a[i]; }  

} 

 cout << sum << endl; 

 } 

5
15
9
6
Which of the following algorithms are used to find the shortest path from a source node to all other nodes in a weighted graph? 
BFS
Dijkstra’s Algorithm
Prims Algorithm
Kruskal’s Algorithm
Which of the following is the prefix form of 

 A+B*C? 
A+(BC*)
+AB*C
ABC+*
+A*BC
Which of the following application makes use of a circular linked list? 
Recursive function calls
Undo operation in a text editor
Implement Hash Tables
Allocating CPU to resources
 Which of the following are valid SQL data types?
Numeric
Character
Float
All of the above
Which of the following best describes encapsulation? 
Combining data and methods into a single unit
Breaking down a complex problem into smaller parts
Allowing an object to perform many forms of behavior
Hiding the internal state of an object from the outside world
A shepherd has 1 million sheep at the beginning of Year 2000. The numbers grow by x during the year. A famine hits his village in the next year and many of his sheep die. The sheep population decreases by y during 2001 and at the beginning of 2002 the shepherd finds that he is left with 1 million sheep. Which of the following is correct? 
x > y
y > x
x = y
Cannot be determined
After groups have been established, SQL applies predicates in the ___________ clause, allowing aggregated functions to be used
where
having
group by
with
Find the minimum number of straight lines required to make the given figure. 
Captionless Image
13
15
17
19
Option 5
The FCFS algorithm is particularly troublesome for 
Operating Systems
Time Sharing Systems
Multiprocessor Systems
Multiprogramming Systems
A deadlock avoidance algorithm dynamically examines the __________ to ensure that a circular wait condition can never exist.
Operating System
Resources
System Storage State
Resource Allocation State
Cascading termination refers to the termination of all child processes if the parent process terminates ______ 
Normally or abnormally
Normally
Abnormally
None of these
Which of the following memory allocation schemes does not suffer from external fragmentation? 
Paging
Segmentation
Contiguous allocation
Linked allocation
Which of the following scheduling algorithms may cause starvation? 
First-Come-First-Serve (FCFS)
Shortest Job Next (SJN)
Round Robin
Priority Scheduling
 What is the process of removing data from RAM when it is not in use anymore? 
Segmentation
Paging
Swapping
Thrashing
Ethernet system uses which of the following technology. 
Bus
Ring
Star
Tree
Which of the communication modes support two way traffic but in only once direction of a time? 
Simplex
Half-duplex
Three - quarter's duplex
Full duplex
 Address use 7 bits for the <network> and 24 bits for the <host> portion of the IP address. 
Class A
Class B
Class C
Class D
............. implies that all subnets obtained from the same network use the subnet mask. 
Static subnetting
Dynamic Subnetting
Variable length subnetting
Both B and C
A ............. is a set of information that is exchanged between a client and web browser and a web server during an HTTP transaction. 
Access-Token
Client-Info
Cookie
Info-set