0% found this document useful (0 votes)
8 views2 pages

IT232 C Programming Model Question

The document outlines a model question paper for an IT 232 C Programming course, divided into four groups: Group A consists of brief answer questions, Group B includes short answer questions, Group C features long answer questions, and Group D contains comprehensive questions. Each group has a specified number of questions to attempt, covering various fundamental concepts and programming tasks in C. The questions range from definitions and differentiations to programming exercises and explanations of programming concepts.

Uploaded by

pravesh koirala
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)
8 views2 pages

IT232 C Programming Model Question

The document outlines a model question paper for an IT 232 C Programming course, divided into four groups: Group A consists of brief answer questions, Group B includes short answer questions, Group C features long answer questions, and Group D contains comprehensive questions. Each group has a specified number of questions to attempt, covering various fundamental concepts and programming tasks in C. The questions range from definitions and differentiations to programming exercises and explanations of programming concepts.

Uploaded by

pravesh koirala
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

Model Question (IT 232: C Programming)

Group A
Brief answer questions:
Attempt all questions. (10 × 1 = 10)

1. Define algorithm.

2. What is preprocessor directive?

3. Differentiate between scanf() and gets().

4. What is conditional operator?

5. Differentiate between break and exit().

6. How to initialize two-dimensional matrix?

7. What is function prototype?

8. What is the use of double pointer?

9. Differentiate between array and structure.

10. List out the different modes of file in file handling.

Group B
Short Answers Questions
Attempt any five questions. (5 × 3 = 15)

11. Write a program to check if the input given by the user is divisible by 5 or 7.

12. Write a program that uses a while loop to compute and prints the sum of given numbers
of cubes. For example, if 3 is input, then the program should print 36, which is equal to
1³+2³+3³.

13. Write a program to read a line of text and display the number of vowels in it.

14. Write a program that takes string as input and displays the length of it.

15. Write a program to compute the factorial of number entered by the user using
recursion.

16. Write a program to draw a triangle using graphics function.


Group C
Long Answer Questions
Attempt any three questions. (3 × 5 = 15)

17. Explain the different logical operators in detail.

18. How array can be passed as function arguments? Illustrates with suitable example.

19. What do you mean by dynamic memory allocation? Explain the use of malloc() and
free() functions with suitable example.

20. Write a program to create and write N numbers in a file “[Link]”. Open this file to
then read its contents and write all positive numbers in the file “[Link]” and all
negative numbers in the file “[Link].”

Group D
Comprehensive Questions
Attempt all questions. (2 × 10 = 20)

21. Why looping is used in programming? Explain different looping statement with
appropriate example.

22. What is structure? How is it different from union? Create a structure “Student” having
data members name, roll number and percentage. Write a program to display the name of
all students having percentage greater than or equal to 80.

You might also like