0% found this document useful (0 votes)
11 views1 page

C Programming Concepts and Examples

The document consists of a series of questions related to programming concepts in C, divided into three sections. Section A covers definitions of key terms, data types, and keywords; Section B focuses on logic for finding the largest number, loop differences, and array handling; Section C evaluates knowledge on variable scope and arithmetic operators. Each question is allocated specific marks, totaling 100 marks for the entire document.

Uploaded by

kootswelew
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

C Programming Concepts and Examples

The document consists of a series of questions related to programming concepts in C, divided into three sections. Section A covers definitions of key terms, data types, and keywords; Section B focuses on logic for finding the largest number, loop differences, and array handling; Section C evaluates knowledge on variable scope and arithmetic operators. Each question is allocated specific marks, totaling 100 marks for the entire document.

Uploaded by

kootswelew
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Section A – (30 Marks)

Q1. (10 Marks)


Define the following with examples:
a) Compiler
b) Variable
c) Data type
d) Function
e) File

Q2. (10 Marks)


Explain the difference between int, float, char, and double with examples.

Q3. (10 Marks)


What are keywords and identifiers in C? Give two examples of each.

Section B – (40 Marks)

Q4. (15 Marks)


Write the logic (not full code) to find the largest of three numbers using if-else.

Q5. (10 Marks)


Explain the difference between while, do-while, and for loops with one real-life example.

Q6. (15 Marks)


How are arrays declared and accessed in C? What are their advantages?

Section C – Evaluating (30 Marks)

Q7. (15 Marks)


Distinguish between local and global variables in C.

Q8. (15 Marks)


Describe arithmetic operators in C with examples

You might also like