Hello Students, Welcome to Mypractically.So, today in this post I give you some mcq of C Programming Language / Programming in C
Subject Code - 22226/22218. This post is very benificial for Electronic, or Computer/IT students.Here, we design mcq for practice purpose only.So, I requested to students this mcq is not 100% sure to come in exam.
I give you 20+ mcq bank in this post.So, I highly recommend to you to try and read this all mcq more than 2-3 times.
Subject - C Programming Language / Programming in C
Subject Code - 22226/22218
Branch - Electronic or Computer/IT Engineering
Topic - 20+ MCQ Bank
1. Which of the following is C IDE ?
a. Dev C++
b. Turbo C++ IDE
c. Visual Studio
d. All of Above
Ans - d. All of Above
2. Which of the following operating system supported by C Language?
a. Unix
b. Linux
c. Windows
d. All of above
Ans - d. All of Above
3. C language is developed by ______?
a. AT & T Bell Laboratories of USA in 1972.
b. Cambridge University in 1992
c. AT & T Bell Laboratories of USA in 1982
d. None of the above
4. Which of the following keyword is used for storage class ?
a. printf
b. external
c. auto
d. scanf
Ans - c.auto
5. The prototype of the function in header file is -
a. stdio.h
b. Stblin.h
c. conio.h
d. io.h
Ans - a. stdio.h
6. Which operator has lowest priority ?
a. ++
b. %
c. +
d. ||
Ans - d. ||
7. Which pair of functions below are used for single character I/O ?
a. printf
b. scanf
c. getchar
d. gets
Ans - c. getchar
8. Which pair of functions below are used for multiple characters I/O ?
a. printf
b. scanf
c. getchar
d. gets
Ans - d. gets
9.Find the output of the following Program ?
#include<stdio.h>
int main (){
int a=10;
printf("Output of program is %d",a);
}
a. Output of program is %d
b. Output of program is 10
c. 10
d. None of the above
Ans - b. Output of program is 10
10. In algorithm each step should be clear, this is the criteria of.
a. Finiteness
b. Output
c. Definiteness
d. none of the above
Ans - c. Definiteness
11. What is the work of flow lines in flow chart ?
a. To check data
b. to shows proper relation between process
c. to test the output of program
d. All of the above
Ans - b. to shows proper relation between process
12. Which control structure first checks the condition.
a. for
b. While
c. Case
d. Else if
Ans - b. While
13. Float a= 551 In this statement the value of a is 551.0000
a. True
b. False
Ans - a. True
14. Which of the following is used as constant in program ?
a. Area of Circle
b. Area of circumference
c. Value of pi
d. Number of students in class
Ans - c. Value of pi
15. d=(a*b)/c; which diagram is used to presented this operation in flowchart ?
a. Rectangle
b. Circle
c. Pentagon
d. Diamond
Ans - a. Rectangle
16. Which keyword is used for declaration of keyboard ?
a. Constant
b. Var
c. const
d. int
Ans - c. const
17. AND Operator returns true value when
a. Condition 1 is true and condition 2 is false
b. Condition 1 is false and condition 2 is True
c. Both a and b are true
d. Both a and b are false
Ans - c. Both a and b are true
18. Which c function is used to clear the screen ?
a. puts()
b. getch()
c. clrscr()
d. None of the above
Ans - c. clrscr()
19. Which operator is used to separate two or more expression ?
a. Bitwise operator
b. Conditional operator
c. Comma
d. All of the above
Ans - c. Comma
20. Which of the following is not unformatted function ?
a. puts()
b. Clrscr ()
c. gets
d. print()
Ans - d. print()
Thank You Very Much for Visiting mypractically.I hope this post is very helpful for you.I suggest you to share this mcq with your friends,groups,etc.In next post, I will try to make another mcq for your exam preparation.Once again Thank You Very Much Students.
Thank you 🙏
ReplyDelete