Practice TestsISCClass 11Computer Science

ISC practice test class XI: Best questions

ISC practice test Class 11: ISC Class 11 Computer Science practice test with important questions to revise before the computer exam.

Updated
Practice Tests

Watch java videos

ISC practice test is specially prepared for the students to revise the subject before the examination.

Download free Sample papers

Download the paper

ISC Class 11 Practice Test

PDF · 36 KB

Download PDF
Read the questions as text
1.​ D​ esign a menu driven program, that accepts an integer and displays the following menu (Make functions for all 3 options) ·​ d​ isplays the sum of the digits of the numbers ·​ d​ isplays whether the number is a palindrome or not ·​ d​ isplays whether the number is a special number or not 2​ . A class PrimeFac contains an array of 50 integers. Some of the members of the class are given below: ​Class name : PrimeFac Data members num[] : array to store integers. freq[] numbers. : array to store the frequency of prime factors of ​Member functions PrimeFac() : constructor to initialize array elements to 0. void enter() void frefac() freq[]. : to enter values into array num[] : to determine the frequency of prime factors of the numbers stored in num[] and assign it to void disp() : to display both the arrays. Specify the class PrimeFac giving details of the constructor, void enter(), void frefac() and void disp().You need not write the main function. 3. ​ ​Write a program to create a 4X4 array to store any 16 numbers. Print the following with the help of a menu a. The sum of left diagonal elements. b. The sum of right diagonal elements c. The sum of prime numbers present in the array d. Maximum and minimum element of the array