Online Quiz on "Data Structure using C"
Organized by: Department of Electronics and Telecommunication Engineering of Pune Vidyarthi Griha's College of Engineering, Nashik is conducting online quiz with questions on "Data Structure using C" for engineering background students and faculties.
About the Quiz
Free Registration
Free E-Certificate will be provided to the participants who secure more than 40%
Note: Only 100 certificates will be awarded per day, if the Participants response not recorded in a Single day, they Can try on the next day
Who Can Attempt the Quiz: Faculty Members, UG & PG Students.
Quiz Pattern: There are 20 Multiple choice type questions to be answered
After Quiz Completion Everyone Will Get This Type of Certificate
1) C is a:
Client -side scripting language
General Purpose Programming Language
Photo editing program
All of above
2) Which of the following are valid data types in C?
int, float, double, char
int, double, char, boolean
int, float, string, char
int, bool, string
3) What is the starting point for a C program?
The <stdio.h> header
The main() function
First line
None of the above
4) The preprocessor acts:
Before compilation
After compilation
During program runtime
All of the above
5) Which one of the following is not reserved keyword in C?
auto
case
main
default
6) What will be printed after execution of following code?
main()
{
printf("\\nab");
printf("\\bsi");
printf("\\rha");
}
absiha
asiha
haasi
hai
7) What will be the output of the following program?
char ch;
int i;
ch = 'G';
i= ch-'A';
printf("%d", i);
8
7
5
6
8) Find out the output of following program:
void main()
{
int i=01289:
printf("%d", i);
}
0289
1289
01289
Syntax error
9) What is the difference between declaration and definition of a variable ?
A. Both can occur multiple time, but declaration must occur first
B. A definition occurs once, but declation may occurs many times
C. Both can occur multiple time, but a definition must occur first
D. There is no difference between them.
10) What will happen after compiling and running following code?
#include<stdio.h>
void main()
{
printf("%p", main);
}
Error
Will make infinite loop
Some address will be printed
None of the above
11) What will be the output of following code?
int abc(int);
void main()
{
int i=abc(10);
printf("%d", --i);
}
int abc(int i);
{
return i++;
}
11
10
9
Syntax error
12) Determine the output?
void main()
{
int i=10;
printf("%d",i);
{
int i=20;
printf("%d",i);
i++;
printf("%d",i);
}
printf("%d",i);
}
10 10 11 11
10 20 21 10
10 20 21 21
10 20 21 20
13) Find out output of following program
#include<stdio.h>
void main()
{
int y=10;
if(y++ >9 && y++! =10 && y++ >11)
printf("%d", y);
else
printf("%d", y);
}10
11
13
Compilation error
14) What is true about a break?
A. Break stops the execution of entire program
B. Break halts the execution and forces the control out of the loop
C. Break forces the control out of the loop and starts the execution of next iteration
D. Break halts the execution of the loop for certain time frame
15) What is output of following program?
void main()
{
int i;
const int *ptr=&i;
char *s, str[]="welcome";
s=str;
while(*s)
printf("%c", *s++);
}
Welcome
o
Wel
come
16) What is a right way to initialize an array ?
int a[ ] = { 2, 3, 5, 6, 7, 8 };
int a[6] = { 2, 3, 4 };
int a(6) = { 2, 3, 5, 6, 7, 8 };
int a[6] = { 2, 3, 5, 6, 7, 8 };
17) What will be the output of the following C program?
void main()
{
printf(5+"Good Morningn");
}
Good
Good Morningn
Morningn
None of these
18) What is the return type of a method that does not return any value?
int
float
void
double
19) Which of the following operator take only integer operand ?
+
/
*
%
20) What will be the output of the following C program?
void main()
{
char *str1="abcd";
char str2[]="abcd"; printf("%d %d" "%d", sizeof(str1), sizeof(str2), sizeof("abcd"));
}
2 5 5
4 5 5
8 5 5
2 4 5
For Answers of This Quiz Competition Click On The Following Video
Please Like and Subscribe My Youtube Channel (CS TECH) For More Quizzes and Free Certification Courses Click On The Following Link
Youtube Channel Link:- CS TECH
0 Comments