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

PPSC(23GES01)-QBANK

The document outlines the syllabus for the Programming for Problem Solving using C course at Muthayammal Engineering College for the academic year 2024-25. It includes five units covering topics such as problem-solving fundamentals, conditional statements, arrays and strings, functions and pointers, and structures, unions, and file handling. Each unit contains both Part A and Part B questions that focus on theoretical concepts and practical programming exercises.

Uploaded by

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

PPSC(23GES01)-QBANK

The document outlines the syllabus for the Programming for Problem Solving using C course at Muthayammal Engineering College for the academic year 2024-25. It includes five units covering topics such as problem-solving fundamentals, conditional statements, arrays and strings, functions and pointers, and structures, unions, and file handling. Each unit contains both Part A and Part B questions that focus on theoretical concepts and practical programming exercises.

Uploaded by

poonguzhali7207
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

MUTHAYAMMAL ENGINEERING

COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi, Accredited by NAAC & Affiliated to Anna
University)
Rasipuram - 637 408, Namakkal Dist., Tamil Nadu.

Department of Computer Science and Engineering


Academic Year (2024-25)
Course Code & Course Name : 23GES01 & PROGRAMMING FOR PROBLEM
SOLVING USING C
Year / Semester :I/I

UNIT-I: P R O B L E M SOLVING FUNDAMENTALS

Part A

1. What is Computer Software and it’s types?


2. What is pseudo code? List the advantages of pseudo code.
3. List the types of operators.
4. What is the difference between ++a and a++?
5. What is Ternary operator or Conditional operator?
6. Draw the Flow chart to find the sum of two numbers.
7. Differentiate between keywords and identifiers.
8. List the various input and output statements in C.
9. Distinguish between variable and constant.
10. State Typecasting.

Part B

1. Describe the structure of the C program with suitable example.


2. Illustrate about the various data types in C.
3. Explain in detail Input / Output Statements in C with suitable example.
4. i) Write an algorithm to find largest of three numbers.
ii) Draw a flow chart to find largest of three numbers
5. i) Write an algorithm to find the given number is even or odd.
ii) Draw a flow chart to find the given number is even or odd
UNIT-II: CONDITIONAL STATEMENTS AND LOOPING CONSTRUCTS

Part A

1. What is the difference between if and while statement?


2. Compare switch () and nested-if statement.
3. Distinguish between while..do and do..while statement in C.
4. Which loop statement is executed atleast once even loop test condition if false?
5. Differentiate break and continue statement.
6. Mention the use of break and continue statements.
7. What is a looping?
8. Difference between Entry controlled and Exit controlled loop.
9. What are the jumping statements in C Language and how these work?
10. What is infinite loop?

Part B

1. (a)Compare the following pairs of statements:


(i)Switch and nested-if-else statement
(ii)Break and Continue
(b)Write the syntax of if...else statement and illustrate with an example.
2. Explain the following with examples:
(i) Ternary or conditional operator.
(ii) Go to statement
(iii) Jumps in loop
3. (a)Explain different forms of if statements with examples.
(b)Write a program to read the principal amount, period of deposit and rate of interest and
compute the simple interest.
4. (a)Compare for, while and do-while loops. Give example for each.
(b) Write a C program and draw flow chart to find the sum of first10 natural numbers.
5. (a)Write an algorithm and program for finding the biggest of 3 numbers. (Using ternary
operator).
(b) Write the different loop control structures available in C. Explain each one of them briefly.
UNIT-III: ARRAYS AND STRINGS

Part A

1. Define array with syntax.


2. What are the main elements of an array declaration?
3. How to initialize an array?
4. Why is it necessary to give the size of an array in an array declaration?
5. What is the difference between an array and pointer?
6. List the characteristics of Arrays.
7. What will happen when you access the array more than its dimension?
8. What is the difference between Strings and Arrays?
9. Define Strings.
10. What is the use of‘\0’character?
11. How strings are represented in C language?
12. How strings are declared and initialized in C?
13. Write important string handling functions in C.
14. What is the difference between a string and an array?

Part B

1. What is an Array? Discuss how one dimensional array can be declared and their elements
are accessed.
2. Explain the process for inserting and deleting an element into a 1D-Array with suitable
examples.
3. Write short note on two-dimensional arrays and multi-dimensional array with example.
4. Explain declaration and initialization of a string in C.
5. Write a C program to convert the given string from lowercase characters to uppercase
character and uppercase to lowercase.
6. Write a C program to find the sum and differences of matrices using 2D-Array.
7. Explain the strings and string operations with example.
8. Develop a program to matrix multiplication using two-dimensional arrays.
9. Develop a program to concatenate two strings and determine the length of the
concatenated string.
10. Develop a program to insert a number at a given location in an array.
UNIT-IV: FUNCTIONS AND POINTERS

Part A

1. What are functions in C?


2. How will define a function in C?
3. What is the need for functions?
4. Define recursion.
5. Difference between library function and user defined function.
6. Distinguish between Call by value and Call by reference.
7. Define pointer.
8. What is the difference between an array and pointer?
9. List out pointers types.
10. How to use pointer?
11. Why do we need to specify the type in the pointer declaration?
12. What is the actual and formal parameter?
13. What is the difference between function argument and parameter?

Part B

1. What are functions? How are they useful? What are the different kinds of user defined
functions and what is the need of user defined functions?
2. With suitable example illustrate “call by value and call by reference” techniques of
passing parameters for functions.
3. Analyze the built-in function and user defined functions with example.
4. Write short notes about function types with example
5. Write short notes about pointer and how to declare pointer and initialize variable.
6. Explain about pointer and its types.
7. Analyze the function definition, function declaration and function call with suitable
example.
UNIT-V: STRUCTURES, UNION AND FILE HANDLING

Part A

1. Define Structure in C.
2. How will you define a structure?
3. How will you declare structure variables?
4. List the features of structures.
5. List the main aspects of working with structure.
6. What are the two ways of passing a structure to function in C?
7. Write any two advantages of Structure.
8. Define Union in C.
9. Compare Structure and Union.
10. How will you define a Union?
11. What are file attributes?
12. What is the use of functions fseek(),fread(),fwrite() and ftell()?
13. How is a file opened and file closed?
14. What are the statements used for reading a file?
15. Differentiate text file and binary file.
16. What is random access file?
17. State the two types of data files.
18. State the two categories of standard data files.
19. Compare fread() and fwrite().
20. What is mean by command line arguments?

Part B

1. What is a structure? Create a structure with data members of various types and declare
two structure variables. Write a program to read data into these and print the same.
2. Explain array of structure in C.
3. Write a C program to create mark sheet for students using structure.
4. How can you insert structure within another structure?
5. Explain the concept of structures and functions, structures and pointers with example.
6. Write a C program using structure to store date, which includes day, month and year.
7. What is file in C? Give a brief introduction about files and its operations.
8. How to read and write the binary file? Explain with an example.

You might also like