
C Programming Quiz

Quiz
•
Computers
•
University
•
Medium
SImranjeet Kaur
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Data Structure

Quiz
•
University
20 questions
РЭУ тест по Python

Quiz
•
University
30 questions
UTS SO A1

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
20 questions
C Programming Assessment-1

Quiz
•
University
25 questions
Compro. Final 1/64 part1

Quiz
•
University
20 questions
Quiz 1_DSA

Quiz
•
University
20 questions
ISTE TECHNICAL

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University