
Beyond the classroom

Quiz
•
Computers
•
University
•
Medium
Prabhakar Mishra
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
#include <stdio.h>
int main() {
int x = 10;
int ptr = &x;
printf("%d", ptr);
return 0;
}
10
Garbage Value
Error
Depends on the compiler
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main() {
int x = 5;
if (x = 5) printf("Hello");
else printf("World");
return 0;
}
Hello
World
Compile-time error
Runtime error
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
struct Example {
char c;
int i;
double d;
};
9 bytes
10 bytes
12 bytes
13 bytes
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
#include <stdio.h>
int main() {
printf("%d", sizeof(float));
return 0;
}
2
4
8
Depends on the system
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Explain the significance of #include <stdlib.h> in a C program.
It includes standard input/output functions
It includes functions for dynamic memory allocation
It includes functions for string manipulation
It includes functions for mathematical operations
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the void keyword in C?
To specify that a function takes no arguments
To specify that a function returns no value
To declare a pointer
To indicate an empty statement
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is not a valid C keyword?
switch
default
case
function
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
c language quiz

Quiz
•
University
15 questions
CODE ZENITH

Quiz
•
University
10 questions
C- Operators

Quiz
•
University
10 questions
C basic

Quiz
•
University
10 questions
C - Pointers

Quiz
•
University
15 questions
Coding club Summit Online Quiz

Quiz
•
University
10 questions
Basics Of C Programming

Quiz
•
University
8 questions
Unit 2 : Operators

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University