End Sem QB for Sem 1
End Sem QB for Sem 1
Define the term with example: Variable, Keyword, Constant, Operator, Identifier
List all conditional control statements used in C. Explain any two with syntax and example.
Explain with syntax ,if, if-else and nested if-else statements in „C‟ program
Explain Number System. State its use. Which Number System follows by Computer?
Show how break and continue statements are used in a C program, with
example
Write a C program to copy the contents of one file into another file using file handling functions.
What is array ? Explain the declaration and initialization of one dimensional
and two dimensional array with an example
Define a string. Explain any 4 string library functions with syntax and
example
Define string. List out all string manipulation function. Explain all four with
example
State the difference between while loop and do..while loop with suitable example
Define Operating System and List the features of Operating System. Give the names of Popular
Operating Systems
What is function ? Explain the difference between user defined and library
functions
What is recursion? Write a C program to find the factorial of a number using recursion.
What is the file and steps in processing a file? Write the basic file operations and file opening modes.
C program to print elements of array using pointer
#include <stdio.h>
int main() {
int arr[] = {1, 2, 3, 4, 5};
int *ptr = arr;
int i;
return 0;
}
Write a c program to create structure for student database rollnumber, name and marks. Accept
and display information for 5 students using structure.
Write a program in c language that defines the structure for the book entities, Book name, price, and pages.
Define Pointer. State the use of Pointer. Develop a program to print elements of array using pointer
What is pointer ? Explain how the pointer variable declared and initialized?