Parul University
2nd Sem Scholar test Sample Questions
Note:
The questions given here serve as examples and are intended for practice purposes only. They
are shared to provide students with a broad understanding of the question formats that may appear inthe test.
It’s important to note that the actual questions and their formats might vary from those presented here as
samples.
1. What would be the output of the following code?
#include<stdio.h>
int main()
unsigned int x = -1;
int y = ~0;
if (x == y)
printf("same");
else
printf("not same");
return 0;
a. same
b. not same
c. same
not same
d. None of the above
Ans: a
2. What would be the output of the following code?
#include<stdio.h>
int main()
{
float x = 0.1;
if ( x == 0.1 )
printf("IF");
else if (x == 0.1f)
printf("ELSE IF");
else
printf("ELSE");
a. IF
b. ELSE IF
c. IF
ELSE IF
ELSE
d. None of the above
ANS: b
3.What will be the output of the following snippet
char c[] = "GATE2024";
char *p =c;
printf("%s", p + p[3] - p[1]) ;
a. GATE2024
b. E2024
c. 2024
d. 024
Ans: c
4. What is the functionality of strcoll()?
a. compares the string, result is dependent on the LC_COLLATE
b. copies the string, result is dependent on the LC_COLLATE
c. compares the string, result is not dependent on the LC_COLLATE
d. copies the string, result is not dependent on the LC_COLLATE
Ans: a
5. What would be the output of the following
#include<stdio.h>
int a =20;
int main()
char s[]="hello";
printf("%d",printf("hello"));
return 0;
a. Syntax error
b. hello
c. hello 5
d. hello5
ANS: d
-------------------------------------------------------------------
Aptitude- Verbal, Quant & Reasoning
----------------------------------------------------------------------
1. Find the unit digit in the result of (18 8 ×9 7 ) + (15 5 -11 4 )
A. 4
B. 5
C. 3
D. 8
Answer: D
2. Which of the following words is a synonym for "ephemeral"?
A. Permanent
B. Transient
C. Elusive
D. Enduring
Answer: B
3. What is the value of π (pi) rounded to the nearest hundredth?
A. 3.14
B. 3.141
C. 3.1416
D. 3.14159
Answer: A
4. QPO, NML, KJI, _____, EDC
A. HGF
B. CAB
C. JKL
D. GHI
Answer: A
5. In how many different ways the word GOOGLE can be arranged?
A. 140
B. 120
C. 720
D. 180
Answer: D