KEMBAR78
C Language Imp Questions | PDF | Pointer (Computer Programming) | String (Computer Science)
0% found this document useful (0 votes)
33 views3 pages

C Language Imp Questions

The document outlines a comprehensive curriculum covering fundamental concepts in C programming, including pseudocode, algorithms, flowcharts, data types, control statements, functions, arrays, strings, pointers, and structures. It includes definitions, examples, and C program implementations for various topics such as conditional statements, recursion, and file handling. Additionally, it addresses specific programming tasks and concepts like type conversion, memory allocation, and string manipulation.

Uploaded by

sahitya.ekara
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)
33 views3 pages

C Language Imp Questions

The document outlines a comprehensive curriculum covering fundamental concepts in C programming, including pseudocode, algorithms, flowcharts, data types, control statements, functions, arrays, strings, pointers, and structures. It includes definitions, examples, and C program implementations for various topics such as conditional statements, recursion, and file handling. Additionally, it addresses specific programming tasks and concepts like type conversion, memory allocation, and string manipulation.

Uploaded by

sahitya.ekara
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/ 3

Unit_I

1. A) What is pseudocode? Explain with example ,how it is used as a problem solving


tool
B) Define pseudocode. Write a pseudocode to find the sum and average of given three
numbers
2. A) Define Algorithm. Write an algorithm to find the area and perimeter of a circle
B) Write an algorithm to find the largest of 3 numbers
3. A) Define flowchart. Explain with an example
B) Draw the flowchart and write a C program to compute simple interest
4. What is Token? What are the different types of token available in C language
5. What is an identifier (variable)? What are the rules to construct identifier (variable)?
Classify the following as valid/invalid Identifiers.
i) num2 ii) $num1 iii) +add iv) a_2 v) 199_space vi) _apple vii)#12
6. What is variable? List the restrictions on the variable names? Describe various
variables? with examples
7. List all the operators used in C. Give examples
8. List out the difference between Continue and Goto Statements
9. A) What are basic data types available in „C‟? Write the significance of each data
type
B) Write a C program that computes the size of int, float, double and char
10. What is type conversion? Explain two types of conversion with examples
11. A) What are the formatted input and output functions. Explain with examples
B) Write the guidelines to use scanf() and printf() functions in C language
C) What is the purpose of scanf() and printf() statement ?
11. What is an expression? Evaluate the following expressions
i) 100 % 20 < = 20 – 5 + 100 % 10 – 20 = = 5 > = 1 != 20
ii) a + = b * = C - = 5 where a=3 b=5 and c=8

Unit-II
1. List all conditional control statements used in C. Explain any two with syntax and
example
2. Implement a C program to find the reverse of an integer number and check whether it
is palindrome or not
3. Write a C program to find the biggest of three numbers
4. Explain switch statement with syntax and example
5. List the differences between while loop and do-while loop.
write a C program to find sum of Natura numbers from 1 to N using for loop
6. Write a C program to find the factorial of a number using do-while ,where the number
n is entered by user.
7. What is two way selection statements? Explain if, if else, and cascaded if-else with
examples.
8. Explain with syntax ,if, if-else and nested if-else statements in „C‟ program
9. Write a program in „C‟ to find the sum of „n‟ natural numbers without using any
loops
10. how how break and continue statements are used in a C program, with example
11. Explain with examples formatted input output statements in C
12. What is dangling else problem? Explain how to handle tis in C programming
13. Programs:
Armstrong number, strong number, factorial , Individual numbers sum and
Swap numbers

Unit-III

1. What is array ? Explain the declaration and initialization of one dimensional and
two dimensional array with an example
2. Write a C program that accepts (3×3 ordered matrices A and B),and compute the
following (i)summation of Two numbers (ii) Subtraction of Two numbers(III)
Multipliction
3. Write a C program to search an element using linear and binary techniques
4. Sorting’s
5. Explain storage classes in detail.
6. What is function ? Explain the difference between user defined and library
functions
7. A) Explain two categories/types of argument passing techniques, with examples
B) Differentiate between call by value and call by reference with examples
8. Write a program in C using functions to swap two numbers using global variables
concept and call by reference concept.
9. What are actual parameters and formal parameters? Illustrate with example
10. What is Recursion? Write any program with example
11. Write a C program to check a number is a prime or not using recursion
12. Write a C program to find the factorial of a number using recursion
13. Write a C program to calculate the Fibonacci sequence using recursion functions

Unit IV
1. Define string. How string is declared and initialized ? Explain string input/output
functions with an example
2. Define a string. Explain any 4 string library functions with syntax and example
3. Define string. List out all string manipulation function. Explain any two with
example
4. Write a C Program to implement string copy operation STRCOPY(str1,str2) that
copies string str1 to another string str2 without using library function
5. Write a C program to check whether the given string is palindrome or not without
using in built function
6. Write a C program to concatenate two strings without using built-in function
strcat()
7. What is pointer ? Explain how the pointer variable declared and initialized?
8. What is pointer? give the advantages and disadvantages of pointer data type
9. Explain the array of pointes with example? or Explain how pointers and arrays are
related with example
10. Write a C program to swap two numbers using call by address(pointers or
reference) method
11. What is a macro ?Write a macro to determine whether the given number is odd or
even
12. Explain Dynamic memory allocation functions .

Unit_V

1. What is structure? Explain the C syntax of structure declaration with example


2. Explain the difference between array and structures
3. Write a C program to pass structure variable as function argument
4. Explain with example how to create a structure using „typedef‟
5. Write a C program to create structure with five student’s details and display the
same.
6. Differentiate between union and structure.
7. Write a C program to create structure with employee details and display the same.
8. Write file handling program to read and write into a file.
9. Explain string functions with examples.

You might also like