0% found this document useful (0 votes)
189 views5 pages

C Programming For Engineers IMPORTANT QUESTIONS

This document contains questions related to C programming concepts across multiple units. It includes questions about the structure of C programs, data types, operators, functions, algorithms, control flow statements, and more. It also includes 10 multiple choice questions related to C programming fundamentals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
189 views5 pages

C Programming For Engineers IMPORTANT QUESTIONS

This document contains questions related to C programming concepts across multiple units. It includes questions about the structure of C programs, data types, operators, functions, algorithms, control flow statements, and more. It also includes 10 multiple choice questions related to C programming fundamentals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

C-Programming for Engineers IMPORTANT QUESTIONS from 2.

1/2 units

1. A)Explain the Structure of C program, with example 2.5 M


B) Define assembler, Compiler, interpreter, loader and linker. 2.5 M
2. A)Write an algorithm and Flow chart to print the prime numbers up to a given
number. 2.5 M
B) Explain syntax and logical errors in compilation of a C program with example.
2.5M
3. A)Difference between While and Do-While with Example Program. 2.5M
B) Explain the Data Types with an example 2.5M
4 (A) Explain Conditional Branching (Control ) statements with examples 2.5M
B) What is an expression, explain the evaluation of expressions with example. 2.5 M
5 A) What is operator and operands ? Explain arithmetic and relational operators
with example. 2.5 M
B) Explain Conditional (Ternary ), Special operators with example. 2.5M
6 A) What is the function, explain types of functions. 2.5 M
B) What are the advantages of the function? 2.5 M

1. A)What is an algorithm and Explain the Properties of the Algorithm. 2.5 M


B) What is the data type and Explain primary data types in C. 2.5 M
2. A)Write a program and Flow chart for finding Roots of Quadratic Equations.2.5 M
B) Explain about storage classes with differences among them. 2.5M

3. (A) Explain Creating, Compiling, and Executing a C- Programming 2.5 M

(B) Explain Loop Control Statements with examples 2.5 M

4. (A) Explain Jump control statements (Break , Continue, Go to ) with examples2.5 M


(B) Explain type conversions, With the example 2.5M
5. (A) What is operator and operands ? Explain Logical and Bit wise operators,

with examples. 2.5 M


B) What is Switch Case? Explain with example program 2.5M
6. A) What is the function, explain types of functions. 2.5 M
B) What is the function, What are the advantages of the function? 2.5 M

MCQ QUESTIONS.

1. Which one of the following is a loop construct that will always be executed once? ( )
a) for b) while c) do while d) switch
2. _________ is a step-by-step method for solving a problem. ( )
a) Algorithm b) flowchart c) compiler d) pseudo-code
3. Constants are declared in ___________ section of C ( )
a) Documentation section b) definition section
c) main section d) link section
4. ALU Stands for ( )
a) Arithmetic logic unit b Arithmetic lower unit
c) Add logic unit d None
5. ------- Unit is used to store information ( )
a) Input b) output c) control d) Memory
6. What is the output of Compiler? ()
a) Executable code .
b) Source code
c) Object code
d) All of the above
7. __________can be defined as repeating the same process multiple times until a specific condition
is satisfied. ( )
a) Looping b) switch case c) pseudo-code d) none of these
8. Which function is used to show output ? ( )
a) Printf()
b) Print()
c) Show
d) Scanf
9. Which of the following is not a role of compiler? ( )
a) Linking b) Code optimization c) lexical analysis d Syntax analysis
b) write b) read c) append d) close
10. If the value of the variables a and b are 100 and 150 respectively. What will be the value of the
relational expression a>=b. ( )
a) 50 b) 1 c) 0 d) 20
1. __________ is the father of C language?
2. All keywords in C are in ______________ .
3. #include<stdio.h>is a ______________ .
4. The C-preprocessors are specified with ___ symbol.
5. Edit is the example of _______________?
6. __________ is the sizeof(char) in a 32-bit C compiler?
7. scanf() is a predefined function in _________ header file.
8. Assembly language is written with the help of ___________ .
9. The _________ statement is used to transfer the control to the end of statement block in a loop
10. __________ variable uses the same name in whole program.

Choose the correct word key


1. C
2. A
3. B
4. A
5. D
6. C
7. A
8. A
9. A
10. C

Fill in the blanks key


1. Dennis Ritchie
2. LowerCase letters
3. Preprocessor directive
4. #
5. Editor
6. 1 byte
7. stdio.h
8. mnemonics.
9. break();
10. global
1. A name having a few letters, numbers and special character _(underscore) is called ( )
a)keywords b)reserved keywords c)tokens d)identifiers

2. The words if, else, auto, float etc. hasve predefined meaning and users cannot use them as
variables. These words are called ( )
a)constant b)identifier c)data types d)keywords
3. Which operators are used to compare the values of operands to produce logical value in C
language? ( )
a) Logical operator
b) Relational operator
c) Assignment operator
d) None of the above

4. What is/are the number of operand/operands needed to unary operator logical not(!)? ( )
a) 4 b)3 c) 2 d) 1
5. The operator "&" is used for ( )
a) Bitwise AND b)Bitwise OR c) Logical AND d) Logical OR
6. The size of a character variable in C is ( )
a)8 bytes b) 4 bytes c)2 bytes d) 1 byte
7. Maximum value of an unsigned integer is ( )
a)65535 b) 32767 c)-32767 d) -65535
8. The && and || operators ( )
a) compare two numeric values
b) combine two numeric valuesshort hand operator, &
c) compare two boolean values
d) none of these
9. Which of the following is used for conversion of C programs to machine language ? ( )
a) Operating system b) An editor c) A compiler d) An interpreter
10.What is the value of b? ( )
Int b;
b= printf(“Hello”);
a) 5 b) 6 c) 7 d) 10
1. Array is ______ datatype in C Programming language.
2. A declaration float a,b; occupies ______of memory ?
3. Any C program must contain _________function.
4. __________should be written in the program to get newline on the screen?
5. _________ have highest Precedence?
6. The format string to accept a string is___________
7. . The operator "&" is used for _________________
8. Which operators are used to compare the values of operands to produce
logical value in C language? _______________
9. The format specifier for float is ___________
a) %c b) %f c) %d d) %lu
10. The conversion of small datatype into large datatype is called____________.

Choose the correct word key:


1. D
2. D
3. B
4. D
5. A
6. D
7. A
8. C
9. C
10. A

Fill in the blanks key


1. Derived
2. 8 bytes
3. main()
4. printf(“\n”);
5. ()
6. %s
7. Bitwise AND
8. Assignment operator
9. %f
10. Type conversion

You might also like