0% found this document useful (0 votes)
10 views3 pages

BCA (Objective) 77

MCQ c programming

Uploaded by

the1bold
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

BCA (Objective) 77

MCQ c programming

Uploaded by

the1bold
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

BCA (2nd Sem.)-2077 BCA (2nd Sem.

)-2077
Attempt all question. Tick () the correct answer. Attempt all question. Tick () the correct answer.

1. What is the first Programming language? 1. What is the first Programming language?
a. Pascal b. Qbasic c. C d. FORTRAN a. Pascal b. Qbasic c. C d. FORTRAN
2. Basic language processor is_________? 2. Basic language processor is_________?
a. Compiler b. Assembler c. Interpreter d. All a. Compiler b. Assembler c. Interpreter d. All
3. Memory requirement for long double data type is 3. Memory requirement for long double data type is
a. 12 bytes b. 8 bytes c. 10 bytes d. 4 bytes a. 12 bytes b. 8 bytes c. 10 bytes d. 4 bytes
4. Which one of the keyword is not used in C? 4. Which one of the keyword is not used in C?
a. extern b. void a. extern b. void
c. main d. default c. main d. default
5. Which of the following is a correct comment in C? 5. Which of the following is a correct comment in C?
a. /*KMC Banepa b. */KMC Banepa a. /*KMC Banepa b. */KMC Banepa
c. /*KMC Banepa*/ d. KMC Banepa// c. /*KMC Banepa*/ d. KMC Banepa//
6. What is the valid example of Symbolic constant? 6. What is the valid example of Symbolic constant?
a. #define N=20 b. #Define N 20 a. #define N=20 b. #Define N 20
c. #define N 20; d. #define N 20 c. #define N 20; d. #define N 20
7. What will be the output? 7. What will be the output?
main( ) { int x=10, y=20; if(x==y) printf("%d%d", x, y); } main( ) { int x=10, y=20; if(x==y) printf("%d%d", x, y); }
a. 10 b. 10 20 c. blank d. 0 a. 10 b. 10 20 c. blank d. 0
8. What will be the output? 8. What will be the output?
main( ) { int a=5, b=3, c; c=a/b; printf("Value of c=%d", c); } main( ) { int a=5, b=3, c; c=a/b; printf("Value of c=%d", c); }
a. 1 b. 1.6 c. 7 d. 5 a. 1 b. 1.6 c. 7 d. 5
9. What is the equivalent expression for a=a%b? 9. What is the equivalent expression for a=a%b?
a. a%=b b. a=%b c. a%b=a d. a%a=b a. a%=b b. a=%b c. a%b=a d. a%a=b
10. What will be the output? 10. What will be the output?
main( ) { int a, mark=50; a=(mark>=40)?1:0; main( ) { int a, mark=50; a=(mark>=40)?1:0;
printf("%d", a); } printf("%d", a); }
a. 1 b. 0 c. 10 d. 50 a. 1 b. 0 c. 10 d. 50
11. Basic Programming language's tool is_________? 11. Basic Programming language's tool is_________?
a. FlowChart b. Algorithm c. Pseudo code d. All a. FlowChart b. Algorithm c. Pseudo code d. All

12. Memory requirement for double data type is 12. Memory requirement for double data type is
a. 12 bytes b. 8 bytes c. 10 bytes d. 4 bytes a. 12 bytes b. 8 bytes c. 10 bytes d. 4 bytes
13. Which one of the keyword is used in C? 13. Which one of the keyword is used in C?
a. extern b. void a. extern b. void
c. All d. default c. All d. default

14. What will be the output? 14. What will be the output?
main( ) { int x=10, y=20; if(x>=5 && y>=12) main( ) { int x=10, y=20; if(x>=5 && y>=12)
printf("TRUE"); else printf("FALSE"): } printf("TRUE"); else printf("FALSE"): }
a. 0 b. TRUE c. blank d. FALSE b. 0 b. TRUE c. blank d. FALSE

15. What will be the output? 15. What will be the output?
main( ) { float i=6.324578; printf("%c\n", i); } main( ) { float i=6.324578; printf("%c\n", i); }
a. Blank b. 0 c. 6.32 d. 6 c. Blank b. 0 c. 6.32 d. 6
16. What will be the output? 16. What will be the output?
main( ) { int a=8; double d=8.2576; main( ) { int a=8; double d=8.2576;
char c='A' ; float f=7.675432; char c='A' ; float f=7.675432;
printf("%d" , sizeof(a+d+c+f)); } printf("%d" , sizeof(a+d+c+f)); }
a. 8 b. 8.2576 c. 8.25 d. A a. 8 b. 8.2576 c. 8.25 d. A

17. What will be the output? 17. What will be the output?
main( ) { int n=90; printf("%c", n); } main( ) { int n=90; printf("%c", n); }
a. z b. Z c. 90 d. Q a. z b. Z c. 90 d. Q

18. ……………… is not keyword in "C" programming? 18. ……………… is not keyword in "C" programming?
a. void b. double c. single d. do a. void b. double c. single d. do

19. Maximum range of "unsigned char" is ………. ? 19. Maximum range of "unsigned char" is ………. ?
a. -128 to 127 b. 0 to 127 c. 0 to 255 d. -256 to 255 a. -128 to 127 b. 0 to 127 c. 0 to 255 d. -256 to 255

20. What do you mean by "#" in "C" programming ? 20. What do you mean by "#" in "C" programming ?
a. processor b. preprocessor a. processor b. preprocessor
c. micropreocessor d. miniprocessor c. micropreocessor d. miniprocessor

You might also like