NEW
Font size
WorksheetsTechnical Quiz Round 1
Total questions: 20
Worksheet time: 10mins
Which of the following print format code is used to print float value?
%d
%f
%c
%i
What is the extension of a C program?
.cpp
.c
.cp
.f
Who is the Founder of C Programming Language?
Array index starts from _______.
0
1
2
-1
______ can store only one of its members at a time.
Structure
Union
File
Array
_________ contains memory address as its values.
Register
Pointer
Variable
Array
strlen(‘Hello’) will return ______.
5
7
3
2
If there is any error while opening a file, fopen() will return?
-1
EoF
NULL
Run Time Error
The C-preprocessors are specified with _________ symbol.
@
%
&
#
What is meant by ‘a’ in the following C operation?
fp = fopen("Random.txt", "a");
add
append
attach
apprehend
Which of the following is the correct way to declare a pointer in C?
int *ptr;
int ptr*;
ptr int*;
int &ptr;
What will be the output of the following code: printf("%d", 10 + 20);?
10
20
30
Compilation Error
Which of the following is not a valid data type in C?
int
float
string
char
Which of the following is used to define a macro in C?
define
macro
const
var
What will be the result of the expression 5 / 2 in C?
2
2.5
2.0
3
Which of the following is the correct syntax for a for loop in C?
for (i = 0; i < 10; i++)
for i = 0 to 10
for (i < 10; i++)
for (i = 0; i < 10)
Which of the following is the correct way to declare a constant in C?
const int x = 10;
int const x = 10;
int x = const 10;
const x = 10;
What will be the output of the following code: printf("%f", 5.0 / 2.0);?
2
2.0
2.500000
Compilation Error
Which of the following is used to include a standard library in C?
#include
import
using
require
What is ASCII?
American Standard Code for Information Interchange
American Standard C Code for Information Interchange
American Standard Code for Information Integration
American Standard C Code of Information Interchange
