0% found this document useful (0 votes)
65 views4 pages

CE0216 PPS-Question Bank

The document is a question bank for the subject 'Programming for Problem Solving' at Indus University for the academic year 2024/25. It covers four units, each containing various questions related to programming concepts, C language features, algorithms, data structures, and file management functions. The questions range from theoretical explanations to practical programming tasks.

Uploaded by

Dharm Mehta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views4 pages

CE0216 PPS-Question Bank

The document is a question bank for the subject 'Programming for Problem Solving' at Indus University for the academic year 2024/25. It covers four units, each containing various questions related to programming concepts, C language features, algorithms, data structures, and file management functions. The questions range from theoretical explanations to practical programming tasks.

Uploaded by

Dharm Mehta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

INDUS UNIVERSITY

INDUS INSTITUTE OF TECHNOLOGY AND ENGINEERING


DEPARTMENT OF COMPUTER SCIENCE ENGINEERING

Subject Name : Programming for Problem Solving Subject code : CE0216


Unit : 1,2,3,4 A/C Year : 2024/25

QUESTION BANK
Unit 1
1. What is a flow chart? List it’s symbol and its use. Draw a flowchart to add two numbers.
2. What is an Algorithm? Write down the characteristics and advantages of algorithms.

3. Explain any algorithm with its Flow chart. (Any concept could be asked)
4. Is ‘C Language’ a middle level language? Justify your answer.
5. Compare compiler & Interpreter.
6. Draw basic Block diagram of C Program Structure. Briefly explain each.
7. Define Following terms: 1) Tokens 2) Keywords 3) Identifiers 4) Variables 5)
Constants 6) Compiler 7) Identifiers
8. Write a short note on data types that C language Supports.
9. Explain variable declaration and initialization with example.
10. Explain the character set of C.
11. Define a token. Explain it in detail.
12. Write down the rules to define variables.
13. How we define constant in c.
14. What is symbolic constant and what are the rules to define symbolic constant?
15. Differentiate division and modulo division operator.
16. Give the difference between Logical Operator and Bit wise Operator with example.
17. What do you mean by type conversion? Explain its type with example.
18. Explain Precedence and associativity in C.
19. List all the operators and its type. Explain Relational and Logical operators with
examples. (Any operator could be asked)
20. Explain Operator Precedence and Associativity with example.
21. Explain following functions: 1) scanf 2) printf 3) gets 4) puts 5) getch 6) putch
22. Write a program to swap values of 2 variables (i) with an extra variable and (ii)without
using an extra variable (with possible methods).
23. Write a program to print the ASCII value of a given character.
24. Write a program to enter marks of five subjects of a student and calculate its average
and percentage.
25. Explain mathematical functions in C in detail.

Unit 2

1. Explain different implementation forms of If statements.


2. List out conditional Statements (Decision Making Statements) and explain with proper
examples. (Any conditional statement could be asked)
3. Write a short note on Switch Case.
4. What is Loop? Explain different kinds of loops available in C language.(Any Loop
could be asked)
5. Demonstrate GOTO statement with an example.
6. Give the difference between Entry controlled Loop and Exit controlled Loop
7. Write Difference between: 1) break and continue 2) while and do..while
8. What is an array? Briefly explain the array.
9. What is a 2D array? How we can create 2D arrays. Demonstrate 2D array with example.
10. Write a program to print the number of days in a given month using a switch statement.
The program requires a month number (between 1to 12) as an input and then displays
the number of days in that month.
11. Write a program to check whether a number is a Krishnamurthy number or not.

Krishnamurthy number is one whose sum of factorial of digits equals the number.

Example: 145 → 1! + 4! + 5! (STRONG NUMBER)


12. Write a program to check whether the number is Armstrong or not. Example:153----
1^3 + 5^3 +3^ 3 = 1 + 125 + 27 = 153
13. Write a program to list all prime numbers within a given range.
14. Write a program to print Fibonacci series of given numbers.
15. Pattern Printing Programme. Any Pattern could be asked.
16. Write a program to find the factorial of a number. (without recursion)
17. Write a program to read 10 integers in an array. Find the addition of all elements.
18. Write a Program to print Addition of two matrices.
19. Write a program to print Fibonacci series
20. Write a program to convert a string into lowercase and uppercase.

Unit 3
1. Short note on String
2. Explain different methods to read and print string.
3. Explain following :strlen, strcpy, strncpy, strcat, strncat, strcmp, strncmp, strstr,
strchr,strrchr
4. Any Program of String could be asked.
5. What is function? Why it is important?
6. Explain the Parts of function: function declaration(function header/prototype),calling
function, function definition(called function/function implementation) with example.
7. What is Function? Explain type of User Defined Functions. Explain any two in detail.
8. Explain type (category) of Functions. Explain any two in detail.
9. Explain nesting of function.
10. Explain recursion with example.
11. Explain Scope , visibility and Lifetime of a variable.
12. Write a short note on storage variable.
13. Give the difference between local variable and global variable.
14. Explain static variable with example.
15. Any Program with user defined function could be asked.

Unit 4
1. What is Pointer? Why it is important? List out Benefits of using a pointer.
2. How to Access address of a variable and How to access a variable through its Pointer.
3. Difference between Call by Value and Call by Reference.
4. Explain how pointers are Declared and initialized? Write a program that demonstrates
call by value and call by reference concept in function argument.
5. Give the difference between Pointer and Array.
6. Any Program of Pointer could be asked.
7. What is Structure? Why it is important.
8. How Structure is different from Array?
9. How to declare and initialize Structure and access the Structure Variables?
10. Explain how to pass a Structure as an argument in function?
11. Explain Nested Structure.
12. Difference between Structure and Union.
13. Give the difference between Structure and Array.
14. Explain Arrays of Structures and Arrays within Structures with example.
15. Write a Program (3 marks or 4 marks) (example of program that can be asked are
given below)
16. Write a program to print total and percentage of five subjects of five students using
structure.
17. Write a program to scan and print Employee ID and Employee Name of five
employees using structure.
18. List and explain different file Management functions in c.
19. List and explain various types of modes used in the file.
20. Explain any five functions of File.
21. Write a program to read data from File and display on screen.
22. Write a program to write data to the file.
23. Write a program to copy one file to another file
24. .Describe the following functions in C Language with Example.

1.) getc() and putc() 2.) gets() and puts() 3.) getch() and getche() 4. )getchar() and
putchar() 5.) fseek() 6.) fgets() and fputs() 7.) fscanf() and fprintf() 8.) scanf() and
printf()

—------------------------ ALL THE BEST —------------------------

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy