C Programming Unit Test II

C Programming Unit Test II

University

23 Qs

quiz-placeholder

Similar activities

Test PKS 1 - Modul 2

Test PKS 1 - Modul 2

University

20 Qs

3D Objects - Terms & Transfomations

3D Objects - Terms & Transfomations

6th Grade - Professional Development

20 Qs

4-2 final QUIZ in ELEC4

4-2 final QUIZ in ELEC4

University

20 Qs

Digital and Analog transmission

Digital and Analog transmission

University

20 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Quiz Harian Gdevelop MPK

Quiz Harian Gdevelop MPK

University

20 Qs

Kuis Pemrograman Dasar

Kuis Pemrograman Dasar

University

20 Qs

Algoritma Pemrograman

Algoritma Pemrograman

University

20 Qs

C Programming Unit Test II

C Programming Unit Test II

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Ankita Luke

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?