0% found this document useful (0 votes)
18 views2 pages

For PPS VIVA and END SEM EXAM SHORT QUESTIONS

The document serves as an introduction to programming, covering algorithms, flowcharts, and pseudo code, as well as the basics of C programming including compiling, executing, and understanding syntax and errors. It also addresses decision-making structures, arrays, functions, strings, pointers, structures, file handling, and preprocessor directives. Each section includes questions that explore fundamental concepts and differences within programming and C language specifics.

Uploaded by

saivarun437
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)
18 views2 pages

For PPS VIVA and END SEM EXAM SHORT QUESTIONS

The document serves as an introduction to programming, covering algorithms, flowcharts, and pseudo code, as well as the basics of C programming including compiling, executing, and understanding syntax and errors. It also addresses decision-making structures, arrays, functions, strings, pointers, structures, file handling, and preprocessor directives. Each section includes questions that explore fundamental concepts and differences within programming and C language specifics.

Uploaded by

saivarun437
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/ 2

UNIT I: Introduction to Programming

Algorithms, Flowcharts, and Pseudo Code

1. What is an algorithm? Can you give an example?


2. How do you represent an algorithm using a flowchart?
3. What is the difference between a flowchart and pseudo code?
4. What are the characteristics of a good algorithm?

Compiling and Executing Programs

5. What are the steps involved in compiling and executing a C program?


6. What is the role of the compiler?
7. What are syntax errors and logical errors? Can you give examples?

C Programming Basics

8. What is the structure of a C program?


9. What are keywords in C? Can you name a few?
10. What is the difference between variables and constants?
11. Explain the concept of data types with examples.
12. What is operator precedence and associativity?
13. How does type conversion occur in C (implicit and explicit)?
14. What are the differences between formatted and unformatted I/O functions?

UNIT II: Decision Making and Arrays

Branching and Loops

15. What is the difference between simple if, if-else, and nested if-else statements?
16. How does the switch-case statement work? What are its limitations?
17. Compare the for, while, and do-while loops with examples.
18. What is the purpose of break, continue, and exit statements?
19. How does the goto statement work? Why is it generally avoided?

Arrays

20. What is an array? How is it different from a variable?


21. How do you declare and initialize a one-dimensional array?
22. What is the difference between one-dimensional and two-dimensional arrays?
23. How can you perform a linear search in an array?
24. What is the difference between linear search and binary search?

UNIT III: Strings and Functions

Functions

25. What is structured programming? How is it implemented in C?


26. What is the syntax of a function declaration?
27. Explain the concept of function parameters and return types.
28. What are the different categories of functions in C?
29. What is recursion? Can you give an example?
30. What are the advantages and disadvantages of recursive functions?
31. What are the different storage classes in C?

Strings

32. What is a string in C? How is it different from a character array?


33. Explain the use of string handling functions like strlen, strcat, strcpy, strcmp, and strrev.
34. How can you perform string operations without using string handling functions?
35. What is an array of strings? How is it used?

UNIT IV: Pointers and Structures

Pointers

36. What is a pointer? How is it declared and initialized?


37. What is the difference between a null pointer and a void pointer?
38. What is a pointer to a pointer? Can you give an example?
39. How do you use pointers with arrays and structures?
40. What is a function pointer? Can you explain its usage with an example?

Structures and Unions

41. What is a structure? How is it declared and initialized?


42. How can you create an array of structures?
43. What is the difference between structures and unions?
44. What are nested structures? How are they used?
45. What is typedef and how is it used in C?

UNIT V: File Handling and Preprocessor

File Handling

46. What are text and binary files? How do they differ?
47. How do you create, read, and write to a file in C?
48. What is random access in files?
49. How do you handle errors in file operations?

Preprocessor

50. What are preprocessor directives in C?


51. What is the difference between #include and #define?
52. How is #ifdef used in a program?
53. What are command-line arguments? How are they used in C?
54. What is an enumeration data type?

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