Search This Blog

Sunday 25 November 2012

CA Placement Paper 2



CA Placement Paper :-

1. Mr. Smith drove at an average speed of 50mph for the first two hours of his trip. For the next three hours, he averaged 20 mph. What was Mr. Smith`s average speed for the five-hour trip ?

20 mph
32 mph
35 mph
38 mph

2. A postal truck leaves its station and heads for Chicago, averaging 40mph. An error in the mailing schedule is spotted and 24 minutes after the truck leaves, a car is sent to overtake the truck. If the car averages 50mph, how long will it take to catch the postal truck?

1.6 hours
3 hours
2 hours
1.5 hours

3. The length breadth and height of a cuboid are in the ratio 1 : 2 :3. The length, breadth and height of the cuboid are increased by 100%, 200% and 200% respectively. Then the increase in the volume of the cuboid is

5 times
6 times
12 times
17 times

4. An Automobile covers the distance between two cities at a speed of 60km. per hour and on the return journey it covers at a speed of 40 km. per hour. Find the average speed.

60
50
48
55

5. A man buys 200 shares (par value of Rs.10) of a company, which pays 12% per annum as dividend, at such a price he gets 15% on his money. Find the market value(app.) of a share.

Rs. 9
Rs. 12
Rs. 8
Rs. 7.50

6. what is the o/p
    printf(" Hello \o is the world ");

Ans : Hello is the world.

7. Clarifying the concept addresses used over array ; ie changing the address of a base element produces what error?
 
13. child process  -- fork
    child shell    -- sh

8. Answer are lex 7 yacc & man read these things in UNIX

9. What is
    int *p(char (*s)[])
    Ans : p is a function which is returning a pointer to

10. Using pointer, changing A to B and B to A is Swapping the function using two address and one temperory variable. a,b are address, t is temporary variable. How function look like?

Ans : swap(int *, int *, int )

11. In  'o' how are the arguments passed?

ans : by value.

12. Find the prototype of sine function.

Ans : extern double sin(double)

13. Scope of a global variable which is declared as static?

ans : File

14. ASCII  problem
     i=..
 ans : 6

15. Which of following is used for back-up files?

(a) compress (b) Tar (c) make (d) all the above  Ans : b

16. what does find command do ? Ans : search a file

17. what does " calloc" do?

Ans :  A memory allocation and initialising to zero.

18. what does exit() do?

Ans : come out of executing programme.

19. what is the value of 'i'?
   i=strlen("Blue")+strlen("People")/strlen("Red")-strlen
("green")
   Ans : 1

20. i=2
    printf("%old %old %old %old ",i, i++,i--,i++);
    Ans : check the answer.

No comments:

Post a Comment