0% found this document useful (0 votes)
21 views5 pages

Introduction to Programming Important Revised Questions

Uploaded by

Malla Hari
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
21 views5 pages

Introduction to Programming Important Revised Questions

Uploaded by

Malla Hari
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 5

Introduction to Programming

Important Questions

Unit 1

1 Define Algorithm? What are the Characteristics of Algorithm?


2 Explain Top Down Approach, Bottom Approach?
3 Define pseudo code. Write a pseudo code to find the sum and average of given three numbe
4 Define Algorithm. Write an algorithm to find the area and perimeter of a circle
5 Define flowchart. Explain with an example? Draw the flowchart and write a C program to com
6 Describe steps in problem solving?
7 Explain the Phases of Computer Problem Solving?
8 Explain the Computer Problem Solving Strategies?
9 Define Algorithm Classifications & Design Methods?
10 Why the Analysis of Algorithm is important?
11 Write an algorithm to find the area of circle?
12 Define flowchart. Explain with an example?
13 Draw the flowchart and write a C program to compute simple interest?
14 What are the different steps followed in the program development?
15 Define bit and byte. What are its uses in computer programming?
16 What is the difference between low level and high level language
17 Explain briefly about machine and assembly languages.
18 What do you mean by Top Down Approach?
19 What is meant by Compilation? Execution? Run time in C Program Execution?
20 What are assemblers, compilers and interpreters?

Unit 2
1 What is variable and how it is differ from identifier?
2 Describe structure of a C program with an example?
Write a C Program to find total of 5 integer values and print in integer and
3 calculate the average and print in float?.
4 Explain the operator precedence in detail with examples?
5 What is an operator? List and explain various types of operators with example?
6 Explain various input and output functions in “C” with examples?
7 Explain implicit and explicit type conversions with examples.
8 Write a program to read any three numbers and print largest number
9 Define Data types? What are different types of Data types?
Write program to read any two numbers and swap the numbers with using and
10 without third variable.
11 Explain the logical operator s with examples?
12 Write any two preprocessor directives in C?
13 What is the variable? Illustrate with an example?
14 What is the importance of #include? Explain
15 Explain the working of Unary Operator with example.
16 What is an error? Describe various types errors with example
17 Define Comments with Examples?
18 What are primitives Datatypes? Non Primitive Datatypes?
19 What is Token? What are the different types of token available in C language
20 Write a program to calculate the area and circumference of a circle with radius 10.
Unit 3

What is a flow control statement? Explain various Two-way Selective


1 statements in C with example each.
Write a C program that receives two integer numbers and one arithmetic
operator as input and performs the arithmetic operation between two
2 numbers and displays the result
3 What is Array? Explain different types of arrays in c with an example each.
Explain different Iterative statements in C with syntax, flowchart and
4 example each
5 Write a C program to reverse the given string using a pointer
6 Differentiate between entry- control and exit-control loops with an example.
7 Develop a C program to count sum of even numbers in a given array.
8 Write a C program that access elements of 1D array using a pointer variable.
What is a pointer? Explain declaration, initialization and accessing of a
9 pointer variable.
10 What do you mean by command-line arguments? Give an example program.
11 Is 'break' needed in every case of switch statement? Give explanation.
What are Control statements? Explain about the various Control statements
12 in C programming.
13 What is a dangling memory? Why addition of two pointers is impossible?
What are subscripted variables? How one and two dimensional subscripted
14 variables (arrays) are declared?
Write a C program to check whether a given string is palindrome or not.
15 (without using any built-in string function).
What is address arithmetic in C? Explain different arithmetic operations that
16 can be performed on pointers.
What is the role of L value and R Value in pointer arithmetic? Explain in
17 detail.
How are generic pointers different from pointer variables and also
18 differentiate ptr++ and ++ptr
19 Give the syntax and explain arrays of pointers in detail.
20 Explain the void pointer
Unit 4

What are functions? How are they useful? What are the different kinds of user
1 defined functions and what is the need of user defined functions?
Write a C Program to find number of characters in a given string without
2 using library function.
3 Explain Call by Value and Call by Reference with example each
What is recursion? Write a program to find the factorial of a given number
4 using recursion.
Explain the following with respect to functions: (i) Function prototype (ii)
5 Function call (iii) Returning from function
Develop a program to find the factorial of a given integer number using
6 recursive function.
7 Explain pointers to functions and array of pointers.
What are the unions? How are they different from structures? Give an
8 example for union.
9 Explain built-in functions for handling strings.
What is the main use of function pointer in C?How do you declare a function
10 pointer? Explain.
What is Recursive Function? What are the constraints for defining a Recursive
11 Function? Explain with an example.
12 Write program for finding the GCD among two numbers using recursion
What is Shift operation? Perform different types of shift operations on
13 101110011
What is an user defined function? When these functions are useful? How a
14 function is declared and what are the rules followed to call a function.
15 Differentiate pointers, variables and arrays.
16 Explain actual and formal arguments
17 What is dangling Pointer
18 Explain any three String Handling Functions
19 What is Generic Pointers
20 Explain Null Pointer
Unit 5

Write difference between structures and unions w.r.t memory allocation and
1 accessing.
2 Develop a C program to append the contents of one file to another file.
Explain the following file handling functions in C programming i) fopen() ii)
3 fseek() iii) fwrite()
Explain various dynamic memory allocation functions in C with an example
4 each.
5 Write a C program to Display contents of a text file on console.
What kind of files and functions for files are used in C language? Explain in
6 Detail
7 What are bit-fields.? Explain their significance.
8 Explain the utility of ‘typedef’ keyword. Write a program to illustrate it.
9 What is self Referential structure explain in Breif
What are various standard library input/output functions used in C language?
10 Explain with simple program.
Write the syntax to define Union? List out the advantages and disadvantages of
11 using Unions.
12 Explain in detail about the types of C preprocessor directives
Using structures write a program to read and display the information of five
13 students in a class.
Explain the following functions in files: (i) fseek( ) (ii) ftell( ) (iii) rewind( ) (iv)
14 fopen( ) (v) fclose( ) (vi) foef( )
Explain the following functions in file operations: (i) getw( ) (ii) putw() (iii)
15 fscanf( ) (iv) fprintf( )
16 Define a structure. Describe how to declare and initialize structure
17 What is Nested Structures
18 Explain Array of structures
19 What are the different file modes in c language ?
20 What is Text File

You might also like