
IEEE VEC SB

Quiz
•
Computers
•
University
•
Hard
Ruthvik Vr
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
Quiz revisão linguagem C

Quiz
•
University
25 questions
ppsc string questions

Quiz
•
University
25 questions
JAVA WEEK 7-12

Quiz
•
University
31 questions
C++ Basics

Quiz
•
University
30 questions
Aadhya-Quiz-C-Programming

Quiz
•
University
25 questions
C Programing

Quiz
•
University
25 questions
Inter Class quizIT_23_JAN_2024

Quiz
•
University
25 questions
Final Exam Revision (Trial)

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University