NEW
Font size
WorksheetsBrightChamps Technical Round - C language
Total questions: 15
Worksheet time: 8mins
What is the purpose of the continue statement ?
to continue the execution of a loop
to skip the iteration of the loop
exit and return to the main function
to jump to another statement in the program and continue from here
Which of the following is a keyword in C language ?
void
stdio.h
scanf
both scanf and void
Which of the following is a valid variable name in C language ?
1test
_345
Bright Champs
#demo
C is a _______ programming language
Object Oriented
Interpreted
Scripting language
Procedural
What is a pointer in C language ?
It is used to store the memory address of another variable
It is used to point towards an instruction in a program
It stores the memory address of an object
There are no pointers in C language
int test(a,b)
{
pass
}
What does the "int" in the above block of code signify ?
data type of the function
data type of a and b
return type of the function
arguments of the function
Any mathematical operation between an integer and float will always
return an integer
return a string
return a float
will give an error
Which of the following is not a format specifier ?
%d
%s
%f
%k
A string should always be enclosed in
single quotes
hashtags
curly brackets
double quotes
The operator && is a
Logical operator
Bitwise operator
Mathematical operator
Escape sequence
Null character is represented by
\n
\t
\0
\r
#include <stdio.h>
int main()
{
int arr[5] = {10,20,30,40,50};
printf("%d",arr[2]);
return 0;
}
What will be the output of the above program ?
10
20
30
error
Maximum number of elements in the array declaration int a[5][8] is
5
8
16
40
Which is the correct way to declare a pointer?
int _p
*int p
int *p
none of these
What is the answer of 13%2
12
6.5
1
2
