
C Programming Quiz

Quiz
•
Computers
•
University
•
Hard
Bader Saad
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Quiz Python

Quiz
•
University
50 questions
C Language

Quiz
•
University
50 questions
MCQ for Coding Carnival

Quiz
•
University
50 questions
Visual basic Quiz PGDCA

Quiz
•
University
50 questions
Test 1 - SDT 2113

Quiz
•
University
50 questions
Orientation Quiz

Quiz
•
University - Professi...
50 questions
Quiz

Quiz
•
University
50 questions
C Programming Quiz

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade