Quiz-summary
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
“If it wasn’t for C,
we’d be writing programs in BASI, PASAL, and OBOL.”
CSE DEPT. PRESENTS
CodaThon
A C-LANGUAGE CODING EVENT
AT BADDI UNIVERSITY
ON
ENGINEER’S DAY
VENUE: INTERNET LAB
TIMING: 2:00 PM (SEPTEMBER 15,2014)
ELIGIBILITY: OPEN FOR ALL THE GEEKS FROM ANY BRANCH
EXCELLENCE AWARD CERTIFICATES FOR TOP 3 WINNERS
FACULTY INCHARGE: |
EVENT CO-ORDINATOR’S: |
|
RAHUL DHIMAN |
CSE DEPT. | RAHUL BEAKTA(09459968376) |
|
AMANDEEP SINGH |
CSE DEPT. | RAJAT THAKUR |
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
Categories
- Computer Questions 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
Find out the output:
#include
int x=9;
int main()
{
int x=7;
printf(“%d”,x);
return 0;
}Correct
Incorrect
-
Question 2 of 20
2. Question
If the given two strings are identical, then strcmp( ) function returns:
Correct
Incorrect
-
Question 3 of 20
3. Question
Select the correct output:
#include
int main()
{
int a[5]={2,3};
printf(“%d %d %d\n”,a[2],a[3],a[4]);
return 0;
}Correct
Incorrect
-
Question 4 of 20
4. Question
In the following program how long will the for loop get executed ?
#include
int main()
{
int i;
for(;scanf(“%d”,&i);printf(“%d\n”,i));
return 100;
}Correct
Incorrect
-
Question 5 of 20
5. Question
Find the correct output:
#include
int main()
{
int x=10,y=20;
if(!(!x) && x)
printf(“x=%d\n”,x);
else
printf(“y=%d\n”,y);
return 0;
}Correct
Incorrect
-
Question 6 of 20
6. Question
Find the correct output:
#include
int main()
{
int i=1;
switch(i)
{
printf(“hello\n”);
case 1:
printf(“hi\n”); break;
case 2:
printf(“bye\n”); break;
}
return 0;
}Correct
Incorrect
-
Question 7 of 20
7. Question
Which of the following is not an unary operator in C ?
Correct
Incorrect
-
Question 8 of 20
8. Question
Which of the following correctly shows the hierarchy of arithmetic operations in C?
Correct
Incorrect
-
Question 9 of 20
9. Question
Find the correct output:
#include
int main()
{
int a=10,b=22,c;
c=(a==10|| b>22);
printf(“c=%d\n”,c);
return 0;
}Correct
Incorrect
-
Question 10 of 20
10. Question
Find the correct output:
#include
int main()
{
char str[]=”coderz”;
char *s=str;
printf(“%s\n”,s++ +3);
return 0;
}Correct
Incorrect
-
Question 11 of 20
11. Question
Find the correct output:
#include
int main()
{
int arr[3][3]={1,2,3,4};
printf(“%d\n”,*(*(*(arr))));
return 0;
}Correct
Incorrect
-
Question 12 of 20
12. Question
Find the correct output:
#include
int main()
{
int a[5]={5,1,15,20,25};
int i,j,m;
i=++a[1];
j=a[1]++;
m=a[i++];
printf(“%d %d %d\n”,i,j,m);
return 0;
}Correct
Incorrect
-
Question 13 of 20
13. Question
Find the correct output:
#include
int main()
{
printf(2+”codathon”);
return 0;
}Correct
Incorrect
-
Question 14 of 20
14. Question
Find the correct output:
#include
int main()
{
printf(“programmers ” “hackers”);
return 0;
}Correct
Incorrect
-
Question 15 of 20
15. Question
Find the correct output:
#include
#include
int main()
{
char str[]=”hackers\0programmer\0”;
printf(“%s\n”,str);
return 0;
}Correct
Incorrect
-
Question 16 of 20
16. Question
Find out the output:
#include
int main()
{
union code
{
int a,b;
};
union code v;
v.a=8;
v.b=9;
printf(“%d”,v.a);
return 0;
}Correct
Incorrect
-
Question 17 of 20
17. Question
Find out the output:
#include
int main()
{
int i, *j;
i=3;
j=&i;
printf(“%d\n”,i**j*i+*j);
return 0;
}Correct
Incorrect
-
Question 18 of 20
18. Question
Find the output:
#include
int main()
{
int i=0;
for(;i<5;i++);
printf("%d\n",i);
return 0;
}Correct
Incorrect
-
Question 19 of 20
19. Question
Find the correct output:
#include
int fun();
int i;
int main()
{
while(i)
{
fun();
}
printf(“PROGRAMMERS \n”);
return 0;
}int fun()
{
printf(“HACKERS”);
return 0;
}Correct
Incorrect
-
Question 20 of 20
20. Question
The keyword used to transfer control from a function back to the calling function is:
Correct
Incorrect