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

PPS Assignment-5

Uploaded by

viral.prajapati
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)
32 views2 pages

PPS Assignment-5

Uploaded by

viral.prajapati
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

ASSIGNMENT 5

Q.1. What is array? Demonstrate declaration and initialization of one dimensional array and two
dimensional array with suitable example.
Q.2. Write a program to multiply two matrices A and B of size 3 * 3. Store the answer in matrix C and
display it.
Q.3. What is String? List the various inbuilt string functions and explain all of them with example.
Q.4. Write a program to accept a string and count the number of vowels present in a string.
Q.5. What is pointer? Write a program to do swapping of two elements using pointers.
Q.6. Explain Pointer Arithmetic with proper example.
Q.7. What is structure? Explain with example how to declare a structure and how to initialize it.
Q.8. What is union? How it is different from union?

Q.9. Define a structure type struct personal that would contain person name, date of joining and salary
using this structure to read this information of 5 people and print the same on screen.
Q.10. Explain the following File Handling functions:
1. fseek( ) 2. ftell( ) 3. fread( ) 4. fwrite( ) 5. fscanf( ) 6. fprintf( ) 7.rewind( )
Q.11. Write a C program to copy content of one file to other with the help of file handling functions.

Q.12. What is dynamic memory allocation? Show the use of malloc() and calloc() function with their
syntax.
Explain following decision making statements with proper example:
a) Simple if,
Q.1. b) if…else statement,
c) else if ladder,
d) Nested if statement
Q.2. Write a C program to read three numbers from keyboard and find out maximum out of these
three.
Q.3. Write a C program whether the given year is leap year or not.
Write a program to read marks from keyboard and your program should display equivalent grade
according to following table (if else ladder)
Marks Grade
Q.4. 100 - 80 Distinction
79 - 60 First Class
59 - 40 Second Class
< 40 Fail
Q.5. Write a C program to check whether the entered character is capital, small letter, digit or any
special character.
Q.6. Explain switch statement with an example.
Q.7. Explain Exit controlled Loop and Entry controlled Loop in detail. (Difference may also be asked)
Explain following looping statements with proper example:
Q.8. a) for loop
b) while loop
c) do…while loop
Q.9. Write a C program to find factorial of a given number.
Q.10. Write a C program to generate first n number of Fibonacci series.
Q.11. Write a C program using for loop construct which prints all prime numbers between 1 to 50.
Q.12. Explain usage of break and continue statement in loops with proper example.

Q.13. What is function? Explain function declaration, function definition and function call with
example.
Q.14. Explain various categories of functions with proper example.

Q.15. Differentiate call by value and call by reference. Write a c program and Create a function to swap
the values of two numbers using call by value and call by reference.
Q.16. What is recursion? Explain it with factorial(4). Write C program to find factorial (N) using
recursive Function?
What is debugging? Explain commonly used debugging practices. Also explain any two
Q.1. debugging tools.

Q.2. What is software testing? What is test cases? Explain various parameters of a Test Case.
Q.3. Explain various types of test cases.

Q.4. What is unit testing? What are the steps carried out in unit testing?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy