Documente Academic
Documente Profesional
Documente Cultură
a. SRQP
b. QPSR
c. QPRS
d. PSRQ
1.
class brush
{
private:
integer size, colorcode
function getdata() {…..} //Statement 1
public:
integer name // Statement 2
function putdata() {…..}
}
function main()
{
brush b1, b2
print b1.name // Statement 3
b2.getdata() //Statement 4
}
By deleting which line will correct the error in code?
a. Statement 1
b. Statement 2
c. Statement 3
d. Statement 4
2. Ram is making a database of animals in a zoo and their properties. The possible animals ate dog,
lion and zebra. Each one has attributes isHerbivorus, colour and isNocturnal. He uses the Object
Oriented Programming Paradigm for this. How will she conceptualize this?
a. Class: Animal; objects: dog, lion and zebra; data members: isHerbivorus, colour and
isNocturnal
b. Class: Animal; objects: isHerbivorus, colour and isNocturnal; data members: dog, lion
and zebra
c. Classes: dog, lion and zebra Animal; objects: Animal; data members: isHerbivorus,
colour and isNocturnal
d. None of the above
3. Recursion makes a significant characteristic of which of the following programming paradigms
a. Procedural Program
b. Functional Program
c. Object Oriented Program
d. Structural Program
4. Swathi writes a program to find an element in the array A[5] with the following elements in
order : 8, 30, 40, 45, 70. She runs the program to find a number X. X is found in the first iteration
of binary search. What is the value of X?
a. 40
b. 8
c. 70
d. 30
5. Following program is to print the sum of all cubes, where the value of the cubes go from 0 to
100.
a. Statement 1
b. Statement 2
c. Statement 3
d. No Error
6. What will be the output of following pseudo code
a. Statement 1
b. Statement 4
c. Statement 6
d. No Error
8. Which of the following data structures may give overflow error, even though the current
number of elements in it is less than its size
a. Queue implemented in a linear array
b. Queue implemented in a circularly connected array
c. Stack implemented in a linear array
d. None
9. How many pointers will have to changed / updated if a node is deleted from a linear linked list
a. 0
b. 1
c. 2
d. All the pointers will be changed
10.
integer i=0, j
while (i<2)
{
j=0;
while (j<=3*i)
{
print j
print blank space
j=j+3
}
print end of the line // takes cursor to next line
i=i+1
}
What is the output?
a. 0
03
b. 0 3
036
c. 0 3
036
0369
d. 0 3
036
0369
0 3 6 9 12
11. Geetha writes a piece of code, where a set of eight lines occur around 10 times in different parts
of the program (Code A). She passes on the code Ramesh. Ramesh puts the set of eight lines in a
function definition and calls them at the 10 points in the program (code B). Which code will run
faster using interpreter?
a. Code A
b. Code B
c. Both run at same speed
d. None
12. How does inheritance relates to abstraction
a. A base class is an abstraction of all its derived classes
b. A derived class is an abstraction of all its base classes
c. Base and derived classes are abstraction for each other
d. Inheritance prevents abstraction
13. A data type is stored as a 6 bit signed integer. Which of the following options cannot be
represented by this data type?
a. -12
b. 0
c. 32
d. 18
14. What is the term given to the feature of a programming language that is designed to handle the
run time errors of a program
a. Exception Handling
b. Error Handling
c. Debugging
d. Dynamic Error Handling
15. Which of the following options describes a tree?
a. An unconnected graph
b. A connected graph
c. A connected acyclic graph
d. A complete graph
16.
PUSH (1)
PUSH (2)
POP
PUSH (5)
PUSH (6)
POP
What will the stack contain after these operations? Top of the stack is underlined
a. 5 6
b. 1 5
c. 5 6
d. 1 5
21. Sarika implements a queue as a singly-linked list. The queue has n elements. The time
complexity to ADD a new element to the queue
a. (1)
b. (log2 n)
c. (n)
d. (n log2 n)
22. Saleem wants to use a sorting technique to sort a list of numbers such that the running time of
the sorting technique that he uses won’t be affected by the pre-order of the elements. Which of
the following sorting techniques should he use
a. Merge Sort
b. Bubble Sort
c. Insertion Sort
d. Selection Sort
23. Hema is writing a program in C++. C++ uses the ‘for’ key word for loops. By mistake she writes
‘gor’ instead of ‘for’. What will this result to
a. The code will not compile
b. Run time error
c. The code may work for some inputs and not for others
d. No Problem
24. Surendra writes a C++ Program and passes it to Renuka. Renuka does some indentation in some
statements of the code. What will this lead to
a. Faster Execution
b. Lower Memory requirement
c. Correction of errors
d. Better reliability
25. A sorting algorithm iteratively traverses through a list to exchange the first element with any
element less than it. It then repeats with a new first element. What is this sorting algorithm
called
a. Insertion Sort
b. Selection Sort
c. Heap Sort
d. Quick Sort
1. 2, 4, 12, 48,
a. 240
b. 480
c. 340
d. 960
2. Arrange the following in most meaningful order
1. Community
2. Locality
3. Family
4. Country
5. Person
a. 4,1,2,3,5
b. 4,2,1,3,5
c. 5,3,2,1,4
d. 5,3,4,2,1
3. Pick the odd man out
a. ACFJ
b. CEHL
c. PRUY
d. SUXZ
4. Pick the odd man out
a. N3K
b. T4P
c. W5S
d. Q2O
5. If GULMOHAR is coded as TFONLSZI, PIPAL will be coded as
a. QJQBM
b. QJQBN
c. KRKZO
d. KIKZO
6. If DETERMINE is coded as ENIMRETED, the DECIDE is coded as
a. EDICED
b. FGEKFG
c. EFDJEF
d. FGDJFG
7. I was facing North, I turned 110 degrees and the anti-clock wise direction and then 155 degrees
in the clock wise direction. Which direction I am facing now
a. East
b. North – East
c. North
d. South – East
8. Suresh is standing at point A facing East. He walks 30 meters towards his right and takes a left
turn to walk 40 meters, then he takes another left turn and walks 50 meters. In which direction
is he standing from point A?
a. North – East
b. North
c. North – West
d. West
9. Symbols -, + , * and / mean the following
A – B means A is equal to B
A * B means A is 70 percent of B
Using these symbols and taking the given statements true, find out that which of the given
conclusions are definitely true?
Statements: X + Y, Z * Y, Z – A
Conclusions
1. Z / X
2. A / X
a. Only 1 is true
b. Only 2 is true
c. Both are true
d. Neither are true
10. _cb_ca_bacb_ca_bac_d
a. bddddb
b. addbbb
c. addddb
d. bbbddd
11. If SKILLFUL is written as LTMJGMMV, How is STATED written
a. TUCUFD
b. UTUCEF
c. UTUBEF
d. TUBUFE
12. Sahitya is standing at point A facing North. She walks 50 meters to her right and takes a left turn
and walks another 40 meters, then she walks 30 meters to her left again and then 20 meters to
her right. In which direction is she standing from her starting point?
a. North-East
b. North-West
c. North
d. South-West
13. Email overload has of-late become a great cause of concern in all organizations. We have
reached a stage where our email habits control us. We are obsessed with checking our emails
every now and then. We feel bored of working and we glance into our mailbox hoping to have
received some “scintillating” mail. Obviously it also gives us an illusionary impression that we
are working. Not missing any mail and replying to each one of them has become a custom. Our
addiction to this leads our ignorance of deadlines, meetings, personal chit chat with fellow
employees. It’s a shame that we have inculcated a habit of reading mails but not of taking timely
actions on the mails.
Based on the above passage find out which of the following statements can be inferred from the
passage
Based on the above passage find out which of the following statements can be inferred from the
passage
19. A man runs 14 Kms towards south, then 8 Kms towards north and then 8 Kms towards west.
How far is he from starting point?
a. 5 Km
b. 6 Km
c. 10 Km
d. 14 Km
20. Arrange the following in most meaningful order
1. Dress
2. Yarn
3. Cotton
4. Stitching
5. Plant
a. 5,3,2,4,1
b. 3,5,2,1,4
c. 5,3,1,4,2
d. 1,2,3,4,5
21.
Problem Question: Chinmayi got the 15th Rank among the girls in the class. How many girls are
there in the class?