1. void main()
{
int i,j,k;
for(i=0;i<3;i++)
k=sum(i,i);
printf("\n%d",k);
getch();
}
sum(s,t)
{
static int m;
m+=s+t;
return m;
}
Ans: 6



2. What is the output of the program
void main()
{
int i,j,k,n=5;
clrscr();
for(i=5;i>0;i--)
{
j=1<i;
k=n&j;
k==0?printf("0"):printf("1");
}
getch();
}
// A. 00011
// B. 11110
// c. 11001
// D. 11100
Ans: B. 11110

3. What is the output of the program
void main()
{
int i,j,k;
i=2;
j=4;
k=i++>j&2;
printf("%d\n",k);
if(++k && ++i<--j|| i++)
{
j=++k;
}
printf(" %d %d %d",i,-j--,k);
getch();
}
// A. 4,-3,2
// B. 5,-3,2
// c. 4,-2,2
// D. 5,-2,2
Ans: D

4.  what is the final value of x when the code for(int
x=0;x<10;x++) is
run?
a. 10
b. 9
c. 0
d. 1

5. what is the data type of FILE?
a. integer
b. union
c. pointer
d. structure

6. if "a" is an array of 5*5 dimension, a[2][4] is same as
a. **(a+2+4)
b. *(a+2) + *(a+4)
c. **(a+2)+4
d. *(*a+2)+4)

7.In simple interest what sum amounts of Rs.1120/- in 4 years and Rs.1200/- in 5 years ?
(A) Rs. 500
(B) Rs. 600
(C) Rs. 800
(D) Rs. 900

8. If a sum of money compound annually amounts of thrice itself in 3 years. In how many years will it become 9 times itself.
(A) 6
(B) 8
(C) 10
(D) 12

9. Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train observes the 15 seconds elapse before the faster train completely passes by him.
What is the length of faster train ?
(A) 100m
(B) 75m
(C) 120m
(D) 50m

10. How many mashes are there in 1 square meter of wire gauge if each mesh is 8mm long and 5mm wide ?
(A) 2500
(B) 25000
(C) 250
(D) 250000

11. What is the Result of the following 'VIK'||NULL||'RAM' ?

a] Error
b] VIK RAM
c] VIKRAM
d] NULL

Ans : C


12. What SYSTEM VARIABLE is used to refer DATABASE TIME ?

a] $$dbtime$$
b] $$time$$
c] $$datetime$$
d] None of the above

Ans : A


13. If m:n = 2:3,the value of 3m+5n/6m-n is

(A) 7/3 (B) 3/7 (C) 5/3 (D) 3/5

14. A dog taken four leaps for every five leaps of hare but three leaps of the dog is equal to four leaps of the hare. Compare speed?

(A) 12:16 (B) 19:20 (C) 16:15 (D) 10:12

15. What is true about the following C functions?

(A) Need not return any value. (B) Should always return an integer.
(C) Should always return a float. (D) Should always return more than one value.

16. enum number { a=-1, b=4, c,d,e,} what is the value of e?

(A) 7 (B) 4 (C) 5 (D) 3

17. which of the following correctly declares “My_var” as a pointer to a function that returns an integer

a. int*My_Var();

b. int*(My_Var());

c. int(*)My_Var();

d. int(*My_Var)();

18. There are 76 persons. 53 can read hindu,46 can read times,39 can read deccan and 15 can read all.if 22 can read hindu and deccan and 23 can read deccan and times then what is the number of persons who read only times and hindu???
Ans 18

19. in pure milk if 20% replaced by water and in this again 20% is replaced by water and again 20% is replaced by water then what is the praportion of milk in that mixture

20. after 10 years A will be twice the age of B before 10 years.and now if the difference is 9 years between them then what is the age of B after 10 years 

Ans 49

Enter your E-mail Id for Free Job Alerts right Into your Inbox :

 
Top