
C Programming Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
SImranjeet Kaur
Used 5+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to include a header file in C?
#include "header.h"
#include
#include header.h
Both a and b
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct file extension for a C program?
.cpp
.java
.c
.py
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? printf("Hello, World!");
Hello, World!
hello, world!
Compile-time error
Runtime error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to print output to the screen in C?
cin
printf
cout
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default return type of the main() function in C?
void
int
float
char
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct variable declaration in C?
int number;
float 1stnum;
char *;
double& num;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of the int data type in C (on most platforms)?
2 bytes
4 bytes
8 bytes
Depends on the compiler
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
20 questions
Computación 1ro y 2do básico
Quiz
•
1st Grade - University
20 questions
C Quest 2.0
Quiz
•
University
20 questions
Câu hỏi về máy tính
Quiz
•
8th Grade - University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
20 questions
Social Issues and Professional Practices Midterm Exam
Quiz
•
University
20 questions
Technical Quiz R1
Quiz
•
University
20 questions
Infrastructure (Network)
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
