PROGRAMMIN IN C Important Questions (1)
PROGRAMMIN IN C Important Questions (1)
UNIT-I
1. Structure of C Program
2. Algorithm, Flow Chart, Pseudocode
a. Area and Perimeter of any 5 polygons
b. Given number even or odd
c. Largest of two numbers
d. Largest of Three numbers
e. Sum of first ‘n’ natural numbers
f. Simple interest
3. Short Notes on
a. printf() and scanf() functions
b. data types
4. C Tokens
5. Precedence and Associativity of Operators in “C” Language.
6. Type conversion
7. Bitwise Operators, Increment and Decrement Operators, Relational and Logical Operators
UNIT-II
UNIT-III
1. Define Array. How do you initialize and declare one-dimensional and two-dimensional
array with examples?
2. Addition and Multiplication of two matrices, Transpose of Matrix, and Maximum &
Minimum element of array.
3. Explain atleast five built in functions in strings with the help of an example for each.
4. Write a program for whether given string is a palindrome or not without using string
built-in function.
5. Write programs for all strings without using string built-in functions for
strcpy(), strrev(),strcat(),strlen(),strcmp().
6. List out some string I/O functions with examples.
7. Design a “C” program to number of words, characters and lines in a given string.
8. Design a “C” program to count number of vowels and consonants in a given string.
9. Design a “C” program to number of upper case letters, lower case letters, digits and
special characters in a given string.
UNIT-IV
UNIT-V
10. Sort the given list of numbers using Bubble Sort and Selection Sort 64, 57, 32, 45, 9,
12, 18,70 (logic, debugging program or algorithm)
11. Perform Binary Search on the given list of numbers {4, 18, 29, 35, 44, 59, 65, 98} (logic,
debugging program or algorithm)
12. Compare and Contrast between Linear and Binary Search.
Note: Please Don’t study the Programs for CHATGPT, marks may not be awarded.
Note: Study all those program list which given for Lab Internal and External Exam.