
C Programming Quiz

Quiz
•
Information Technology (IT)
•
University
•
Hard
Zemmary Batucan
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare an integer variable in C?
int var;
integer var;
var int;
int_var;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the #include
It includes the standard I/O library
It defines standard input-output functions
It starts the main function
It declares variables
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid comment in C?
// This is a comment
/* This is a comment */
Both a and c
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, the main() function:
Must always return an integer
It is optional
Can return any data type
Is executed at the end of the program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly declares a constant in C?
#define PI 3.14
const PI = 3.14
constant PI = 3.14
Both a) and b)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax to print "Hello, World!" in C is:
printf("Hello, World!");
print("Hello, World!");
cout << "Hello, World!";
echo "Hello, World!";
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file must be included to use the printf() and scanf() functions?
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
C Language Quiz

Quiz
•
University
10 questions
Contadores y Acumuladores

Quiz
•
University
5 questions
C# quiz

Quiz
•
12th Grade - University
15 questions
Python quiz

Quiz
•
University
12 questions
data abstraction

Quiz
•
University
8 questions
Lab 4

Quiz
•
University
15 questions
CMDP2063 Unix and C Programming (Revision)

Quiz
•
University
15 questions
Codean - JavaScript Variablel & Function

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 Information Technology (IT)
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