Getting Started With C | Short Questions and Answers

 

ics part ii getting started with c - short questions and answers


Getting Started With C | Short Questions and Answers. This post about ICS Part-II Computer Science Chapter No.8: Getting Started with C. 


The following questions and answers (objective) is very important for 2nd Year, Computer Science, for the final examinations of all Boards of Punjab as well as Pakistan:


Chapter No.8: Getting Started With C

Short Questions and Answers - 1

Q.1: What is a computer program.
Answer:
A well-defined set of instructions given to the computer is called a computer program. A computer program is written in a programming language.

Q.2: Describe the history of the C language.
Answer:
The C programming language was developed by Dennis Ritchie in 1972 in 1972 at AT & T Bell Laboratories. It was derived from an earlier programming language named B. The B was developed by Ken Thompson in 1969-70 and provided the basis for the development of C.

Q.3: What is the specialty of C language?
Answer:
The C was originally designed to write system programs under UNIX operating system. But over the years its power and flexibility have made it popular in the industry for a wide range of applications.

Q.4: What is the name of the earlier version of C?
Answer:
The earlier version of C was known as K&R (Kernighan and Ritchie) C. As the language further developed, the ANSI (American National Standard Institute) developed a standard version of the language known as ANSI C.

Q.5: What is an IDE?
Answer:
Turbo C++ (TC) provides a complete IDE (Integrated Development Environment) to create, edit, and save programs is called TC editor. It also provides a powerful debugger that helps in detecting and removing errors in the program.

Q.6: How to create a new C program in Turbo C++ IDE?
Answer:
To write the new C program, open the edit window of the Turbo C++ IDE. This can be done by selecting File | New option from the menu bar. A window appears on the screen and the cursor inside the window represents the starting point to write a program.

Q.7: How to save a C Program?
Answer:
To save a C program can be done by selecting File|Save command from the menu bar or pressing the F2 key, a dialogue box will appear. At the top of this dialogue box, there is a text box with the caption Save File As. Type the name of the file in it and press Enter key.

Q.8: What is the default name of C++ program and how to change the name of C file and its path?
Answer:
The Turbo C++ (TC) assigns a default name NONAME00.cpp to the file. To save the file in a specific folder/location with a different file name, one has to specify the absolute path.

Q.9: Why C program is saved with .c extension?
Answer:
When a C program is saved with .c extension, the Turbo C++ compiler restricts it to only use standard features of C.

Q.10: What is a program compiling?
Answer:
Program compiling is a process of translation of the source program into an object program with .obj extension. To invoke compiling, select Compile|Compile from the menu bar or press Alt+F9 key. If there is no error in the source code, the program will be translated to the object program successfully otherwise, the compiler will report error in the program.

Q.11: Differentiate between source code and object code?
Answer:
The program is written in any high-level programming language, such as C, is called source code.
The compiler produces an object program from the source program is called object code.

Q.12: Define the linking process?
Answer:
Linking is the process in which the object the file produced by the compiler is linked to many other library files by the linker and produces an executable file with .exe extension.

Q.13: What is the linker? And how to invoke it?
Answer:
The linker is a program that combines the object program with additional object files that may be needed for the program to execute and save the final machine language program as an executable file on disk. In Turbo C++, the linker can be invoked by selecting Compile | Link from the menu bar.

Q.14: What do know about Loader?
Answer:
The loader is a program that places an executable file in memory. In Turbo C++, this is done by selecting Run | Run from the menu bar or pressing Ctrl + F9 key.

Q.15: How to see the program’s output screen?
Answer:
To see the program’s output, select Windows | User screen or press Alt + F5 key.

Q.16: Define unstructured programming language?
Answer:
In unstructured programming languages, the entire logic of the program is implemented in a single module (function), which causes the program error-prone, difficult to understand, modify, and debug.

Q.17: Define structured programming language?
Answer:
In structured programming languages, the entire logic of the program is divided into a number of smaller modules, where each module (a piece of code) implements a different functionality.

Q.18: What is preprocessor directives?
Answer:
Preprocessor directives are commands that give instructions to the C preprocessor. The preprocessor is a program that modifies the C program (source program) prior to its compilation. A preprocessor directive always begins with the symbol (#).
For example:   #include, #define


Getting Stated With C - Short Questions and Answers Set-II


Getting Stated With C - MCQs Online Quiz


NOTE: 

The remaining short questions and answers of Chapter No.8 (Getting Started With C) will be published soon Insha Allah.


8 Comments

Your feedback is highly appreciated and will help us to improve. So, please give your good suggestions.

Post a Comment

Your feedback is highly appreciated and will help us to improve. So, please give your good suggestions.

Previous Post Next Post