
C Programming Quiz
Authored by Bader Saad
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
51 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the common file extension for C language files?
.cpp
.c
.java
.py
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a variable in C?
var x = 10;
int x = 10;
x = 10;
define x = 10;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used to indicate a single-line comment in C?
//
/*
–
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of printf(“%d”, 5/2); in C?
2.5
2
3
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is required to use the printf() function?
math.h
string.h
stdio.h
stdlib.h
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of the int data type in C (on most modern systems)?
1 byte
2 bytes
4 bytes
8 bytes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name in C?
_variable
variable1
1variable
variable_name
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
53 questions
System Analysis and Design (Prelim Exam)
Quiz
•
University
53 questions
Modules 1-2
Quiz
•
University
50 questions
Test 4
Quiz
•
University
50 questions
ict 1-50
Quiz
•
University
50 questions
PENGUKURAN DAN PENYAMBUNGAN FIBER OPTIK
Quiz
•
University
50 questions
ICT 151-200
Quiz
•
University
50 questions
kuis Jaringan Internet
Quiz
•
9th Grade - University
50 questions
CS8691 - Artifical Intelligence - IAT #1
Quiz
•
University
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade