C Language Exercise Class – Day 26

01 (Common Mistake)

C Language Exercise Class - Day 26

The basic unit of a C program is a function

(True/False)

C Language Exercise Class - Day 26

Answer: True

Explanation: The basic unit of a C program is a function. C is a structured programming language, and a C program consists of one or more functions. Every C program must include the main() function as the entry point, and other functions are organized through calls to establish logic.

Statements or expressions are components of functions, not structural units of the program. Pure C does not have the concept of classes; functions are the core of C.

02

C Language Exercise Class - Day 26

A C program can consist of one or more functions

(True/False)

C Language Exercise Class - Day 26

Answer: True

Explanation: N/A

03

C Language Exercise Class - Day 26

C language can be recognized and executed by the computer without compilation

(True/False)

C Language Exercise Class - Day 26

Answer: False

Explanation: C language must be compiled into machine language that the computer can recognize.

04

C Language Exercise Class - Day 26

The main() function must be placed before other functions

(True/False)

C Language Exercise Class - Day 26

Answer: False

Explanation: N/A

05

C Language Exercise Class - Day 26

Every C program must have a main() function

(True/False)

C Language Exercise Class - Day 26

Answer: True

Explanation: N/A

06

C Language Exercise Class - Day 26

The position of the main() function in a C program is fixed

(True/False)

C Language Exercise Class - Day 26

Answer: False

Explanation: N/A

07

C Language Exercise Class - Day 26

The main() function in a C program must be at the beginning of the program.

(True/False)

C Language Exercise Class - Day 26

Answer: False

Explanation: N/A

08

C Language Exercise Class - Day 26

C language does not check syntax during compilation

(True/False)

C Language Exercise Class - Day 26

Answer: False

Explanation: C language compilation checks syntax.

09

C Language Exercise Class - Day 26

Comments in a C program can appear anywhere appropriate in the program

(True/False)

C Language Exercise Class - Day 26

Answer: True

Explanation: C language comments generally have two forms: single-line comments and multi-line comments.

10

C Language Exercise Class - Day 26

Multiple statements can be written in one line in a C program

(True/False)

C Language Exercise Class - Day 26

Answer: True

Explanation: N/A

Leave a Comment