
IEEE VEC SB
Authored by Ruthvik Vr
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Question 1: What is the output of the following code?
c
#include <stdio.h>
int main() {
int x = 5;
int y = x++;
printf("%d", y);
return 0;
}
A) 5
B) 6
C) 7
D)8
Answer explanation
a
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Question 2: What will be the value of 'y' after this code is executed?
c
#include <stdio.h>
int main() {
int x = 3;
int y = x++ + ++x;
printf("%d", y);
return 0;
}
A) 6
B) 7
C) 8
D) 10
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Question 3: What is the output of the following code?
c
#include <stdio.h>
int main() {
int x = 5;
printf("%d", x++);
return 0;
}
A) 4
B) 5
C) 7
D) 9
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Question 4: What is the output of the following code?
c
#include <stdio.h>
int main() {
int x = 5;
printf("%d", ++x);
return 0;
}
A) 5
B)6
C) 7
D) 111
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Question 5: What is the size of the character array "str" in bytes in the following code?
c
#include <stdio.h>
int main() {
char str[] = "Hello, World!";
printf("%d", sizeof(str));
return 0;
}
A) 12
B) 14
C) 13
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Question 6: What is the value of 'x' after this code is executed?
c
#include <stdio.h>
int main() {
int x = 5;
x *= x + 1;
printf("%d", x);
return 0;
}
A) 25
B) 30
C) 35
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Question 7: What is the value of 'y' after this code is executed?
c
#include <stdio.h>
int main() {
int x = 10;
int y = x > 5 ? x++ : x--;
printf("%d", y);
return 0;
}
V
A) 10
B) 11
C) 9
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
25 questions
Algorithms are not magic - AQA A Level Computer Science
Quiz
•
8th Grade - University
25 questions
Aptitude Competition(FY)
Quiz
•
University
31 questions
PRANATA KOMPUTER
Quiz
•
University
25 questions
Ulangan Harian XII AIJ TKJ
Quiz
•
University
25 questions
Atividade sobre Modelos de Processo de Software
Quiz
•
University
25 questions
SDN & VMWare
Quiz
•
University
25 questions
Quiz Bootstrap (Fullstack Praktikum)
Quiz
•
University
25 questions
UAS - Kecerdasan Komputasional
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University