WorksheetsC Programming
Total questions: 15
Worksheet time: 6mins
Who invented C Language.?
Charles Babbage
Grahambel
Dennis Ritchie
Steve Jobs
C is a which level language.?
Low Level
High Level
Low + High
D) None
Low level language is .?
Human readable like language.
language with big program size.
language with small program size.
Difficult to understand and readability is questionable.
High level language is a .?
Human readable like language.
language with small program size.
language with big program size.
language which is difficult to understand and not human readable.
C language was invented in the year.?
1999
1978
1972
1990
0
1
5
Compile error
#include <stdio.h>
// Assume base address of "GeeksQuiz" to be 1000
int main()
{
printf(5 + "GeeksQuiz");
return 0;
}
GeeksQuiz
Quiz
1005
Compile-time error
Which program outputs "Hello World.." .?
main()
{
scanf("Hello World..");
}
main()
{
printf("Hello World..");
}
main()
{
print("Hello World..");
}
main()
{
scan("Hello World..");
}
A C program is a combination of.?
Statements
Functions
Variables
All of the above
Find a correct C Keyword.
Float
Int
Long
double
#include <stdio.h>
int main() {
int a = 3, b = 5;
int t = a;
a = b;
b = t;
printf("%d %d", a, b);
return 0;
}
3 5
3 3
5 5
5 3
Types of Integers are.?
short
int
long
All the above
Operator % in C Language is called.?
Percentage Operator
Quotient Operator
Modulus
Division
Choose a right statement.
int a = 10 + 4.867;
a = 10
a = 14.867
a = 14
compiler error.
#include <stdio.h>
int main()
{
int i = 3;
printf("%d", (++i)++);
return 0;
}
3
4
5
Compile-time Error
