Você está na página 1de 4

Name: _________________________

Mobile No: _________________________

Predict the output of following program. Assume that the numbers are stored in
2's complement form.
#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 No Idea
Same
Assume that the size of an integer is 4 bytes. Predict the output?
#include <stdio.h>
int fun()
{
puts(" Hello ");
return 10;
}

int main()
{
printf("%d", sizeof(fun()));
return 0;
}
a) 4 b) Hello 4 c) 4 Hello d) Compile No Idea
r Error
Predict the output of below program:
#include <stdio.h>

int main()
{
int arr[5];

// Assume that base address of arr is 2000 and size of integer


// is 32 bit
arr++;
printf("%u", arr);

return 0;
}
a) 2002 b) 2004 c) 2020 d) Lvalue No Idea
require
What is the output of following program?

1
Name: _________________________
Mobile No: _________________________

# include <stdio.h>

int main()
{
char str1[] = "GeeksQuiz";
char str2[] = {'G', 'e', 'e', 'k', 's', 'Q', 'u', 'i', 'z'};
int n1 = sizeof(str1)/sizeof(str1[0]);
int n2 = sizeof(str2)/sizeof(str2[0]);
printf("n1 = %d, n2 = %d", n1, n2);
return 0;
}
a) n1 = b) n1 = c) n1 = 9, d) n1 = 9, No Idea
10, n2 10, n2 n2 = 9 n2 = 10
=9 = 10
Let x be an integer which can take a value of 0 or 1. The statement if(x = =0) x =
1; else x = 0; is equivalent to which one of the following?
a) X=1+x b) X=1-x c) X=x-1 d) X=1%x No Idea
The sum of ages of 5 children born at the intervals of 3 years each is 50 years.
What is the age of the youngest child?
a) 4 b) 10 c) 8 d) None No Idea
The average of 20 numbers is zero. Of them, at the most, how many may be
greater than zero?
a) 0 b) 1 c) 10 d) 19 No Idea
A fruit seller had some apples. He sells 40% apples and still has 420 apples.
Originally, he had:
a) 588 b) 600 c) 672 d) 700 No Idea
The cost price of 20 articles is the same as the selling price of x articles. If the
profit is 25%, then the value of x is:
a) 15 b) 16 c) 18 d) 25 No Idea
The largest 4 digit number exactly divisible by 88 is:
a) 9944 b) 9768 c) 9988 d) 8888 No Idea
All the trees in the park are flowering trees.
Some of the trees in the park are dogwoods.
All dogwoods in the park are flowering trees.
If the first two statements are true, the third statement is
a) True b) False c) Uncerta No Idea
in
Look at this series: 7, 10, 8, 11, 9, 12, ... What number should come next?
a) 7 b) 10 c) 12 d) 13 No Idea
ELFA, GLHA, ILJA, _____, MLNA
a) OLPA b) KLMA c) LLMA d) KLLA No Idea
Odometer is to mileage as compass is to
a) Speed b) Hiking c) Needle d) Directio No Idea
n

2
Name: _________________________
Mobile No: _________________________

a) 1 b) 2 c) 3 d) 4 No Idea
MPG is an file extension of which type of files ?
a) Audio b) Image c) Video d) Flash No Idea
Where BIOS is stored?
a) HDD b) RAM c) Flash d) None of No Idea
Memory Above
Chip
1 Mega Byte is equal to _______
a) 1024 b) 1024KB c) 1024GB d) 1024 No Idea
byte bits
Which among following is responsible for finding and loading operating system
into RAM ?
a) Bootstr b) CMOS c) BIOS d) DMOS No Idea
ap
Loader
In computer what converts AC to DC ?
a) POST b) Adapter c) RAM d) SMPS No Idea
Write a Paragraph about Yourself

3
Name: _________________________
Mobile No: _________________________

Você também pode gostar