Sie sind auf Seite 1von 11

Aptitude Test

1] A train 125 m long passes a man, running at 5 km/hr in the same direction in which the train is going, in 10 seconds. The speed of the train is: A. 45 km/hr B. 50 km/hr C. 54 km/hr D. 55 km/hr

2] A person crosses a 600 m long street in 5 minutes. What is his speed in km per hour? A. 3.6 B. 7.2 C. 8.4 D. 10

3] Reena took a loan of Rs. 1200 with simple interest for as many years as the rate of interest. If she
paid Rs. 432 as interest at the end of the loan period, what was the rate of interest? A. 3.6 B. 5 C. 6 D. 10

4] A shopkeeper expects a gain of 22.5% on his cost price. If in a week, his sale was of Rs. 392, what was his profit? A. 18.20 B. 70 C. 72 D. 88.25

5] Two numbers A and B are such that the sum of 5% of A and 4% of B is two-third of the sum of 6% of A
and 8% of B. Find the ratio of A : B. A. 2:3 B. 1:1 C. 3:4 D. 4:3

6] The average weight of 8 person's increases by 2.5 kg when a new person comes in place of one of them weighing 65 kg. What might be the weight of the new person? A. 76 kg B. 76.5 kg C. 80 kg D. 85 kg

7] In how many different ways can the letters of the word 'DETAIL' be arranged in such a way that the vowels occupy only the odd positions? A. 36 B. 48 C. 60 D. 85

8] The percentage increase in the area of a rectangle, if each of its sides is increased by 20% is:
A. 40% B. 42% C. 44% D. 46%

9] A two-digit number is such that the product of the digits is 8. When 18 is added to the number, then the digits are reversed. The number is: A. 18 B. 24 C. 42 D. 81

10] The greatest number of four digits which is divisible by 15, 25, 40 and 75 is: A. 9000 B. 9400 C. 9600 D. 9800

11] In a class, there are 15 boys and 10 girls. Three students are selected at random. The probability that 1 girl and 2 boys are selected, is: A. 21/46 B. 25/117 C. 1/50 D. 3/25

12] In order to obtain an income of Rs. 650 from 10% stock at Rs. 96, one must make an investment of: A. Rs.3100 B. Rs. 6240 C. Rs. 6500 D. Rs. 9600

13] A, B, C subscribe Rs. 50,000 for a business. A subscribes Rs. 4000 more than B and B Rs. 5000 more than C. Out of a total profit of Rs. 35,000, A receives: A. Rs 8400 B. Rs. 11900 C. Rs. 13600 D. Rs. 14700

14] A man is 24 years older than his son. In two years, his age will be twice the age of his son. The present age of his son is: A. 14 years B. 18 years C. 20 years D. 22 years

15] It was Sunday on Jan 1, 2006. What was the day of the week Jan 1, 2010? A. Sunday B. Saturday C. Friday D. Wednesday

C Programming
1] int i; void main() { printf("%d",i++); } a) Garbaage b) Error void main() { int a=0,b=-1,c=6; int j; j=a++&&++b||c++&&++b; printf("%d %d %d %d",a,b,c,j); } a) 1 2 7 1 3] b) 1 0 7 0 c) 0 1 7 1 d) None of the above

c) 0

d) 1

2]

void main() { struct emp { char name[20]; int age; float sal; } struct emp e1={ Soft }; printf( %d %f ,e1.age, e1.sal); } a) Garbage Value b) 0 0.0000

c) Compilation error

d) None of the above

4]

How many times the program will print "IndiaBIX" ?


#include<stdio.h> int main() { printf("IndiaBIX"); main(); return 0; }

a) Infinite times 5]

b) 32767 times

c) 65535 times d) Till stack doesn't overflow

In which header file is the NULL macro defined? a) stdio.h b) stddef.h c) stdio.h and stddef.h d) stdlib.h

6]

The library function used to find the last occurrence of a character in a string is a) strnstr() b) laststr() c) strrchr() d) strstr()

7]

What does fp point to in the program ? #include<stdio.h> int main() { FILE *fp; fp=fopen("trial", "r"); return 0; } a) The first character in the file b) A structure which contains a char pointer which points to the first character of a file. c) The name of the file. d) The last character in the file.

8] Which bitwise operator is suitable for checking whether a particular bit is on or off? a) && operator b) & operator c) || operator d) ! operator

9] How will you free the memory allocated by the following program?
#include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() { int **p, i, j; p = (int **) malloc(MAXROW * sizeof(int*)); return 0; }

a) memfree(int p);

b) dealloc(p);

c) malloc(p, 0);

d) free(p);

