Summary

This document contains a question bank for a subject called 'SP'. The questions cover various aspects of C programming, including data types, loops, functions, pointers, and algorithms. The questions are suitable for secondary school students.

Full Transcript

**Question Bank for SP** - Difference between Low-Level language and High-Level language. - Write a program with gets () and puts () to take an input string from the user and then print it. - Define a nested structure named 'Manager' which will store id, name, department, salary and...

**Question Bank for SP** - Difference between Low-Level language and High-Level language. - Write a program with gets () and puts () to take an input string from the user and then print it. - Define a nested structure named 'Manager' which will store id, name, department, salary and 'Address' as a collection of building name, flat number, city. Write a program to display all these details. - Write an algorithm and draw flowchart "to calculate the perimeter and area of rectangle. Given its length and width. - Explain following Tokens: Identifiers, keywords, Constants, Character Set. - Write a program to check if a given string is a palindrome or not using standard string library functions. - Explain the string handling functions with examples. - Explain Call by Value & Call by reference Mechanism with example. - WAP to calculate sum and average of array elements. - Distinguish between algorithm and flowchart. - Explain data inputs and outputs functions used in C. - Define function and its need in C? WAP to check a number is prime or not using function. - WAP to implement the calculator with the following operation using switch case: 1. Add two numbers 2. Subtract two numbers 3. Multiply two numbers 4\. Divide two numbers - Write a program to find smallest among three numbers using "Logical operator." - WAP to perform matrix multiplication. - Write a program to judge whether year is leap year or not. - Define function and explain two ways of passing arguments in function in brief. - Write a program to calculate factorial of a number using function. - Explain classification of data types with examples. - Define operators with example - Explain continue statement, break statement? - What are branching Control Statements / Constructs in 'C'? - Write a program to swap two no.'s using pointers. - Write a program to print following patterns. a. 1 12 123 1234 12345 b) **\*** **\* \*** **\* \* \*** **\* \* \* \*** **\* \* \* \* \*** - Explain following :Pointer with syntax2. pointer to pointer with syntax 3. Dynamic Memory Allocation functions. - Write a program to check given number is zero, positive, or negative using Multiway decision Statement (i.e. using else if ladder). - Explain pointer operator with proper example. - Write a Program to check a number is prime or not using function. - Differentiate between entry controlled and exit controlled loop or while and do while loop - Explain structure and union. - Write a program to calculate Fibonacci series using Recursion. - Define Multi-dimensional array with syntax and write a program to perform transpose of a matrix. - What is the purpose of Switch Case? Write a menu driven program to perform all arithmetic operations based on user choice. - Explain in detail about one dimensional and Multi-dimensional array with an example. - What is Recursion? WAP to find factorial of number using Recursion. - Generate a structure named Book to store book details like title, author, and price. Write a C program to input details for three books, find the most expensive and the lowest priced books, and display their information.

Use Quizgecko on...
Browser
Browser