You are on page 1of 3

NAME HOSSAIM MD IMRAN

DEPARTMENT Transportation And Civil Engineering


Class Bachelor Of Science
Batch 2023
Student ID 2333130211
Subject Programming C
HOMEWORK
1‍. When compile a C program, the comments will.

. be compiled and appear in the object code .A.

B. be compiled, but not appear in the object code.

C. not be compiled and not appear in the object code.

D. not be compiled, but appear in the object code

Ans: B

2. ‌A file written in C language.

‌A. can be executed immediately.

B. is a source program.

C. can be executed after compilation.

D. can be executed after compilation and interpretation.

Ans: C

3. Many programming languages borrow heavily form C language,


including C++, C#.

A. Yes

B. No

Ans: A

4. ‍One of C’s advantages is efficiency. Because C was intended for


applications where assembly language had traditionally been used, it was
crucial that C programs could run quickly and in limited amounts of
memory.

A. Yes

B. No
Ans: A

5. C’s weaknesses arise from the same source as many of its strengths: C’s
closeness to the machine.

A. Yes

B. No

Ans: A

二、Programming operating
1. Setup Codeblocks or other IDE tools in our computer and output “Hello
world”.

Answer:
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}

You might also like