
just a trial

Quiz
•
Computers
•
University
•
Medium
samrudhi pawar
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q1. What will be the output of the following code?
#include <stdio.h>
int main() {
int x = 5;
printf("%d %d %d", x, x++, ++x);
return 0;
}
557
767
Undefined behavior
567
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q2. Which of the following is NOT a valid variable name in C?
a) value
b) total_marks
c) 2ndValue
d) value2
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The keyword used to define a constant in C is _________.
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The ASCII value of character 'A' is _________.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Observe the following code and choose the correct output:
#include <stdio.h>
int main() {
char str[] = "HELLO";
printf("%c", str[1]);
return 0;
}
H
E
L
O
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Assertion & Reason
Assertion (A): The break statement can be used to exit from a loop.
Reason (R): The continue statement terminates the entire program.
a) A and R are true, and R is the correct explanation of A.
b) A and R are true, but R is not the correct explanation of A.
c) A is true, R is false.
d) A is false, R is true.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q8. In C, an array index always starts from 1.
true
false
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
printf is used for output and scanf is used for input.
true
false
Similar Resources on Wayground
8 questions
Unit 2 : Operators

Quiz
•
University
10 questions
C basic

Quiz
•
University
10 questions
C- Operators

Quiz
•
University
10 questions
Epics-2k24

Quiz
•
University
7 questions
Union in c 10

Quiz
•
University
10 questions
C - Pointers

Quiz
•
University
10 questions
Basics Of C Programming

Quiz
•
University
9 questions
c language quiz

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