Font size
WorksheetsC Programming
Total questions: 10
Worksheet time: 6mins
Identify the output of the program
3, 3, 3
2, 2, 3
4, 2, 3
2, 3, 3
Find the output of the program
(a)
Which of the following is more appropriate for reading in a multi-word string?
scanf()
printf()
puts()
gets()
What is the output of this program?
100
200
30
500
Find the output of the program
Compilation error
55 40 10
55 55 55
1 40 1
0 40 1
What is the name of the header file to which the function printf() and scanf() belong ?
#include<stdio.h>
#include<math.h>
None of the above
#include<string.h>
Find the output of the program
5, 3, 20
3, 3, 20
3, 2, 15
5, 2, 15
Find the output of the program
b=100 c=200
b=100 c=garbage value
b=garbage value c=200
b=300 c=200
A single line comment line in a C Language source code can begin with
;
:
//
/*
#include<stdio.h>
int main()
{
printf("%d", -11%2);
}
1
-1
-5.5
5.5
