Page 1 :
P. S. English Medium Tech. High School, Solapur, Std : 10th, , Subject: Computer, Lesson No- 3. Introduction to C Language (Answer Key), , Exercise, Q.1 Fill in the blank?, 1) C is a general purpose programming language developed by Dennis Ritchie at AT&T, Bell laboratories of USA in 1972., 2) The language C was developed to rewrite the UNIX operating system., 3) C program, also known as source code., 4) There are three types of statements in C., 5) Before you start writing a program in C language, you need to have a C compiler in, your computer., Q.2 State True or False, 1) C programming language developed by Dennis Ritchie. : True, 2) More than 50% of the code written for Windows 7 has been written in C Language. :, False, 3) The first character as identifier can start with a Number. : False, 4) No special character can be used in a variable name except underscore : True, 5) C program, also known as source code, is automatically saved with an extension ‘.c’ :, True, Q.3 Multiple choice Question, 1) C is middle level language., a. middle, b. Low, c. Simple d. None of these, 2) C language is case sensitive language., a. Upper case, b. Lower Case, c. Case sensitive d. None of these, 3) The first letter in the variable name should be an alphabet., a. Digit, b. alphabet, c. alphanumeric d. None of these, 4) Today, most of the programs that run under UNIX are written in C language., a. C language, b. B language, c. Program, d. None of these, 5) Full form of ANSI American National Standard Institute, a. American National Standard Institute b. American National Studio Institute, c. American Nation Standard Institute, d. America Nation Standard, Institute, Q.4 Answer in one word or sentence?, 1) Name of the C language developer?, Ans: Dennis Ritchie
Page 2 :
2) What is extension of C programming language?, Ans: Extension – ‘.c’, 3) What is full form of BCPL?, Ans: Basic Combined Programming Language, Q.5 Answer the following?, 1) Write some features of c language., Ans:, FEATURE OF C LANGUAGE, 1. C Language is quite popular as it is reliable, simple yet powerful language. It has been used, to create most of the software application products for the last 15 years. The code written, in C Language can be compiled on other computer also., 2. C Language is middle level language as it combines the capability of an assembly language, with the features of high level language., 3. More than 70% of the code written for Windows 7 has been written in C Language., 4. Programs written in C Language are efficient and fast due to its variety of data types and, powerful operators., 5. C Language is highly portable language. This means that C programs written for one, computer can be run on another with little or no modification., 6. Important feature of C Language is the ability to extend itself. It means that we can add our, own function to the existing C library., , 2) Explain C compiler., Ans: THE C COMPILER, Before you start writing a program in C Language, you need to have a C compiler in your, computer, which translate the program into machine language. It has a built – in, preprocessor, which processes the source code it is passed to the compiler for compilation., C program code, also known as source code, is automatically saved with an extension ‘.c’, After saving the program, inbuilt files are included to manipulate the function contained in, a program. After that it is compiled and converted to an object file with an extension ‘.obj’, and then only library and inbuilt object files are linked together to form an executable file, with extension ‘.exe’, , 3) What is Identifier? Explain Rule., Ans: IDENTIFIRES, Identifiers are the names given to C entities such as variable, function, and structures, etc. These are the user defined names for example, int add; int num;, C identifiers follow some rules that are defined below:, 1. The name of an identifier can include alphabets, digits, underscore (_), and the dollar sign, ($). The first character must be an alphabets or an underscore., 2. An identifiers should not contain any space or punctuation marks