C Programming :: All Aptitude Test ::

1.What will be the output of the program?
A. 6
B. 2
C. 12
D. 6

2.What will be the output of the program?
A. Good Morning
B. Good
C. M
D. Good Morning

3.What will be the output of the program If characters 'a', 'b' and 'c' enter are supplied as input?
A. abc abc
B. bca
C. Infinite loop
D. abc abc

4.What will be the output of the program?
A. Error
B. Pak
C. Mcqs
D. Error

5.What will be the output of the program?
A. PakMcqs
B. Cannot predict
C. Error
D. PakMcqs

6.What will be the output of the program?
A. Ali, Haider, Farhan, Aftab, Zoha
B. Ali, Haider, Farhan, Zoha, Aftab
C. Ali, Haider, Aftab, Farhan, Zoha
D. Ali, Haider, Farhan, Aftab, Zoha

7.What will be the output of the program?
A. 10
B. 6
C. 3
D. 10

8.What will be the output of the program ?
A. 0
B. 1
C. 2
D. 0

9.What will be the output of the program ?
A. 0
B. 8
C. 16
D. 0

10.What will be the output of the program ?
A. hhe!
B. he c
C. The c
D. hhe!

11.What will be the output of the program in 16-bit platform (Turbo C under DOS) ?
A. 8, 1, 4
B. 4, 2, 8
C. 4, 2, 4
D. 8, 1, 4

12.What will be the output of the program?
A. The string is empty
B. The string is not empty
C. 0
D. The string is empty

13.If char=1, int=4, and float=4 bytes size, What will be the output of the program ?
A. 1, 2, 4
B. 1, 4, 4
C. 2, 2, 4
D. 1, 2, 4

14.If the size of pointer is 32 bits What will be the output of the program ?
A. 10, 2 2, 2
B. 10, 4 1, 2
C. 11, 4 1, 1
D. 10, 2 2, 2

15.What will be the output of the program?
A. m, f
B. n, k
C. k, k
D. m, f

16.What will be the output of the program?
A. Hello
B. HelloHello
C. No output
D. Hello

17.What will be the output of the program?
A. Garbage value
B. No output
C. Error
D. Garbage value

18.What will be the output of the program?
A. Base address of str
B. PakMCQs
C. No Output
D. Base address of str

19.What will be the output of the program?
A. PakMcqs
B. qs
C. Error
D. PakMcqs

20.What will be the output of the program?
A. The sentence will get printed in same order as it entered
B. The sentence will get printed in reverse order
C. Half of the sentence will get printed
D. The sentence will get printed in same order as it entered

21.What will be the output of the program?
A. PakMcqs
B. PakMcqs PakMcqs
C. Pak Pak
D. PakMcqs

22.If the size of pointer is 4 bytes then What will be the output of the program ?
A. 22, 4
B. 25, 5
C. 24, 5
D. 22, 4

23.What will be the output of the program?
A. The string is not empty
B. The string is empty
C. No output
D. The string is not empty

24.What will be the output of the program?
A. 0
B. -1
C. Error
D. 0

25.What will be the output of the program in Turbo C?
A. PakMCQS
B. MCQS
C. PAK
D. PakMCQS

26.What will be the output of the program?
A. Equal
B. Unequal
C. Error
D. Equal

27.What will be the output of the program?
A. MCQS PAK
B. PAK MCQS
C. PAK
D. MCQS PAK

28.What will be the output of the program?
A. abcdefgh
B. e
C. d
D. abcdefgh

29.What will be the output of the following program in 16 bit platform assuming that 1022 is memory address of the string "Hello1" (in Turbo C under DOS) ?
A. 1022 Hello2
B. Hello1 1022
C. Hello1 Hello2
D. 1022 Hello2

30.Which of the following statements are correct about the program below?
A. The code converts a string in to an integer
B. The code converts lower case character to upper case
C. The code converts upper case character to lower case
D. The code converts a string in to an integer


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers