Posts

Computer Science Paper 1 (Theory) - ISC 2018

Image
Computer Science Paper 1 (Theory) - ISC 2018 - Page-1 Computer Science Paper 1 (Theory) - ISC 2018 - Page-2 Computer Science Paper 1 (Theory) - ISC 2018 - Page-3 Computer Science Paper 1 (Theory) - ISC 2018 - Page-4 Computer Science Paper 1 (Theory) - ISC 2018  - Page-5 Computer Science Paper 1 (Theory) - ISC 2018 - Page-6 Computer Science Paper 1 (Theory) - ISC 2018 - Page-7 Computer Science Paper 1 (Theory) - ISC 2018 - Page-8 Computer Science Paper 1 (Theory) - ISC 2018 - Page-9

Address Calculation in Single and Double Dimension Array - ISC Computer Science

Image
Address Calculation in single (one) Dimension Array: Array of an element of an array say “A[ I ]” is calculated using the following formula: Address of A [ I ] = B + W * ( I – LB ) Where, B  = Base address W  = Storage Size of one element stored in the array (in byte) I  = Subscript of element whose address is to be found LB  = Lower limit / Lower Bound of subscript, if not specified assume 0 (zero) Example: Given the base address of an array  B[1300…..1900]  as 1020 and size of each element is 2 bytes in the memory. Find the address of  B[1700] . Solution: The given values are: B = 1020, LB = 1300, W = 2, I = 1700 Address of A [ I ] = B + W * ( I – LB ) = 1020 + 2 * (1700 – 1300) = 1020 + 2 * 400 = 1020 + 800 = 1820  [Ans] Address Calculation in Double (Two) Dimensional Array: While storing the elements of a 2-D array in memory, these are allocated contiguous memory locations. Therefore, a 2-D array mus...

ISC Board Important Question 2018 - Computer Science Theory Paper

Question and Answer 1. Differentiate between the keywords – “extends” and “implements”. Ans. Differentiate between the keywords – “extends” and “implements”. EXTENDS IMPLEMENTS extends keyword is used for inheriting a class from another class. Using the extends keyword we can inherit only a single class. implements keyword is used for implementing an interface from another class. Using the implements keyword we can implement multiple interfaces. 2. What is the rule pertaining to Access Specifiers in Method Overriding? Ans. The rule pertaining to Access Specifiers in Method Overriding is: The access specifier of the overriding method in the child class cannot have an access specifier which is more restrictive than the method in the parent class. The child class overriding method can either have an access specifier which is equal or less restrictive than that of the parent class method. Remember that the chain of access specifier is as fo...

COMPUTER SCIENCE PRACTICAL SOLVED QUESTIONS - ISC BOARD 2016

Question 1: A  Circular Prime  is a prime number that remains prime under cyclic shifts of its digits. When the leftmost digit is removed and replaced at the end of the remaining string of digits, the generated number is still prime. The process is repeated until the original number is reached again. A number is said to be prime if it has only two factors I and itself. Example: 131 311 113 Hence, 131 is a circular prime. Test your program with the sample data and some random data: Example 1 INPUT : N = 197 OUTPUT: 197 971 719 197 IS A CIRCULAR PRIME Example 2 INPUT : N = 1193 OUTPUT: 1193 1931 9311 3119 1193 IS A CIRCULAR PRIME Example 3 INPUT : N = 29 OUTPUT: 29 92 29 IS NOT A CIRCULAR PRIME Programming Code: import java.util.*; class CircularPrime_Q1_ISC2016 {      boolean isPrime(int n) // Function for checking whether a number is prime or not      {    ...