C & C++ Language Practice Test for Computer Science Students.



ü  Calculation of simple interest,
ü  Calculation of gross salary,
ü  A quick demo of nested if-else,
ü  Program To calculate salary of an employee,
ü  Demonstration of nested loops,
ü  Odd loop using a while loop,
ü  Program to calculate prime number,
ü  Use of continue keyword in for  loop,
ü   Use of macro expansion and Macro expansion,
ü  Use of array,
ü  Demonstration of call by value,
ü   Demonstration of call by reference,
ü  Program to pass an array to a function by address,
ü  Introducing pointers,
ü  Subtraction of one pointer from another,
ü   Three ways of accessing a 2-D array,
ü  Program to demonstrate printing of a string,
ü   Program to demonstrate printing of string,
ü  Using pointer to access array elements,
ü  Program to input & print a string,
ü   Input of strings containing spaces,
ü  Program to copy string without changing source string,
ü  Structure,
ü  Memory map of structure elements,
ü  Usage of an array of structures,
ü  Passing address of a structure variable,
ü  Display contents of a file on screen,
ü  Files system,
ü  Count chars, spaces, tabs and newlines in a file,
ü  Receives strings from keyboard and writes them to file,
ü  Open a file,
ü  Reads strings from the file and displays them on screen,
ü   Writes records to a file using structure,
ü  Read records from a file using structure,
ü  Receives records from keyboard and writes them to a file in binary mode,
ü  Reads records from binary file and displays them on VDU,
ü  A menu-driven program for elementary database management.