Aptitude Question Paper VI
The paper consists of three sections.
1. Aptitude 15 questions 20 min
2. System concepts 20 questions 20 min.
3. 'C' 15 questions 20 min.
Section 1
Question 1 to 5 have to be answered on the basis of the information given below:
On Sunday, December 23, four ships were berthed at the Port.
l Ship W left at 4 PM on Sunday, December 23, for a series of 8-day cruises to Bermuda and
Nassau.
l Ship X left at 4:30 PM on Sunday, December 23, for a series of alternating11-day and 13-day
cruises.
l Ship Y sailed at 5 PM on Sunday, December 23, for a series of 5-day cruises to Bermuda.
l Ship Z sailed on Monday, Decmeber 24, for a series of 7-day cruises to Nassau
1. Java Questions
1. C - Legal at compile and runtime
2. A - Illegal both compile and runtime, you cannot assign an object to a sibling
reference.
parent.java:18: Incompatible type for =. Can't convert DerivedTwo to DerivedOne.
d1 = d2;
3. A - Illegal both compile and runtime, you cannot assign an object to a sibling
reference, even with casting.
parent.java:21: Invalid cast from DerivedTwo to DerivedOne.
Click here to download the full paper
2. Questions at Interview
C++ Questions
· What are the major differences between C and C++?
o What are the differences between new and malloc?
o What is the difference between delete and delete[]?
o What are the differences between a struct in C and in C++?
o What are the advantages/disadvantages of using #define?
o What are the advantages/disadvantages of using inline and const?
· What is the difference between a pointer and a reference?
Click here to download the full paper
3. Java Test
Q 1. What is the output of the following
StringBuffer sb1 = new StringBuffer("Amit");
StringBuffer sb2= new StringBuffer("Amit");
String ss1 = "Amit";
System.out.println(sb1==sb2);
System.out.println(sb1.equals(sb2));
System.out.println(sb1.equals(ss1));
System.out.println("Poddar".substring(3));
Ans:
a) false
false
false
dar
b) false
true
false
Poddar
c) Compiler Error
d) true
true
false
dar
Correct Answer is a)
Click here to download the full paper
4. C Questions
1. What does static variable mean?
2. What is a pointer?
3. What is a structure?
4. What are the differences between structures and arrays?
5. In header files whether functions are declared or defined?
6. What are the differences between malloc() and calloc()?
7. What are macros? what are its advantages and disadvantages?
8. Difference between pass by reference and pass by value?
9. What is static identifier?
10. Where are the auto variables stored?
Click here to download the full paper
5. Novell Network Paper 1
Novell network paper
The paper consists os three sections.
1. aptitude 15 questions 20 min.
2. system concepts 20 questions 20 min.
3. 'c' 15 questions 20 min.
NOTE:::::
I'm sendin the questions, somany have no answers. U do check the
answers for all the given questions also.
All questions are MULTIPLE CHOICES ONLY.
U do try to cover the related topics to get some understanding.
In interview They are asking C C++ Operating system concepts
and Networks.
Click here to download the full paper
6. Novell Network Paper 2
The paper consists of three sections.
1. Aptitude 15 questions 20 min
2. System concepts 20 questions 20 min.
3. 'C' 15 questions 20 min.
Section 1
Question 1 to 5 have to be answered on the basis of the information given below:
On Sunday, December 23, four ships were berthed at the Port.
l Ship W left at 4 PM on Sunday, December 23, for a series of 8-day cruises to Bermuda and
Nassau.
l Ship X left at 4:30 PM on Sunday, December 23, for a series of alternating11-day and 13-day
cruises.
l Ship Y sailed at 5 PM on Sunday, December 23, for a series of 5-day cruises to Bermuda.
l Ship Z sailed on Monday, Decmeber 24, for a series of 7-day cruises to Nassau
Click here to download the full paper
7. Nucleus Paper
Aptitude Section
Q. 5 men or 8 women do equal amount of work in a day. a job requires 3 men and 5 women to finish
the job in 10 days how many woman are required to finish the job in 14 days.
a) 10
b) 7
c) 6
d) 12
Ans 7
Q. A simple interest amount of rs 5000 for six month is rs 200. what is the anual rate of interest?
a) 10%
b) 6%
c) 8%
d) 9%
Click here to download the full paper
8. Oracle Corporation 1
1. Three beauty pageant finalists-Cindy, Amy and Linda-The winner was musician. The one who was
not last or first was a math major. The one who came in third had black hair. Linda had red hair. Amy
had no musical abilities. Who was first?
(A) Cindy (B) Amy (C) Linda (D) None of these
2. Two twins have certain peculiar characteristics. One of them always lies on Monday, Wednesday,
Friday. The other always lies on Tuesdays, Thursday and Saturdays. On the other days they tell the
truth. You are given a conversation.
Person A- today is Sunday, my name is Anil
Person B-today is Tuesday, my name is Bill What day is today?
(A) Sunday (B) Tuesday (C) Monday (D) Thursday
Click here to download the full paper
9. Oracle Corporation 2
1. Three beauty pageant finalists-Cindy, Amy and Linda-The winner was musician. The
one who was not last or first was a math major. The one who came in third had black
hair. Linda had red hair. Amy had no musical abilities. Who was first?
(A) Cindy (B) Amy (C) Linda (D) None of these
2. Two twins have certain peculiar characteristics. One of them always lies on Monday,
Wednesday, Friday. The other always lies on Tuesdays, Thursday and Saturdays. On the
other days they tell the truth. You are given a conversation.
Person A- today is Sunday, my name is Anil
Person B-today is Tuesday, my name is Bill What day is
today?
(A) Sunday (B) Tuesday (C) Monday (D) Thursday
Click here to download the full paper
10. Oracle Corporation 3
1. What is the output of the following program
main()
{
int i = 5;
printf("%d\n", i++ * i--);
}
(A) 25
(B) 24
(C) 20
(D) 30
2. What is the output of the following program
main()
{
char ch='a';
printf("%d ",ch);
printf("%d\n",((int)ch)++);
}
(A) 97 98
(B) 97
(C) 97 97
(D) compilation error
Click here to download the full paper
11. Oracle Corporation 4
QUESTION : 1
EVALUATE THESE TWO SQL COMMANDS:
1. SELECT DISTINCT OBJECT_TYPE FROM USER_OBJECTS;
2. SELECT OBJECT_TYPE FROM ALL_OBJECTS;
HOW WILL THE RESULTS DIFFER?
A. STATEMENT 1 WILL DISPLAY THE DISTINCT OBJECT TYPES IN THE DATABASE, STATEMENT
Click here to download the full paper
12. SQL and SQL+ Paper
1. Which of the following statements contains an error?
A. SELECT * FROM emp WHERE empid = 493945;
B. SELECT empid FROM emp WHERE empid= 493945;
C. SELECT empid FROM emp;
D. SELECT empid WHERE empid = 56949 AND lastname = 'SMITH';
2. Which of the following correctly describes how to specify a column alias?
A. Place the alias at the beginning of the statement to describe the table.
B. Place the alias after each column, separated by white space, to describe the column.
C. Place the alias after each column, separated by a comma, to describe the column.
D. Place the alias at the end of the statement to describe the table.
Click here to download the full paper
13. Programming Problems 1
Programming Problems
1) Reversing a linked list. Given a linked list, reverse it. Input must be read from a file,
"list.dat". It will just be a list of integers. The total number is not known. The program should
create a linked list with the given numbers in the same order. Each node contains the value and
a pointer to the next node of the list. Defining just TWO additional node pointers you must
inverse the given list and print out the numbers in the list. NO OTHER VARIABLE of any type
should be defined. Hence the output will be reverse of the input. eg. Input file reads, 3 1 4 2
Linked list will be, Head -> 3 -> 1 -> 4 -> 2 -> Null the the reversed list must be, Null <- 3 <-
1 <- 4 <- 2 <- Head So the output will be, 2,4,1,3.
Click here to download the full paper
14. Programming Problems 2
Programming Problems
C-on-test - Intra-IIT Round Brought to you by CSEA, IITB in association with VERITAS software.
Problem 1. ~~~~~~~~~~ With Election fever on its high and politicians running short on time
you have write an program which they can use to call junta to come forward and vote... The
program should print Come-Sure-Come on a line by itself just once. No leading or trailing
spaces. The output is case sensitive i.e. come-sure-come would be regarded as incorrect. As an
concerned citizen of this country you should do your bit towards it. Ask yourself, Do you want an
elected government or are you apathetic ?
Click here to download the full paper
15. Programming Problems 3
,-----------------------.
| Problem 0: Helloworld |
`-----------------------'
The Problem
~~~~~~~~~~~
(Freebie) Write a program to print the sentence, Hello
world on the screen. There is one space between the two words, and a
newline after World. The program should then input an integer,
add 10 to it and print the sum on the screen, followed by a newline.
Note: You need to submit this program first to register
yourself. .. 2 marks
In Short
~~~~~~~~
int main()
{
int x;
printf("Hello world\n");
scanf("%d", &x);
printf("%d\n", x+10);
}
Click here to download the full paper
16. Programming Problems 4
Programming Problems
1. You are given an array of positive integers. you want to check whether there is a triplet(a,b,c)
such that a + b = c
2.Given a number n & a prime p(< n) consider the binomial coefficients C(n,0) , C(n,1) , C(n,2),
... ,C(n,n) one wants to find out how many coefficients are not divisible by p. (try for a log(n)
algo.
Click here to download the full paper
17. Ramco Paper 1
MARKS------60---TOATAL
QUANTITATIVE ---------30
ENGLISH-----30
Directions: Each of the following question has a question and two
statements labelled as (i) and (ii). Use the data/information given
in (i) and (ii) to decide whether the data are sufficient to answer
the question record your answer as
a) if you can get the answer from (1)alone but not from (2)
b) if you can get the answer from (2)alone but not from (1)
c) if can get the answer from (1)and (2)together ,although
neither statement by itself suffice
d) if statement (1)alone suffices and statement (2) alone also suffice
Click here to download the full paper
18. Ramco Paper 2
Directions: Each of the following question has a question and two statements labelled as (i) and (ii).
Use the data/information given in (i) and (ii) to decide whether the data are sufficient to answer the
question record your answer as
A) If you can get the answer from (1)alone but not from (2)
B) If you can get the answer from (2)alone but not from (1)
C) If can get the answer from (1)and (2)together ,although neither statement by itself suffice
D) If statement (1)alone suffices and statement (2) alone also suffice.
E) If can't get the answer from statements (1) and (2) together and you need more data
Click here to download the full paper
19. Ramco Paper 3
1) Find the output for the following C program
main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
Ans. An empty string
Click here to download the full paper
20. Common Computer Questions
paper
1.const char *
char * const
What is the differnce between the above tow?.
2.In Unix inter process communication take place using?.
3.What are the files in /etc directory?.
4.About i-node numbers
5.Max relaxable permisssion value with out giving write permission
to others?.
No comments:
Post a Comment