12 SCIENCE PRACTICAL EXAM CS SET2

CLASS 12 PRACTICAL EXAM SET 2 
Q-1. Write a program to input 10 elements in a list. And show STACK OPERATIONS menu driven as given below:                  Ø  Add element in a STACK (PUSH)
Ø  REMOVE ELEMENT FROM STACK (POP)
Ø  SHOW STACK ELEMENTS

Q-2. Write a program to input following DETAILS OF 5 STUDENT AND STORE  in ‘STUDENT.TXT’.
Ø  GRNO
Ø  NAME
Ø  MARKS OF ENG, PHY, CHE,MAT,CS
Ø  FIND THE TOTAL MARKS AND PRINT
Ø  FIND THE PERCENTAGE
Read all the data from ‘STUDENT.TXT’ and PRINT RESULT, IF STUDENT PASS IN ALL SUBJECT PRINT “PASS” OR “FAIL” (PASSING MARKS IN EACH SUBJCET IS 50)
x































Q-3. Write a menu driven program to take a number from the user and testØ  

        Given number is Prime or not
Ø  Sum of all the digits of Given number
Ø  Given number is  positive, negative or zero.

0 Comments