IMP Question List for PPS (10050101) PDF

Summary

This document is a question bank containing important questions for a computer science course, likely for an examination. It covers a range of topics, from basic programming concepts to more advanced ideas such as algorithms and flowcharts. The questions are organized by units, suggesting a structured course.

Full Transcript

IMP QUESTION LIST FOR PPS (10050101) Sr. Question UNIT 1 1 Define: Assembler, Compiler, Interpreter, Operating System OR Define: algorithm, flowchart...

IMP QUESTION LIST FOR PPS (10050101) Sr. Question UNIT 1 1 Define: Assembler, Compiler, Interpreter, Operating System OR Define: algorithm, flowchart, compiler OR Define flowchart or algorithm to find area of a triangle 2 List out types of software with example. OR What is software and hardware? Explain different types ofsoftware. 3 Explain flowchart with suitable example. 4 Define algorithm and explain different symbols used inflowchart. OR Draw all symbols used in flowchart and draw flowchart tofind factorial number. 5 Explain types of languages used. 6 Draw and explain block diagram of computer system. OR Name the major components of computer system and givetheir function. UNIT 2 1 Describe the four basic data types. How could we extend therange of values they represent? OR Explain different data types of c language. OR List and explain fundamental data types of ‘C’language. 2 Explain derived data types. 3 Explain basic structure of C program. 4 Distinguish between the following pairs: getchar() and scanf() “%s” and “%c” getc() and getchar() 5 Discuss the meaning and purpose of sizeof operator, typedef keyword. 6 Explain different type of operators used in c language withtheir precedence and associativity. OR Discuss various operators used in c. OR List out the operators used in C language and explain anythree with Example OR Describe precedence and associativity of operators withexample. 7 Discuss the importance of stdio.h header file. OR List the header files used in c programming with theirproperties. OR What are header files? Name at least 3 with its usage. 8 Explain getch(), getchar(), gets(), puts(). 9 What do you mean by type conversion? Why it is necessary? OR What do you mean by type conversion? Give example. 10 Explain C tokens. 11 What is the difference between keyword and identifier?Explain rules for naming an identifier. OR Define variable and constant. Explain different types ofconstants. 12 State and explain features of c language. 13 What is type conversion and type casting? State differencebetween them. UNIT 3 1 Discuss general form of following decision makingstatements. if switch goto 2 List down three constructs for performing loop operations inC language. Write general form for same. OR Explain entry control loop and exit control loop with example and flowchart. OR Explain various types of loop available in C with example. OR Explain different loops used in C language. Write the difference between while loop and do..while loop. OR What is bottom tested loop? Give Example. OR Define general form of 1) do while loop 2) Nested if 3)goto Explain while loop with example. OR Explain for loop with example. 3 Explain break and continue statement with example. OR Explain: 1. Nesting if-else statement 2. Use of breakstatement 4 Write an algorithm and draw flowchart for following. Draw a flow chart that shows how to find root of quadratic equation ax2+bx+c. Find smallest number from given three numbers. To do sum of 10 elements read from a user. To print first N Fibonacci numbers. For finding odd and even number from given two numbers. To print sum of numbers between 1 and 100 which aredivisible by 3 and 5 To find the largest of the given three numbers. To add first 20 odd numbers. 5 Explain switch case with examples. 6 Explain if else if ladder , nested if..else with appropriateflowchart and C syntax. UNIT 4 1 Discuss initialization of one dimensional array withexample.OR What is array? Give an example of array. What areadvantages and disadvantages of array? OR Describe array with example. OR What is an array? Explain one dimensional and two dimensional array declarations and initialization with suitableexample 2 Why it is necessary to give the size of an array in array declaration? 3 What is string? In how many ways can you accept data instring?OR What is string? Explain with example to find a character fromstring. 4 What is string? How are they declared and also definethe null character. OR Why null value is used in string? Justify your answer withexample 5 Explain: strcat(), strcpy(), strcmp(), strlen(), strstr() OR Explain the difference string functions used in C withsuitable examples. OR Explain how string is defined in C. List the various inbuilt string functions. UNIT 5 1 Recall and describe different categories of functions. OR List out the categories of functions of C. Explain any onecategory with example. 2 Briefly discuss about scope of variable. OR Explain scope and life time of a variable. 3 Explain call by value and call by reference. OR Explain call by value (pass by value) and call by reference(pass by reference) with examples in brief. OR In user defined function, what is actual argument and formalargument? OR Discuss parameter passing technique used in C withexample. 4 What is user defined function? Explain actual argumentand formal arguments. OR What is UDF? Describe advantages of UDF. 5 What do you mean by recursive function / recursion? OR What is recursive function? Explain with example O.R. Define recursion. List the advantages of recursion. OR What care must be taken while writing a program with recursive function? 6 Explain different types of functions used in C language. 7 What is local and global variable? Explain with examples.Describe local and global variable with example. 8 What is function? Explain the function declaration, function definition, function prototype and function call with example. UNIT 6 1 What is pointer? How is a pointer declared & initialized? Give its benefits/advantages. OR What is pointer? Explain how pointers are declared andinitialized. State its advantages. OR What is pointer? Explain with example to print the address of variable using pointer. OR What is pointer? Which arithmetic operations are notvalid on pointers? OR What is pointer? Which arithmetic operations are validon pointers? 2 How to initialize pointer? Explain arrays of pointer usingsuitable sample program. 3 What is pointer? Clear it with examples and giveits use. What is pointer? How and when it is used? 4 What is pointer? How it is initialized? How it is differ from array. 5 What is pointer to pointer? Write suitable example todemonstrate the concept UNIT 7 1 Distinguish between structure and array. Discuss themeaning and purpose of struct keyword. OR What is structure? How does a structure differ from an array? How is an array of structure initialized? OR Explain nested structure and array of structure with example. 2 Which type of problem can be solved by structure? Explain it with C program. 3 Distinguish between structure and union. 4 Describe variable declaration in structure and accessing members of structure. OR Illustrate the concept of structure? Explain how we can access structure members. UNIT 8 1 Explain dynamic memory allocation. OR Explain the use of malloc and calloc function with theirsyntax. OR What is dynamic memory allocation? Explain memory allocation function briefly. OR Recall the definition of dynamic memory allocation? Differentiate between malloc and calloc? OR Show the use of malloc() function. 2 Distinguish between the following functions: printf and fprintf feof and ferror OR Explain showing proper syntax, following file operations: fprintf(), fscanf(), getc(), putc() 3 Write syntax of fseek() function and explain fseek(fp,-10,1)and fseek(fp,10,0).

Use Quizgecko on...
Browser
Browser