1. --------- acts as a command interpreter
A) Unix shell
b) kernel
c) d)
ans) a
2. Combine $x=1;[x -ge 10] into a single statement
3. Wats the output of the code snippet
echo hello
Eval echo Hello
Eval echo eval Hello
Ans: hello
Hello
Hello
4. What does $* represent
5. Which statement is true to dbms?
a) Collection of data
b) Collection of interrelated data and set of programs to
access that data
c) Collection of inter related data no need of any programs
d) Collection of data and set of programs
Ans) b
6. Values should dependant on primary key in which normal
form?
a) 1 NF
b) 2nf
c) 3nf
d) 4nf
7. Mathematical representation of joining tables ----------
a) Union
b) Cartesian product
8. Question on data objects and constraints
9. Use of normalization?
a) Reducing redundancy
b) little storage space
c)all the above
10. What r the types of joins below
a) Interior & outer
b) inner and outer joins
Ans) b
11. C++ ---15 q(15 min)
The code that could be written in which block to raise
exceptions?
a) Catch
b) try
c) finally
d) none
Ans) b
12. Some programs on pointers some tricky questions
13. By using which keyword we can’t change value after
initialization?
a) Int
b)
c) const
Class one
{
enum {name1,name 2, name 3}
}
Wt is the value of name 2
a) 0 b) 2 c) 1 d) 3
(this question is not full, like this only)
ans) c
14. Which of the following is true for constructor?
constructor can not be inherited
15. i=0
While($i –le 10)
do
i=’expr$i+1’
done>file
16. Class Base
{
Base( )
{
Cout<<”Base”;
}
};
Class Derived: public Base
{
Derived( )
{Cout<<”Derived”;
}
};
void main( )
{
Derived d;
}
a)base
b)base derived
c)derived
d)derived base.
17. Relation of an entity to itself is known as
one to many
B) one to one
3) Recursive
18. A relation in RDBMS can exist between_______ entities
A) min 2
B) Atleast 1
C)three
D)none of these
19. 5th Normal Form depends upon
A)Multivalued Dependencies
B) Functional Dependencies
20. Which of these is not TRUE abt the joint and the union
A) Join is always costlier than union
B) Union always acts upon columns
C) Union always acts upon rows
D) Join always acts upon columns
(The options were similar to this one not exactly these)
21. In a Left outer joint operation what will be returned
A) Left table returns all rows
B) Right table returns all rows
C) Both tables return all rows
D) Right table returns NULL
22. A function in a Class by default is
A) Virtual
B) Inline
C) Pure Virtual
D) None of these
23. Three numbers are given ..u need to decide which two are
similar or if all three are different or similar.
1. 8849651
2. 8849561
3. 8849651
a) 1&2 are same
b) 2&3 are same
c) all are same
d)1 & 3 are same
e)all are different
ANS: d
24. Niziamuddin 2. Nizeamuddin 3. Niziammudin
a) 1&2 are same
b) 2&3 are same
c) all are same
d)1 & 3 are same
e)all are different
ans e
25. Even great people are ___________________ (1) by some
questions.
a) bamboozled
b)Challenged
c)stump
d) defeated
26Output of the following program is
main()
{int i=0;
for(i=0;i<20;i++)
{switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a) 0,5,9,13,17
b) 5,9,13,17
c) 12,17,22
d) 16,21
e) Syntax error
Ans. (d
2.7 What is the output in the following program
main()
{char c=-64;
int i=-32
unsigned int u =-16;
if(c>i)
{printf("pass1,");
if(c
printf("pass2");
else
printf("Fail2");
}
else
printf("Fail1);
if(i
printf("pass2");
else
printf("Fail2")
}
a) Pass1,Pass2
b) Pass1,Fail2
c) Fail1,Pass2
d) Fail1,Fail2
e) None of these
Ans. (c)
28 One day the Finance minister decides that the country
should have only 33 paise and 56 paise.If there are two traders having enough
change in the two denominations, what is the minimum amount for which they can
transact?
29 Out of the following numbers which is the greatest number
when 7 times that number is < 100
Ans : 14
30 There is 31 days in the month of January. If there is 4
Sundays and 4 Thursdays exactly.what day is the first day of the month?
a)Monday
b)Tuesday
c)Wednesday
d)thursday
31There are 5 tyres including a spare tyre.total number of
Kms to be covered is 10000 and each tyre should run equally.how may Kms does
each tyre run?
Ans: 8000.
Language : C/C++
32 which of the following is the correct declaration of a
function pointer
How will u retrieve the value stored in pointer variable a
33 How to pass two arguments to a function prompted to by function
pointer
a) g -> (1,2) b)*g(1,2) c)(*g)(1,2) d)g(1,2)
Ans: c) (*g)(1,2)
34 If jacob sold a watch costing rs.400 to john at 15%
profit and john sold the same to sudhir at 15% profit, what is the price paid
by sudhir?
a.460
b.510
c.529(ans)
d.560
35 In a shop 80% of the articles are sold at a profit of 10%
and the remaining at a loss of 40%.what is the overall profit/loss?
a.10% profit
b.10% loss
c.15% profit
d. no profit, no loss(ans)
36 If an article with marked price of rs.400 is sold at successive
discount of 10%,25% and 15%,what is the price the customer has to pay?
a.360
b.300
c.230(ans)
d.270
37 the sides of a triangle are in the ratio 37.if the
perimeter is 60 cms, the longest side is Three years ago the average of A and B
was 18 Years. With C joining them now, the average becomes 22 years. How old is
C now?
a) 24 years
b) 27 years
c) 28 years
d) 30 years
38 A train traveling at 42 kms/ hr passes a cyclist going in
the same direction in 9 secs. If the cyclist had been going in the opposite
direction, the train would have passed him in 5 secs. Find the length of the
train.
a) 75 meters
b) 60 meters
c) 90 meters
d) 80 meters
39 A person walks a distance of 18 kms at a particular
speed. For the next 30 kms he increases his speed by 2 kmph. Had he walked the
entire distance at 3 kmph more than his initial speed, he would have reached 4
hours earlier. Find his initial speed.
a) 3 kms/hr
b) 2 kms/hr
c) 4 kms/hr
d) None of these
40 Connection object, command objection. How can u associate
both?
a)Set command object.activeconnection = connectionobject
41var1 is declared as global variable.proc1( ) and proc( )
have local variables.when a call is made from proc1( ) to proc ( ) which are
the variables will be displayed in locals window?
42 How do u unregister a COM from registry?
43 what will happen when Require Variable Declaration option
is checked?
a) existing undeclared variables are converted to variant by
VB
b) this comes into effect for the new code segment
44 A global module called global. as is creates. which part
of the program can access this module? The options were ambigous.be clear about
the scope of the global. as module and the application which access it
45 . If a & b are 2 positive integers and (a-b)/3.5 =
4/7 then
options: ba 3) b=a 4) b>=a
Ans: Option 1) b