0% found this document useful (0 votes)
36 views2 pages

Chapter 8 Half

The document discusses key concepts in C programming including compilers, linkers, errors, and the basic structure of C programs. It provides examples of C code and covers topics like preprocessing directives, header files, variables, data types, and language processors. Multiple choice and short answer questions are also included to test understanding of C fundamentals.

Uploaded by

sirarif113
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

Chapter 8 Half

The document discusses key concepts in C programming including compilers, linkers, errors, and the basic structure of C programs. It provides examples of C code and covers topics like preprocessing directives, header files, variables, data types, and language processors. Multiple choice and short answer questions are also included to test understanding of C fundamentals.

Uploaded by

sirarif113
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter # 8 Getting Started with C Time: 60 Minutes PART-II

Objective Marks: 10; Test-11

1. The extension of C source program is:


a. .h b. .c c. .obj d. .exe
2. The process of converting source code into object code is known as:
a. Compiling b. executing c. linking d. saving
3. C statement ends with:
a. Period b. comma c. colon d. semi colon
4. C – Language programs are divided into units called:
a. Section b. syntax c. function d. debug
5. .exe file is produced by the:
a. Linker b. loader c. compiler d. interpreter
6. The statements written by programmer are called:
a. Source code b. object code c. syntax d. debugging
7. Which of the following key is used to save a file?
a. F2 b. F3 c. F5 d. F9
8. Which of the following is used to denote preprocessor directives?
a. % b. $ c. # d. @
9. Which header file contains information about standard input/output functions?
a. Stdio.h b. conio.h c. string.h d. math.h
10. The name of header file is written between:
a. [ ] b. ( ) c. < > d. { >

Short Question 10 x 02 = 20

1. Describe the term ‘machine independence


2. Write four characteristics / advantages of C-language
3. Write two reasons why it would be preferable to write program in C.
4. What do you mean by case sensitive in C?
5. Why source code cannot be executed directly?
6. Distinguish between source code and object code.
7. What is the process of linking in C programs?
8. What is the role of linker in c language?
9. Differentiate between linking and loading.
10. What is meant by structured programming language?
11. What is #define directives? Write use of it.
12. What are preprocessor directives? Enlist different types.
13. Differentiate between preprocessor directives and header files.
14. Explain constant macro with example.

Long Question 03 x 08 = 24

1. What are errors? Types of errors discuss briefly, which one is difficult to locate?
2. What necessary steps are taken to prepare a C program for execution? Explain with Diagram
3. What is program and programming language? Discuss two main categories of programming languages.
4. What is program? Write any six characteristics of c-language.
Chapter # 8 Getting Started with C Time: 60 Minutes PART-II

Objective Marks: 10; Test-12

11. Void occupies how many bytes in memory:


a. Zero b. One c. Two d. Four
12. A program syntax error is detected by:
a. Linker b. compiler c. loader d. Debugger
13. The lowest level programming language is:
a. Java b. Assembly lang c. Pascal d. Debugger
14. Which of the following language requires no translator to execute the program?
a. C b. C++ c. Assembly Lang d. Machine Lang
15. Which of the following is not a low level language?
a. BASIC b. machine c. Assembly d. None
16. B was developed in the year:
a. 1969-70 b. 1965-75 c. 1972-88 d. 1989-1994
17. Which of the following key is used to load a program in memory to run?
a. Alt +F9 b. Ctrl +F9 c. Ctrl +S d. Alt +F5
18. The target code/output produced by the compiler is:
a. Object code b. source code c. library code d. linked code
19. The lowest level of programming language is:
a. Java b. Pascal c. Fortran d. Assembly lang
20. Which key combination is used to compile the program is:
a. Shift + F9 b. Ctrl + F9 c. Alt + F9 d. Alt + F4

Short Question 10 x 02 = 20

1. What is main ( ) function used in C program?


2. What do you mean by delimiters?
3. What is statement terminator?
4. Write short cut keys to compile and run C program?
5. What do you mean by bug and debugging?
6. What are different types of errors in C programming?
7. What is syntax error? Write down any two causes of syntax error.
8. What is runtime error? Write its causes.
9. Differentiate between logical and syntax error?
10. Define low level language.
11. What is machine language?
12. Why machine language does execute faster?
13. What are language processors? Enlist their names.
14. Differentiate between compiler and interpreter.

Long Question 03 x 08 = 24

1. Describe language processors / translators. Discuss different types of language processors.


2. How would you create, edit, compile, link and execute C program?
3. How many types of errors can occur in writing a C program?
4. Explain the basic structure of C-language program with example.

You might also like