
Coding Club Activity 1
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
Ramanjaneyulu Seggem
Used 3+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following C program
#include<stdio.h>
int main () {
int shifty;
shifty = 0273;
shifty = shifty >>4;
shifty = shifty <<6;
printf("the value of shifty is %o",shifty);
return 0; }
the value of shifty is 5447
the value of shifty is 0273
the value of shifty is 1300
the value of shifty is 2600
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given that x=-8.5, j=3.0, n=2.0, m=-2.0
the value of - - x + j == x>n> = m is:
0
-1
3
2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
int i = 7;
printf("%d", (++i)++);
return 0;}
What is the output of the above program?
7
8
9
Compile time error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume that the size of an integer is 4 bytes, predict the output of following program.
#include <stdio.h>
int main() {
int i = 14;
int j = sizeof(i++);
printf("%d %d", i, j);
return 0; }
15 4
14 4
0 4
Compiler error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main() {
int i;
if(printf("0"))
i = 3;
else i = 5;
printf("%d", i);
return 0; }
Predict the output of above program?
3
5
05
03
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int main() {
int a = 5;
switch(a) {
default: a = 4;
case 6: a--;
case 5: a = a+1;
case 1: a = a-1; }
printf("%d", a);
return 0; }
What is the value of a?
6
5
3
4
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
"GcetQuiz" displayed howmany times for the given code?
int main() {
int i = -5;
while (i <= 5) {
if (i >= 0) break;
else { i++; continue; }
printf("GcetQuiz");
}
return 0; }
10 times
0 times
5 times
4 times
Infinite times
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
27 questions
EF1-T4 Quizz Admon de Redes
Quiz
•
University
35 questions
Algoritmos I
Quiz
•
University
30 questions
PYTHON PROGRAMMING
Quiz
•
University
31 questions
electrical set b
Quiz
•
University
35 questions
AutoCAD Certified User Practice Quiz 2
Quiz
•
11th Grade - University
25 questions
Diagnostik Lanjut 2
Quiz
•
University
25 questions
W1 Quiz Basic Concept of Electrical Machine
Quiz
•
University
27 questions
Por una empanada y un café
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
