100% found this document useful (1 vote)
449 views3 pages

Module Wise Question Bank POP

Principle of programming important questions bpops103 or bpops203

Uploaded by

darshangowda0525
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
100% found this document useful (1 vote)
449 views3 pages

Module Wise Question Bank POP

Principle of programming important questions bpops103 or bpops203

Uploaded by

darshangowda0525
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

QUESTION BANK

Principles Of Programming [22POP23]


Module 1
1. Describe the evolution of Computers by mentioning how computers in one generation are
better than their predecessors.
2. Define the following with suitable example. i. Bit ii.Byte iii. Word iv. Kilo byte
3. How primary memory is different from secondary memory? Explain
4. Explain the various rules for forming identifier’s names. Give examples for valid and
invalid identifiers names for the same.
5. Define Computer. Broadly classify the computers based on their Speed, Storage and
Price.
6. Classify the following into application or system software and justify. i. C Compiler
ii.Word-processor iii.Web-browser iv.Operating system
7. List any three input and three output devices of a computer and explain any one each.
8. List the basic data types available in C. Explain with example.
9. Describe the types of computers.
10. Explain the components of a computer with block diagram.
11. Write a basic structure of c program? With example.
12. Define token. Explain the different types of tokens available in C.
13. Explain input and output devices of computers.
14. Define algorithm. Write an algorithm to find the area and perimeter of a rectangle.
15. Explain formatted input and output functions in c.
16. Define the terms Network, LAN, WAN, MAN and Network topology.

Module 2
1. How similar and different while & for loops are?
2. Demonstrate the working of break and continue statement with a suitable example.
3. Compare if..else with switch statement
4. Explain with syntax, flowchart and Example
(i) if-else
(ii) if-else ladder
(iii) nested if-else
(iv) while
(v) do-while
(vi) for
(vii) switch
(viii) continue
(ix) goto
(x) break
5. List and Explain operators in C.
6. Explain type conversion and casting.
7. What is typecasting? Mention its use with a suitable example
Module 3

1. How 2D array is represented in memory? Explain with a suitable example


2. Demonstrate the use of C user-defined functions with a suitable example
3. What is recursion? Write a C program to computer factorial using recursion.
4. Differentiate between call by value and call by reference using suitable examples
5. Define a function. List various advantages of a function.
6. How actual parameters are different from formal parameters? Explain
7. How 1Dimension integer array is represented in memory? with the help of suitable
example demonstrate the initializing the array elements
8. Discuss the implementation of user-defined function with a suitable example
9. What is recursion? Discuss its working with the help of a suitable example.
10. Discuss the various ways of passing parameter to the functions
11. List any five built-in functions and explain any two of them.
12. Define
(i) Formal and actual parameter
(ii) Local and global variables.
13. Explain storage classes and scope of variables.

Module 4
1. Using suitable code, discuss the working of the following string functions: i.strcat ii.strcmp
iii.strcpy iv.strlen v.strstr.
2. What are strings? Write a C program to swap two strings
3. Mention various operations that can be performed on strings using built-in functions. Explain
any two functions.
4. Mention the purpose of a Null Character in C strings.
5. Define pointers. Explain declaration and initialization of pointers.
6. Explain types of pointers in c.

Module 5
1. How does a structure differ from an array?
2. Define a structure by name DoB consisting of three variable members dd, mm and yy of type
integer. Develop a C program that would read values to the individual member and display
the date in mm/dd/yy form.
3. How structure in C is different from union? Give example
4. Give the general syntax to initialize a structure to store a Book information
5. How union is different from struct? Give example
6. Give the syntax for declaring and initializing a union with a suitable example
7. Define pointers. How the pointers are initialized and declared.
8. Define structure. Explain declaration and initialization of a structure.
9. Difference between structure and union.
10. Explain enumerated data type with suitable example.
11. Explain reading and writing data files.
12. Explain detecting end of file.

You might also like