WBJECA MCQ FOR NEW SYLLABUS
C Programming MCQ ( SET - 8)
- Which of the following are example of iteration in C Programming Language ?
- do-While
- while
- for
- all of above
Answer: D
Explantion: None - Which operator is known as ternary operator ?
- ;
- ::
- ? :
- ? ;
Answer: C
Explantion: None - Associativity of an operator are ?
- Right to left
- Left to Right
- Random
- both A & B
Answer: D
Explantion: None. - How many logical operator in c programming language ?
- two
- three
- four
- one
Answer: B
Explantion: None - Can function definition be present in header files ?
- no
- yes
- Depends on compiler
- none
Answer: B
Explantion: None - All keywords in C programming language are in ____________ ?
- UpperCase letter
- CamelCase letters
- LowerCase letters
- None
Answer: C
Explantion: None - what will be the output of program ?
main()
{
int x=10;
x+=10;
printf(%d
,x);
}- 10
- 20
- 30
- none
Answer: B
Explantion: None - What will be the output of program ?
main()
{
int x=10;
int x=20;
printf(%d
,x);
}- 15
- 25
- 10
- 20
Answer: D
Explantion: None - what will be the output of program ?
main()
{
int x=10;
int j=10;
printf(%d %d
,x,j++);
}- 11 10
- 10 10
- 10 11
- none of above
Answer: B
Explantion: None - 10what will be the output of program ?
main()
{
int x=10;
printf(%d %d
,x,x++);
}- 11 garbage
- 10 garbage
- 10 11
- 11 10
Answer: D
Explantion: None
More C programming MCQ for
0 Comments