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

Pps Imp Questions

The document contains a list of important questions related to programming concepts and C language, organized by chapters. It covers topics such as software definitions, control structures, functions, arrays, pointers, structures, file handling, and dynamic memory allocation. Each chapter includes specific questions and programming tasks designed to test understanding and application of these concepts.

Uploaded by

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

Pps Imp Questions

The document contains a list of important questions related to programming concepts and C language, organized by chapters. It covers topics such as software definitions, control structures, functions, arrays, pointers, structures, file handling, and dynamic memory allocation. Each chapter includes specific questions and programming tasks designed to test understanding and application of these concepts.

Uploaded by

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

PPS GTU RELATED/REPEATED IMP QUESTIONS

Chapter-1 Introduction to programming Marks

What is Software? List various types of Software. 3


Define following terms: 1. Compiler 2. Runtime Error 3. Dynamic Memory Allocation 4. Recursion 4
Explain the basic structure of a C program with an example. 3
Draw neat Block Diagram illustrating the Anatomy of a Computer System. 3
Briefly explain different components of Computer system. 7
Explain C tokens in detail. 7
Design block diagram of computer and explain functionalities of various components of computer 3
Write an algorithm to find maximum number for three given number. 4
Illustrate an Algorithm to check whether the given year is leap year or not. 4
Write an algorithm and draw the flowchart to calculate sum of digits of a given number N 7
Write an algorithm to check whether the entered number is Even or Odd. 4
Design a flowchart for checking whether a given number is palindrome or not. 7
Define Flow chart, List the rules for designing a Flow chart and Rephrase the merits and demerits of flow chart. 7
Draw the flowchart to find the factorial of a number given by user. 4
Describe various symbols used for preparing flow chart. 4

Chap-2 Basic C programming

List the rules to assign a name to an Identifier (Variable) 4


Demonstrate the use of bitwise operators with an example. 4
Demonstrate the use of ternary operator with an example. 3
List and explain all the operators in c 4
Demonstrate the working of bitwise shift and sizeof operator with an example 3
Explain type casting with example. 4
Explain datatypes ic c 4
Illustrate the basic structure of a C Programs and highlight usual sections of main function 4

Chapter-3 Control structure


Explain nested if-else statement with suitable example 4
Explain else if ladder with an example. 7
Explain switch-case with example 4
Contrast the Entry Control loop and Exit Control loop. 3
Differentiate while loop and do..while loop with example. 3
Explain the structure of for loop with proper example 4
Discuss the need of break and continue statements with example 4
Differentiate between break and continue. 3

Chapter-4 Functions

What is function? How Call by value and Call by reference passes the argument in function. 4
List the categories of User Defined Functions and Discuss any one of these 4
Differentiate between call by value and call by reference. 4
What is function? Differentiate: Call by value and Call by reference. 7
What are the steps in writing a recursive function in a program? 4
Write a program in C to calculate the power of any number using recursion. 7
Demonstrate the use of recursion with an example. 4
Write a C program to find sum of digits for a given number using the concept of User Defined Function (UDF). (Hint: For number 3278, sum of digits is 3+2+7+8
7 = 20)

Chapter-5 Array and string

List the types of Array. 3


Summarize the methods for initialization of One-Dimensional array. 4
Construct a C program to multiply 3X3 matrix. 7
Write a C program to make sum of array elements. 7
Write a C program which takes two NxN matrices and performs matrix multiplication. 7
Write a C program to sort an array in ascending order. 7
Explain one dimensional array, two dimensional array and multi-dimensional array with their syntax and example. 7
What is string ? How to declare string in C? 3
Explain significance of following string functions with example. 1. strcat() 2. strlen() 3. strcpy() 4. strcmp() 4
Summarize the method for Declaration, initialization and Printing on screen of a String. 4
List the application of gets getchar and puts functions. 4
Explain any four string handling functions with an example. 7
Give the significance of puts(), getchar(), getch(). 4

Chapter-6 pointers

What is a pointer? What are the advantages of using pointer? 3


What are the arithmetic operators that are permitted on pointers? 4
What is Pointer in C and how it initializes/declare with example ? State its advantages 4

Chapter-7 structure and unions

Compare Array, Structure and Union. 3


Define Union. Describe how to declare, initialize and access members of Union with a programming example 4
What is structure? How it is different from union? Explain nested structure with example 4
Compare structure and union. 3
Explain structure inside structure 3

chapter-8 file handling

Explain the following File Handling functions: 1. fseek( ) 2. ftell( ) 3. fread( ) 4. fwrite( ) 5. fscanf( ) 6. fprintf( ) 7.rewind( 7
Explain error handling in file system with example. 7
What is File Pointer? What is significance of File Pointer? 3
Write a C program to copy one file to other. 7
Briefly explain memory management functions

chapter-9 Dynamic memory allocation

Explain need of Dynamic Memory allocation. Compare malloc(), calloc() and realloc() functions 4
Show the use of Malloc, Calloc, Free and Realloc in context of Dynamic memory allocation 4
List down and briefly explain methods for dynamic memory allocation. 4
Programs:(ALL 7 MARKS)
Write a C program to print following patterns : 7
*
**
***
****
Write a program to print following patterns : 7
1
22
333
4444
Construct a C program to print following pattern .
1
23
456
7 8 9 10
11 12 13 14 15….
Write a program to print the triangle shown below.
A
AB
ABC
ABCD
Write a C program to check whether a three digits number is palindrome or not 7
Write a C program to copy one string to other without using string handling function.
Construct a C program to multiply 3X3 matrix.
Define a Structures which contains details of a Cricketer: • Name of Player: • Team name: • Total run scored: • Batting average:
Write a C program to check whether two strings are same or not.
Write a C program to generate first n number of Fibonacci series using recursion.( 0 1 1 2 3 5 8…)
Write a C program to compute Fahrenheit from centigrade (f=1.8*c +32).
Write a C program to find factorial of a given number.
Write a C program to make sum of digits of a given number. (if input is 145, output should be 10)
Write a C program to sort an array in ascending order.

You might also like