
C Programming Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
JEEVAN KUMAR
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare an integer variable in C?
int a;
integer a;
var a;
int a()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid data type in C?
float
double
real
char
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
#include <stdio.h>
int main() {
printf("%d", 5 + 3 * 2);
return 0; }
16
11
8
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the value at the address stored in a pointer?
&
*
->
.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int data type on a 32-bit system?
2 bytes
4 bytes
8 bytes
Depends on the compiler
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to declare a function in C?
void myFunction() {}
function myFunction() {}
myFunction void() {}
void myFunction {}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the break statement do in a loop?
Terminates the program
Exits the loop immediately
Skips the current iteration
Restarts the loop
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Java Programming Fundamentals

Quiz
•
Professional Development
25 questions
User input

Quiz
•
Professional Development
25 questions
Integrative Programming - Long Quiz (Midterm)

Quiz
•
Professional Development
26 questions
Data Structures and Memory Management

Quiz
•
Professional Development
25 questions
เขียนโปรแกรมเชิงวัตถุ

Quiz
•
Professional Development
30 questions
operation&mah

Quiz
•
7th Grade - Professio...
30 questions
C Programming Quiz

Quiz
•
Professional Development
30 questions
Python. Турнир 1

Quiz
•
Professional Development
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