Unit1 - Subjective Questions

CSE101 • Practice Questions with Detailed Answers

1

Define the C Character Set. Classify the different characters allowed in C.

2

Distinguish between Identifiers and Keywords in C. List the rules for naming identifiers.

3

Explain the fundamental Data Types in C with their storage size and format specifiers.

4

What are Constants in C? Describe the different types of constants with examples.

5

Define a Variable. Explain the syntax for declaring and initializing variables with an example.

6

Explain Arithmetic Operators in C. Discuss the behavior of the Modulo operator (\%) and Integer Division.

7

Differentiate between Pre-increment () and Post-increment () operators with an example.

8

List the Relational Operators in C. What is the return type of a relational expression?

9

Explain the Logical Operators (AND, OR, NOT) with their Truth Tables. What is short-circuit evaluation?

10

Describe the Conditional Operator (Ternary Operator). Provide the syntax and a code example to find the maximum of two numbers.

11

Explain the Bitwise AND (&), Bitwise OR (|), and Bitwise XOR (^) operators with a numerical example using and .

12

What are Shift Operators in C? Explain Left Shift and Right Shift with examples. How do they relate to multiplication and division?

13

What are Assignment and Compound Assignment operators? List five compound assignment operators and expand them.

14

Compare Implicit Type Conversion (Coercion) and Explicit Type Casting in C expressions.

15

Explain the concept of Operator Precedence and Associativity. Why are they needed?

16

Evaluate the following expression step-by-step, assuming int a=10, b=5, c=2;.

17

What is the sizeof operator? Is it a function or an operator? Explain with an example.

18

Distinguish between the Assignment Operator (=) and the Equality Operator (==).

19

Explain the concept of L-value and R-value in the context of C expressions.

20

Evaluate the result of x in the following code snippet and explain the logic:
c
int x;
x = 4 + 2 % -8;