WorksheetsBASIC C PROGRAMMING QUIZ
Total questions: 15
Worksheet time: 4mins
Who invented C programming language ?
Ken Thompson
James Gosling
Dennis Ritchie
James Thompson
In C, program execution always starts from ________
int a = 30
#include<stdio.h>
main()
#include<conio.h>
Which of the following are Relational Operators in C?
=
>=
!=
||
In C, what is the correct hierarchy of arithmetic operations?
*/ + -
* +- /
/ *+ -
+ - / *
Which one of the following is correct variable declaration?
coding13
13coding
_CoDiNg_ChAlLeNgE
coding.challenge
Which loop can be used in C language so that the loop gets executed atleast once?
while
for
switch
do while
int a = 1;
int b = 18;
a++;
b--;
what is the value of a and b?
a=2
b=19
a=2
b=17
a=1
b=17
a=1
b=19
How many times the loop will get executed?
for(int i=5;i<=10;i++)
5
6
4
0
Which is the correct form of Array Declaration?
int a = {1,2,3}
int a[];
int a[]=[1,2,3];
int a = {a,b,c};
which is the correct format specifier for int ?
%c
%i
%d
%int
char s[ ]= "civil engineering association";
printf("%d",strlen(s));
28
29
27
Cannot be determined
int a=20;
a%=20;
what is the value of a?
20
1
0
None of the above
A default statement is optional in SWITCH CASE.
true or false?
TRUE
FALSE
Which is the right order
int > char > float
char < int < double
char > int > float
double < char < int
What is the output of the below program?
#include<stdio.h>
main()
{
printf("\");
}
\
\"
"
Compile error
