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

PPS IMP QUE

Uploaded by

pankajbarathod9
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)
20 views2 pages

PPS IMP QUE

Uploaded by

pankajbarathod9
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/ 2

3 Marks Questions:

1. Draw a neat Block Diagram illustrating the Anatomy of a Computer System.


2. List the rules to assign a name to an Identifier (Variable).
3. Contrast the Entry Control loop and Exit Control loop.
4. Debug the following code and show the output.
5. List the types of Array.
6. List the applications of gets(), getchar(), and puts() functions.
7. Write True / False against the following statements:
○ Pointer is a variable that holds the address of the location where the value of
another variable is stored.
○ Pointer holds the address in the form of float or integer.
○ The address of a variable can be stored in two or more pointers.
8. What are the arithmetic operators that are permitted on pointers?

4 Marks Questions:

1. Illustrate an Algorithm to check whether the given year is a leap year or not.
2. Illustrate the basic structure of a C Program and highlight usual sections of the
main function.
3. Construct a C program to find the largest number amongst three integers
entered.
4. Explain the nested if-else statement with a suitable example.
5. Summarize the methods for initialization of One-Dimensional array.
6. Summarize the method for Declaration, initialization, and Printing on screen of
a String.
7. List the categories of User Defined Functions and Discuss any one of these.
8. Show the use of malloc(), calloc(), free(), and realloc() in the context
of dynamic memory allocation.

7 Marks Questions:

1. Define Flow chart, List the rules for designing a Flow chart, and Rephrase the
merits and demerits of a flow chart.
2. Construct a C program which receives the number of days as input and
converts them into Year, Months, and Days.
3. Construct a C program to swap the values of two integers with the use of only
two variables.
4. Construct a C program to check if an entered integer is a prime number or not.

Construct a C program to print the following pattern:


Copy code
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15

5.
6. Construct a C program to multiply a 3x3 matrix.
7. Define a structure which contains details of a Cricketer: Name, Team name,
Total runs scored, Batting average.
8. Construct a C program which uses a user-defined function that receives an
integer and returns the square and cube of it and prints them in the main
function.
9. List and discuss file handling functions used in C.

Write a C program to print the following pattern using a loop:


Copy code
5
4 4
3 3 3
2 2 2 2
1 1 1 1 1

10.
11. Write a C program to find the sum of digits for a given number using the
concept of User Defined Function (UDF).
(For example: For number 3278, sum of digits is 3 + 2 + 7 + 8 = 20)

You might also like