0% found this document useful (0 votes)
12 views4 pages

Unit

The document outlines various topics related to C programming, including algorithm development, variable scope and lifetime, flowcharts, commenting, type casting, operators, control statements, arrays, structures, pointers, and file handling. It provides definitions, examples, and programming tasks to illustrate these concepts. The content is organized into units that cover fundamental programming principles and practical coding exercises.

Uploaded by

dyhodcse
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)
12 views4 pages

Unit

The document outlines various topics related to C programming, including algorithm development, variable scope and lifetime, flowcharts, commenting, type casting, operators, control statements, arrays, structures, pointers, and file handling. It provides definitions, examples, and programming tasks to illustrate these concepts. The content is organized into units that cover fundamental programming principles and practical coding exercises.

Uploaded by

dyhodcse
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
You are on page 1/ 4

Unit-1

1. What are the essential steps in the development an algorithm?


2. Define scope and life time of a variable.
3. Define Algorithm.
4. What is the use of flowchart?
5. What are the different steps followed in the program development?
6. What is the need of commenting a statement in language? What are the different
ways of commenting the statements in C language?
7. Define scope and life time of a variable.
8. What is the need of format specifier? Write a sample program to illustrate any five
Format specifiers.
9. What is type casting? Name the inbuilt typecasting functions available in C language.
What is the difference between type casting and type conversion?
10. Define an identifier. Write rules for naming identifiers.

11. What are the different type’s operators? Explain each with suitable example
What is associativity? Explain operator precedence.

12. Write short notes on


(a) Conditional statements
(b) Bitwise operators
13. What is the importance of #include? explain

14.Explain the working of below operators


(a)Unary Operator with example.
(b) Explain the working of Binary Operator with example.
(c) Explain the working of assignment Operator with example.
15.Is there any difference between the pre decrement and post decrement operators? Explain.
16. Write a program for performing the arithmetic calculation.
17.What are library functions? Write its uses in C programming.
18.Explain the tokens C language
19.Explain implicit and explicit type conversions with examples.
20.Explain bitwise, increment and decrement, conditional operators with examples
21.What is meant by a variable in C programming? How a variable is initialized? Explain the
rules for defining variable names.
22.What is a preprocessor directive?
23. Write a C program to convert the given years into number of months and days

Unit-2
1. Differentiate between while-do and do while.
2. Write about nested for loop statement with examples
3. What is the need of format specifier? Write a sample program to illustrate any five format
specifiers.
4. What is type casting? Name the inbuilt typecasting functions available in C language.
5. What is the difference between type casting and type conversion?
6. Write a C program to calculate mn value using while and do while loop.
7. Explain counter-controlled and condition-controlled loops with examples.
8. What are selection statements? What is the necessity of selection statements? Example
9. Differentiate the conditional operator with if else statement. Explain with the help of an
example.
10. Write C program to check whether the given number is even or odd without using %
(modulus) operator.
11. What are the different types of control statements available ’C’. Explain them
with an example?
12. Write briefly about the conditional and unconditional statements.
13. Write a program to award the grad to the students using switch statements
14. Write a program that asks user an arithmetic operator('+', '-', '*' or '/') and two operands
and perform the corresponding calculation on the operands. Use a switch statement.
15. Write a C program to check whether a number entered by user is even or odd. Use a if
else statement.
16. Explain the working of ternary Operator with example.
17. Conditional and Unconditional statements
18. Logical operators
19. Explain if-else statement and nested if-else statement with syntaxes and suitable
examples
20. Write a C program to accept an integer number and print the digits using words (for
example 356 is printed as Three Five Six)
21. If break was not given in the switch statement, what happens? Explain with example.

22. Explain about the switch statement? What is the importance of the break and continue?
Give examples.
23. Write a program to sum the digits in a given number.
24. Draw the flow chart for the Armstrong number and write the program.
25. What is meant by pretest and posttest loop?
26. Give the differences between break and exit() statements in C language.
27. What is the importance of break in switch statement? If break is not given what happens?
Explain with example
28. Explain about switch statement. What is the importance of break and continue in switch
statement? Give examples.
29. Write a program to find greatest common divisor (GCD) of two integers m and n and use
it to find the LCM (least common multiple)
30. Explain different looping statements with syntax and examples.
31. Write a C program to generate and print the numbers between 100 and 200 which are
divisible by 3 but not divisible by 4.
32. Write a C program to find factorial of given number using for loop.
33. Explain nested. if else and else if ladder with syntax and give examples respectively?
Unit-3
1. How to access array elements? Explain.
2. What is a format string? How do you write format strings for data entry and display?
3. . What is the advantage of using arrays? Give syntax for declaration, accessing and
printing one - dimensional array?
4. Write a program to compare two strings without using existing functions. String handling
functions.
5. Write the syntax for declaring two - dimensional array write a program to access and
print the array elements.
6. Write a program to find max and min elements from the array.
7. Write a program to count number of characters in a string
8. What is a null character? Write its uses in strings.
9. How does a structure differ from an array?
10. Explain different types of string handling functions with example.
11. Write a C program to check whether the given string is palindrome or not?
12. Write C program to read an array of names and to sort them in alphabetical order
13. Explain Union with example
14. Explain the structures
15. What is the difference structures and unions
16. What is morse codes
17. Explain the User Defined data types
18. Explain how to access the elements of a union with an example
19. Write a program using structures to display the following information for each customer
name, account number, street, city, old balance, current payment, new balance, account
status.
20. How to copy one structure to another structure of a same data type, give an example?
21. What are the two types of operators used for accessing members of a structure? Explain
with examples.

Unit-4

1. Write short notes on pointers.


2. Describe categories of functions based on arguments and return type and what are
different parameter passing methods in functions ?
3. Write a program to generate Fibonacci series using static storage class.
4. Explain about call by value with an example.
5. Write a program to generate Fibonacci series using with argument and return type.
6. Write a program and explain the working of malloc and calloc function.
7. Explain about different storage classes with examples.
8. Explain function prototype and explain different methods to call the functions.
9. How to initialize and access pointer variables? Discuss.
10. Write a program to swap two numbers using pass by address. [8+8]
11. How to pass structure variable to functions? Explain with example.
12. What is meant by recursion? What are its uses? How it is implemented? Explain with
example.
13. Explain about (i) local and global variables (ii) actual and formal arguments.

14. Differentiate between direct and indirect pointers with examples.


15. Write a program to implement matrix multiplication using pointers.
16. What is pointer? Is *p is similar to &p? explain
17. What are the uses with recursive functions
18. What is an user defined function? When these functions are useful? How a function is
declared and what are the rules followed to call a function.
19. Write a C program to find the arithmetic mean of n values using functions
20. What is a pointer? Explain address arithmetic with example.
21. Write any two merits and demerits of pointers
22. What is dangling pointer?
23. Write a C program to find the arithmetic mean of n values using functions
24. What are the differences between recursion and iteration?

Unit-5

1. What is the purpose of library function feof() ? How feof() be utilized within a program
that updates an unformatted data file. Explain

2. Write a program to copy one file data into another file


3. Explain the following operations (a) fseek() (b) ftell (c) rewind() (d) ferror()
4. Write the syntax for opening a file with various modes and closing a file
5. Explain about file handling functions.
6. Write the syntax for opening a file with various modes and closing a file
7. Differentiate between text file and binary file.
8. Explain about the fprintf and fscanf functions with examples.
9. What is the importance of #typedef? Explain
10. Distinguish between an append mode and write mode in files.
11. Write a program to merge two files into single file.
12. Explain about the functions for reading and writing data from a file.
13. Write a program to print command line arguments on screen.

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