
C Programming Unit Test II

Quiz
•
Computers
•
University
•
Easy
Ankita Luke
Used 7+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the C character set?
The C character set includes letters, digits, punctuation marks, and whitespace.
Excludes punctuation marks and whitespace.
Contains only uppercase letters.
Only includes letters and digits.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Define identifiers and keywords in C.
Identifiers are names for variables/functions; keywords are reserved words with special meaning.
Identifiers and keywords are the same and can be used interchangeably.
Identifiers are only used for functions; keywords are user-defined names.
Keywords can be changed by the user; identifiers cannot be reserved.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List the basic data types available in C.
int, float, double, char, void
string
boolean
array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are symbolic constants in C?
Symbolic constants are variables that can change during program execution.
Symbolic constants are fixed values defined using #define or const in C.
Symbolic constants are values that can be modified at runtime.
Symbolic constants are only used in C++ and not in C.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the structure of a basic C program.
C programs do not require a return statement at the end.
A basic C program structure includes preprocessor directives, the main function, variable declarations, statements, and a return statement.
A basic C program consists only of comments and whitespace.
The main function is optional in a C program structure.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write and execute your first C program?
Use a text editor to write the program without compiling.
Write a C program in Python and run it directly.
Compile the C program using Java and execute it.
Write a simple C program, compile it with GCC, and run the executable.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the #include preprocessor directive?
To include the contents of a file or library in the source code.
To define a function in the source code.
To execute a command during runtime.
To create a new variable in the program.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
ISTE TECHNICAL

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

Quiz
•
University
20 questions
PARC Linux Basic Part 2

Quiz
•
University
20 questions
INTRO TO IT (ONLINE QUIZ)

Quiz
•
University
18 questions
MS-Word Document

Quiz
•
University
20 questions
C PROGRAMMING LANGUAGE

Quiz
•
University
20 questions
File system in Windows 7

Quiz
•
9th Grade - University
20 questions
Sử dụng Word (51 - 70)

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University