0% found this document useful (0 votes)
531 views3 pages

PPS Unit Wise Imp Questions

The document outlines important questions and topics for a programming course focused on problem-solving using C language, structured into five units. Unit I covers fundamental concepts of C programming, including storage classes, data types, and control statements. Subsequent units delve into arrays, strings, structures, file handling, functions, dynamic memory allocation, and searching and sorting algorithms.
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)
531 views3 pages

PPS Unit Wise Imp Questions

The document outlines important questions and topics for a programming course focused on problem-solving using C language, structured into five units. Unit I covers fundamental concepts of C programming, including storage classes, data types, and control statements. Subsequent units delve into arrays, strings, structures, file handling, functions, dynamic memory allocation, and searching and sorting algorithms.
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/ 3

Programming for Problem Solving UNIT WISE Imp Questions

R22-JNTUH

Unit-I(C programming languages)

• List and explain the storage classes in C with an example program?


• Define Algorithm, Flowchart and Pseudo code in C with examples?
• Describe the various loop statements available in C with examples?
• List and explain the various operators available in C with examples?
• Describe the various conditional control statements available in C with examples?
• Define and list the various data types, their sizes and the range ofValues supported by C
language?
• What are syntax and logical errors?
• Describe the various looping statements available in C with examples
• What is an identifier? Give example?
• What is Linker, Assembler, compiler and interpreter?
• Differentiate machine level, assembly level and high-level languages?
• Define stdin, stdout, stderr?
• What are the operator(s) precedence rule?
• List and explain unformatted I/O functions for strings (getchar(),gets(),putchar(),puts())
inC?
• List and explain formatted I/O functions (printf(), scanf()) in C?
• What are the command line arguments? Explain with example?
• What is the difference between Local and global variables?
• What is Type Conversion? Explain types of type conversions?
• List and define unary, binary and ternary operators in C?
• Write an Algorithm to find the roots of quadratic expression?
• Draw a flow chart to find the given number is prime or not?
• Draw a flow chart to find the given number is even or odd?
• Write a Pseudo code to find the maximum and minimum number from three numbers?
• Write a C Program to perform arithmetic operations using switch/case statements?
• Write a C Program to generate prime number sequence from 1 to given number (N)
• Write a C Program to find minimum and maximum numbers from the given three
numbers?
• Write a C Program to find the given number and or string is palindrome or not?
• Write a C program to print Fibonacci series up to nth value?
• Write a C program to print Fibonacci series from 1 to nth value?
• Write a C program to find the roots of quadratic expression?
Unit-II(Arrays,strings,structures and pointers)

• What is an array? Explain types of arrays with advantages, disadvantages?


• What is Pointer. Write the difference between array and pointer and also explain the
advantages, disadvantages of pointers?
• Explain the concept of c pointers with pointer declaration, initialization and accessing
values using pointers?
• What is pointer to pointer (Double pointer)? Explain with example?
• How do you create a pointer to structure?
• What are self-referential structures with example?
• How do you create arrays of structures?
• What do you mean by array of pointers? Write a C program to find the sum of all elements in
an array using a pointer.
• Define Union? Write the advantages of Union over Structure?
• Define structure with example program? Differentiate Structure and union?
• Define array of string? Describe declaration and initialization of one- and two-dimensional
strings with examples?
• Write a C Program to find reverse of a given string?
• Define array of array? Describe declaration and initialization of one- and two-dimensional
arrays an how to perform matrix multiplication operation using arrays?
• Write a C Program to find the length (No. of characters) of a given string?
• Write a C Program to display string elements after insertion of sub string into main string?
• Write a C Program to delete the no.of characters) from a given string?
• Write a C Program to display the reverse of given array elements?
• Write a C Program to display the given string is palindrome or not?
• Explain string handling/manipulation functions (strlen, strrev,
strcmp,strstr,strcpy,strcat,strlwr,strupr) in C with examples?
• Explain typedef and enumerated (enum) data type. Give examples?
• Write a C Program to display the various pyramid patterns (with *) using arrays?

Unit-III( Pre-processor and file handlings)

• List and explain the various pre-processor directives


(#define,#undef,#ifdef,#ifndef,#if,#else,#elif,#endif) with example programs?
• Write a c program to copy contents of one file into another file?
• What are random access files (fseek() ,ftell() and rewind())?
• Write the difference between sequential and random-access files?
• Why files are needed? Differentiate text files and binary files?
• What is Macro? How to define macro with example?
• Write various modes(w,r,a,w+,r+,a+) of file operations with examples?
• Write a C code to write and print the contents of a text file using fprintf()?
• Write a C code to read and print the contents of a text file using fscanf()?
• Write a C code to write and print the contents of a binary file using fwrite()?
• Write a C code to read and prnt the contents of a binary file using fread()?
Unit-IV(Functions and Dynamic memory allocation)

• Define a function and explain types of functions?


• Write a syntax how to declare an user defined function (signature of a function)?
• Classify the various user defined functions based on parameter and return type?
• Explain the concept of parameter passing techniques (using Call by Value & Call by
reference) with example?
• Differentiate call by value and call by reference?
• Differentiate recursive and Non-recursive function?
• What are the limitations of recursive function?
• What is recursion and explain the concept of recursion of the following problems
a) Factorial of a number b)Fibonacci series upto nth term c) swapping of two no.s
• Explain why dynamic memory allocation is needed? Explain malloc(), calloc(),
realloc() and free() functions with example programs?

Unit-V(Searching and Sorting)

• What is searching algorithm? Explain about linear search and binary search algorithms?
• Write a C Program to perform searching of an element (30) from the list of given array
(40 50 30 10 20) using linear searching method?
• Write a C Program to perform searching of an element (45) from the list of given array
(3 9 27 36 45 63) using binary searching method?
• What is sorting technique? Classify different types of sorting techniques in C?
• Explain the steps to be perform for the following Sorting algorithms in C?
a) Bubble sort b) Insertion Sort c) Selection Sort
• Write a C Program to sort list of given array (40 50 30 10 20) in ascending order using
bubble sort technique?
• Write a C Program to sort list of given array (1 2 3 4 5 6 7) in descending order using
Selection sort technique?
• Write a C Program to sort list of given array (20 10 60 40 30 15) in ascending order
using Insertion sort technique?
• What do you mean by complexity of an algorithm? Explain time complexity and space
complexity?
• Write Time Complexity of various searching (Linear & binary)?
• Write Time Complexity of various sorting (Bubble, Selection & insertion)?

You might also like