PC Unit-1 Question Bank
PC Unit-1 Question Bank
(Or)
6) What are the different types of errors one can encounter during the program
execution?
i) Preprocessor
ii) Compiler
i) Linker.
8) Define Algorithm? What are the characteristics that any algorithm should satisfy?
10) Write an algorithm to check whether the given number is even or odd.
14) What is a flow chart? Draw a flowchart for finding maximum of given three integers?
16) Draw a flowchart for finding the sum of ‘n’ numbers starting from 1?
19) Draw a flowchart to find maximum and minimum of the given three input numbers.
20) Given the 3 sides of triangle a, b and c as input, Draw a flowchart to test whether it is
isosceles, equilateral or not. It should also validate whether the input forms a triangle or not.
(Ex. 10, 3, 3 is not a triangle)
21) What are the bitwise operators in C? Explain the same with examples.
22) What is an identifier? What are the naming rules for identifiers in C?
examples?
27)What is the implicit type conversion hierarchy that is applied while evaluating
expressions?
28) List and give examples for different bitwise operators available in ‘C’?
29) List the basic data types, their sizes and range of values supported by ‘C’
language?
function?
31) Explain the only ternary operator available in ‘C’ with illustrative example?
i) count and int ii) 526 and “526” iii) 5 and ‘5’ iv) if and ++ v) amount and “amount”