10] Declare the following statement? :- "An array of three pointers to chars".
a) char *ptr[3](); c) char (*ptr[3])(); b) char *ptr[3]; d) char **ptr[3];

1] new and malloc differs by a) malloc cannot be used in C++. b) malloc does not call constructor when creating object on heap, while new calls constructor. c) malloc is function and new is an operator.

d)

Both b and c.

2] A reference variable a) must be member of some class. b) must be initialized. c) gets initialized with zero by default. d) must be initialized with a pointer variable.

3] Behavior of the object is governed by a) change in State of that object b) Responsibility of an object c) identifying it separately from all other objects d) role object plays in the system

4] Objects declared as constant can call only a) constant member functions. b) Static member functions. c) Any member function. d) None of above.

5] Who invokes the destructor function a) Compiler b) Operating system c) Linker d) None of the above

6] containment is a) is a kind of relationship b) is a part of relationship c) both a & b are true d) both a & b are false

7] Concrete derived class has a) One pure virtual function. b) One friend function.

c) No pure virtual function. d) None of above.

8] Virtual functions : a) Need not be a member function. b) The decision of which function to be invoked is resolved at compile time. c) Is a method through which C++ achieves run time polymorphism. d) There cannot be a virtual destructor.

9] If recursive function declared inline then a) compiler throws an error b) No error but function will not be treated inline c) Can't say d) None of the above

10] procedural abstraction is______________ a) data abstraction b) behavior abstraction c) to know relevent attributes d) none of the above

SQL 1] A view is which of the following? a. b. c. d. A virtual table that can be accessed via SQL commands A virtual table that cannot be accessed via SQL commands A base table that can be accessed via SQL commands A base table that cannot be accessed via SQL commands

2] SQL data definition commands make up a(n) ________ . a) DDL b) DML c) HTML d) XML

3] The HAVING clause does which of the following? a) Acts like a WHERE clause but is used for groups rather than rows. b) Acts like a WHERE clause but is used for rows rather than columns. c) Acts like a WHERE clause but is used for columns rather than groups. d) Acts EXACTLY like a WHERE clause.

4] To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier specified must be included. a) ONLY 5] SQL is: a) a programming language. b) an operating system. c) a data sublanguage. d) a DBMS. b) UNIQUE c) DISTINCT d) SINGLE

OS
1] Define Network? 2] What is a gateway or Router? 3] What is point-point link? 4] What is Multiple Access? 5] What are the advantages of Distributed Processing?

Answers of Aptitude: 1] B 2] B 3] C 4] C 5] D 6] D 7] A 8] C 9] B 10] C 11] A 12] B 13] D 14] D 15] C C programming 1] C 2] B 3] B 4] D 5] C 6] C 7] B 8] B

9] D 10] B C++ Programming 1] D 2] B 3] A 4] A 5] A 6] B 7] C 8] C 9] B 10] B SQL 1] A 2] A 3] A 4] C 5] C Networking 1] A network is a set of devices connected by physical media links. A network is recursively is a connection of two or more nodes by a physical link or two or more networks connected by one or more nodes. 2] A node that is connected to two or more networks is commonly called as router or Gateway. It generally forwards message from one network to another. 3] If the physical links are limited to a pair of nodes it is said to be point-point link. 4] If the physical links are shared by more than two nodes, it is said to be Multiple Access.

5] a. Security/Encapsulation b. Distributed database c. Faster Problem solving d. Security through redundancy e. Collaborative Processing

Name: _______________________________________________________________________________ College: __________________________________________________________ Course: MCA / MCS Email-Id: _____________________________________________________________________________ Contact No: ___________________________________________________________________________

Aptitude Test Q.1] ______________ Q.4] ______________ Q.7] ______________ Q.10] _____________ Q.13] _____________ C Programming Q.1] ______________ Q.4] ______________ Q.7] ______________ Q.10] _____________ C++ Programming Q.1] ______________ Q.4] ______________ Q.7] ______________ Q.10] _____________ SQL Q.1] ______________ Q.4] ______________ Q.2] ______________ Q.5] ______________ Q.3] ______________ Q.2] ______________ Q.5] ______________ Q.8] ______________ Q.3] ______________ Q.6] ______________ Q.9] ______________ Q.2] ______________ Q.5] ______________ Q.8] ______________ Q.3] ______________ Q.6] ______________ Q.9] ______________ Q.2] ______________ Q.5] ______________ Q.8] ______________ Q.11] _____________ Q.14] _____________ Q.3] ______________ Q.6] ______________ Q.9] ______________ Q.12] _____________ Q.15] _____________

Das könnte Ihnen auch gefallen