0% found this document useful (0 votes)
4 views6 pages

Computer Programming QB

The document is a question bank for a Computer Programming course focused on C language, covering topics such as introduction to C, control structures, functions and strings, and pointers, structures, and unions. It includes both part-A (two marks questions) and part-B (ten marks questions) for each unit, addressing definitions, differences, program writing, and examples related to C programming concepts. The questions are structured to assess understanding and application of fundamental programming principles.

Uploaded by

swetha
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)
4 views6 pages

Computer Programming QB

The document is a question bank for a Computer Programming course focused on C language, covering topics such as introduction to C, control structures, functions and strings, and pointers, structures, and unions. It includes both part-A (two marks questions) and part-B (ten marks questions) for each unit, addressing definitions, differences, program writing, and examples related to C programming concepts. The questions are structured to assess understanding and application of fundamental programming principles.

Uploaded by

swetha
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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CS25C01 – COMUTER PROGRAMMING : C

QUESTIONBANK
Question CO/ BL
Questions
No.
UNIT–1: INTRODUCTION TO C
PART-A (Two Marks Questions)
1 Define Computer
2 Define Algorithm
3 List out the characteristics of an algorithm?
4 Define Flowchart?
5 What is the need of Flowchart symbols?
6 Define Operators
7 List out the different types of operators in C.
8 Distinguish between“=‟ and “= =‟ operator?
9 Differentiate between scanf() and gets() function?
10 Differentiate between formatted and unformatted you input and output
functions?
11 List out various data types available in C
12 Define Enumerated datatype?
13 Define Keyword
14 List out some examples of Keywords available in C
15 DefineVariable
16 Differentiate between Local and Global variable in C?
17 Define indentation?
18 Distinguish between ++a and a++?
19 Define Conditional or ternaryoperator?
20 List out relational operators with examples

1 Discuss about basic structure of C Program in detail


2 Describe about software Development method?
a) Define Algorithm?List out the characteristics of an algorithm
3
b) Write an algorithm to check whether the number is even or odd?
a) Define Flowchart? What are the characteristics of an flowchart?
4
b) Draw an flowchart to check whether the number is positive or not?
5 Elaborate different types of Tokens in C in detail with examples
6 Define Operator precedence and explain their assosciativity withexamples?
7 Define Expression and explain in detail with examples

1
8 List out the different types of formatted input and formatted output functions
with examples
a) List out the Characteristics of C?
9
b) Draw an flowchart to check whether the person is eligible to vote or not?
10 List out different types of Datatypes in detail

PO
Question Questions
Attainment
No.
UNIT–2: CONTROL STRUCTURES
PART-A(Two Marks Questions)
1 Mention the various Decisionsmaking statement available in C?
2 List out various Selection statements in C
3 List out various Iteration statements in C
4 Distinguish between while.. and do..while statement in C
5 Define Looping in C
6 List out the types of looping statements available in C?
7 Define syntax :for loop in C
8 Define syntax for While loop in C
9 Define syntax for do-while loop in C
10 Define Array in C
11 List out the typesof arrays in C
12 Define Array initialization with an example
13 Define One-Dimensional array with an example
14 Write a C Program to find the average of n(n<10) numbers using arrays
15 Define Two-Dimensional array with an example
16 Write an C program to display the array elements in two dimensional array?
17 Write a c program to print 1 to 10 using for loop?
18 Write a C Program to print even numbers from 1 to n using while loop?
19 Write a C Program to print numbers from 1 to n using do while loop?
20 Writeacprogramtoprint1to10usingWhileloop?
PART-B(TenMarksQuestions)
1 Define Selection statements and describe in detail
2 Define Iteration statements and describe in detail
3a) Differentiate while and do-while statements?
3
c) Write a C program to print the factorial of a given number?
4 Define Array and how to declare and initialize one dimensional array?
Write a C Program to read the list of integers in array and print its in reverse
5
order?
6 Writea C Program to perform addition of two matrices?
7 Write a C Program to perform multiplication of two matrices?
a) Define Switch statement and explain with an example?
8 b) Write a C Program to read week daynumber and print week day name using
switch?

2
a) Define Nested if statement with an example?
9
b) Define Nested Switch statement with an example?
a) Define go-to statement with and example?
10
b) Differentiate between break and continue statements with an example

Question PO
Questions
No. Attainment
UNIT–3: FUNCTIONS AND STRINGS
PART-A(Two Marks Questions)
1 Define Strings?
2 List out the various typesof String Manipulation Functions in C
3 Write a C Program to read a string from user?
4 Define function in C?
5 Define a function definition explain with its syntax
6 Differentiate call by value and call by reference?
7 Define Recursive function?
8 Define function Prototype?
9 Define function call and write a syntax to call a function?
10 Write a C Program to find factorial of a number using recursion function?
11 List out the typesof Storage classes available in C?
12 Differentiate storage classes in c?
13 Define Preprocessor directive?
14 List out the Preprocessor directives in C?
15 Define Macro in C.
16 Define Conditional Inclusions in Preprocessor Directive?
17 Define Source file Inclusion in Preprocessor directive?
18 Define static storage class
19 Define Auto storage class in C?
20 List out the various categories of functions in C
PART-B
1 Define function? Explain in detail about user defined functions
2 Discuss about function prototype, function definition and function call?

3 a) Define Recursive function?


b) Write a C Program to find the factorial of a given number using recursive
function?

a) Write a C Program to find the GCD of a given number using recursive


4 function?
b) Define Library function with an example?
5 Elaborate Category of functions in detail?
6 Define Nesting of functions and explain with examples?
7 List out the types of storage classes in C and explain with an example?
8 Define Preprocessor directives in C explain with example?

3
9 Discuss about String handling function with examples?
10 Define String? How to declare and initialize string explain with an example? PO1

4
Question PO
Questions
No. Attainment
UNIT–4: POINTERS, STRUCTURES AND UNIONS
PART-A
1 Define Pointer? How avariable is declared to the pointer?
2 Differentiate pointers and arrays?
3 List out the uses of Pointers?
4 Explain the usage of * and & operators?
5 Write a program in C to show the basic declaration of pointer.
6 Write a program in C to add two numbers using pointers
7 Define Structure in C?
8 Define the steps to declare a members in Structure?
9 Differentiate arrays and structures?
10 Define Nested structure?
11 Write a C program to display book details using structure in c?
12 Define Union in C?
13 Differentiate Structure and Union?
14 Define union declaration in C.
15 Define the syntax to access the members of the Union in C?
16 Write a C Program to display the book details using Union?
17 Define Pointers arithmetic with example
18 Define Structure within structure with an example
19 Define how to copy the structure variables with example
20 Define how to copy the structure variables with example

Define Pointer? How to declare and initialize an pointer explain with an


1
example?
2 Discuss about Pointers arithmetic with an example?

a) Define Pointer with an array?


3 b) Write a C Program using pointers to read list of integers and prints its in
reverse order?
a) Define structure? How to declare and initialize structure members?
4 b) Write a C program to print the details of a book using structure in a
program
5 Define nested structure explain with in an example
6 Define Union? How to declare and initialize Union members?
b)Differentiate Structure and Union?
Write a C Program which takes input of five students and displays result table
7 And students information and displays who got the highest mark using
structure in the program?
8 Write a C program to count vowels and consonants in a string using pointer
Write a C Program to read and print student details using structure pointer,
9
Demonstrate example of structure with pointer.
Write a C Program to demonstrate example of double pointer (pointer to
10
pointer)

5
Question PO
Questions

You might also like