Ad Code

Ticker

6/recent/ticker-posts

C programming quize test 1 | What is output of following program - oklesson

When you learn any programming language, you test your programming skill, how strong is your programming skill. By the way, you can check your programming skill in many ways. But the way of today, if you test your programming skills by that, you will benefit a lot. In this post we have talked about the C language quiz test.

Also Read: 10+ basic program In C | Download Pdf

In this post, we are going to talk about what is output of the following program in C. Because this is the best way to do a skill test of any programming language. In this post, you will find small programs which you will test through your programming skill and tell its output.

C programming quize test -1

In this quize test you will find 10 small programs. Those who have to solve and tell you their answer, you will get the answer of the output of all the programs at the bottom. In this output program quiz test, we have asked beginner level questions. If you are learning programming right now, then this quiz test can help you a lot. As you increase your programming skills,

Also Read: Coronavirus Prank Program In C 

 you will be able to make good projects in C programming, such as: - diamond pattern, calculator, X-mas tree etc. In this post, we have taken the question related to variable declaration, in this quiz test, where the variable is declared and  cover the question. It is also important for the purpose of small program in exam. And if you have any question, you can comment and ask.

C programming Quize Test -1

Whenever you solve a program, you do not hurry, think about it and solve the program comfortably. And when you do not know the answer to the program, you can scroll down the post and see the answer below. And we hope that you will definitely like this quiz test.

A. What is output of following program

#include<stdio.h>
int main()

{

char c='A';

printf("%d",c);

return 0;

}

1. A

2. Compile time error

3. 65

4. none of the Above

B. Solve this program and find ouput

#include<stdio.h>

int main()

{

 int a=97;

 printf("%c",a);

 return 0;

}

1. a

2. Compile time error

3. 97

4. none of the Above

C. What is output of this program

#include<stdio.h>

int main()

{

  int main=65;

  printf("%c",main);

  return 0;

}

1. Syntax error

2. A

3. 65

4. none of the Above

D. What is output of following program

#include<stdio.h>

int main()

{

  int 3variable=6; 

  printf("%d",3variable);

  return 0;

}

1. 6

2. 18

3. Syntax error

4. none of the Above

Also Read:- Top 5 Program In C language

E. Find output of this program

#include<stdio.h>

int variable=9;

int main()

{

  int variable=10;

  printf("%d",variable);

return 0;

}

1. Syntax error

2. 10

3. 9

4. 10,9

F. What is the output of following program

#include<stdio.h>

int main()

{

printf("%d",a);

int a=10;

return 0;

}

1. a 

2. 10

3. Syntax error

4. None Of the above

Also Read: What Is Algorithm In C 

G. Solve and find output of following program

#include<stdio.h>

int main()

{

  int x=35;

  int y=30;

  printf("%c",x+y);

return 0;

}

1. 65 

2. 35

3. A

4. None Of the above

H. What is output of following program

#include<stdio.h>

#define Pi 3.14

int main()

{

  float pi=4.16;

  printf("%f",Pi);

return 0;

}

1. 3.14 

2. 4.16

3. Syntax Error 

4. None Of the above

I. Solve this Program and find Output

#include<stdio.h>

int main()

{

int x;

 printf("%d",sizeof(x));

 return 0;

}

1. 2

2. 4
3. Syntax error
4. Depend on compiler

J.What is Ouptut of following Program

#include<stdio.h>
int main()
{
  int y;
  float x = y = 5;
  printf("%f",x);
return 0;
}

1. 5

2. Syntax error
3. 5.0
4. 10.0

Also Read :top 5 Android Compiler for C and C++


Answer :- A. 3
B. 1
C. 2
D. 3
E. 2
F. 3
G. 3
H. 1
I.  4
J. 3

If you liked this post What is output of the following program, then please comment and tell. This was part 1 of the quiz test, and the second part is coming very soon, so you must subscribe to the blog via e-mail now. So that no new updates are missed by you.

Tags:

c programming quiz test

c programming quiz

c programming quiz with answers

c programming quiz online

c programming quiz questions

online quiz test for c programming

c programming quiz for beginners

c programming online quiz test

c programming quiz questions and answers

Post a Comment

1 Comments

Hey , Comment Your Query or Suggestion