C Programming - Basic
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Test your basic C programming skill.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
What is the maximum value of a short variable?
Correct
Incorrect
-
Question 2 of 10
2. Question
What is the output of the following program?
#include
int main()
{
char str[] = “Smaller”;
int a = 100;
printf(a > 10 ? “Greater” : “%s”, str);
return 0;
}Correct
Incorrect
-
Question 3 of 10
3. Question
What will be the output of the following program?
#define x 5+2
void main(){
int i;
i=x*x*x;
printf(“%d”,i);
}Correct
Incorrect
-
Question 4 of 10
4. Question
On which of the following % operation can not be used?
Correct
Incorrect
-
Question 5 of 10
5. Question
Which of the following can not be used in a switch case statement?
Correct
Incorrect
-
Question 6 of 10
6. Question
What will be the output of the following program?
#include
int main()
{
int a = 500, b = 100, c;
if(!a >= 400)
b = 300;
c = 200;
printf(“b = %d c = %d\n”, b, c);
return 0;
}Correct
Incorrect
-
Question 7 of 10
7. Question
C programs are converted to the machine language by
Correct
Incorrect
-
Question 8 of 10
8. Question
Which of the following is not a correct variable type?
Correct
Incorrect
-
Question 9 of 10
9. Question
a[i][j][k][l] in equivalent to
Correct
Incorrect
-
Question 10 of 10
10. Question
What will be the output of the following program?
main()
{
int a, b=5;
a=b+NULL;
printf(“%d”, a);
}Correct
Incorrect