Persistent Previous Years Solved Sample Placement Papers
-
What are the different types of real data type in C?
A. float, double
B. short int, double, long int
C. float, double, long double
D. double, long int, float
Ans: C -
Which statement will you add in the following program to work it correctly?
#include<stdio.h> int main() { printf("%f\n", lof(36.0)); return 0; }
A. #include<conio.h>
B. #include<math.h>
C. #include<stdlib.h>
D. #include<dos.h>
Ans: B -
What do the following declaration signify?
int *ptr[30];
A. ptr is a pointer to an array of 30 integer pointers.
B. ptr is an array of 30 pointers to integers.
C. ptr is an array of 30 integer pointers.
D. ptr is an array 30 pointers.
Ans: B -
What is x in the following program?
#include<stdio.h> int main() { typedef char (*(*arrfptr[3])())[10]; arrfptr x; return 0; }
A. x is a pointer
B. x is an array of three pointers
C. x is an array of three function pointers
-
You want to find out the value of the last element of an array. You write the following code. What will happen when you compile and run it?
public class MyAr{ public static void main(String argv[]){ int[] i = new int[5]; System.out.println(i[5]); } }
1) An error at compile time
2) An error at run time
3) The value 0 will be output
4) The string "null" will be output.
-
Susan can type 10 pages in 5 minutes. Mary can type 5 pages in 10 minutes. Working together, how many pages can they type in 30 minutes?
(A) 15
(B) 20
(C) 25
(D) 65
(E) 75
Ans: (E) -
Six bells commence tolling together and toll at intervals of 2, 4, 6, 8, 10, and 12 seconds respectively. In 30 minutes, how many times do they toll together?
(A) 4
(B) 10
(C) 15
(D) 16
Ans: (D) -
If the time quantum is too large, Round Robin scheduling degenerates to:
(A) Shortest Job First Scheduling
(B) Multilevel Queue Scheduling
(C) FCFS
(D) None of the above
Ans: (C) -
Transponders are used for which of the following purposes?
(A) Uplinking
(B) Downlinking
(C) Both (A) and (B)
(D) None of the above
Ans: (C) - On the day the Barton triplets are born, Jenna weighs more than Jason. Jason weighs less than Jasmine. Of the three babies, Jasmine weighs the most. If the first two statements are true, the third statement is
a. true.
b. false.
c. uncertain.
Answer: a. true. - The temperature on Monday was lower than on Tuesday. The temperature on Wednesday was lower than on Tuesday. The temperature on Monday was higher than on Wednesday. If the first two statements are true, the third statement is
a. true.
b. false.
c. uncertain.
Answer: a. true. - Spot is bigger than King and smaller than Sugar. Ralph is smaller than Sugar and bigger than Spot. King is bigger than Ralph. If the first two statements are true, the third statement is
a. true.
b. false.
c. uncertain.
Answer: b. false. - A fruit basket contains more apples than lemons. There are more lemons in the basket than there are oranges. The basket contains more apples than oranges. If the first two statements are true, the third statement is
a. true.
b. false.
c. uncertain.
Answer: a. true.