Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Screenshot 2024-07-09 at 8.25.19 PM

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

 ! ! ! ! !

Java Programs -ISC & ICSE


FOR ISC & ICSE STUDENTS

EDUCATION / ICSE / ISC / JAVA PROGRAMS

Model Question Paper –


ISC computer science -
July 2018
 SEPTEMBER 26, 2018
 ANUJ
 LEAVE A COMMENT

PART – I (20 Marks)


Answer all questions.
While answering questions in this Part, indicate
brie8y your working and
reasoning, wherever required.

Question 1

1. State the involution law. Prove anyone


using truth table. [1]
2. Simplify expression using Boolean laws
F1=a.b’ + a’ + a’.b +b’

[1]
3. Find the complement of :

F 2 =(a’ +c’ +d)(b +c+d’)


(a+b’+c)
[1]

4. Verify using truth table ( ~p ^ q) V (p^q)


= q. [1]
5. Write the dual of F3 = p’.0 + q.1 +r’
[1]

Question 2

1. An array D [-2…10][3…8] contains


double type elements. If the base
address is
4110, Znd the address of D[5][5], when
the array is stored in Column Major
Wise. [2]
2. I) What do you understand by the
keyword : Integer
[2]
3. Write the syntax of a string input.
4. From the premises p àq and q àp,
conclude q’
+pq [2]
5. What are wrapper classes? Give two
examples.
[2]
o. State De Morgan’s laws. Verify anyone
using truth table [2]

Question 3

1. Given the following method


[5]

void fnM(int p)

int RM[]={3,6,9,12,15};

for( int j=1; j<=RM.length-1; j++)

RM[j-1] = RM[j-1] +RM[j];

RM[j] = RM[j-1] *3;

System.out.print(“OUTCOME=” +RM[p]);

}
i)What will be the output if p=2?
ii)What will be the output if p=4?
iii)Which token Znds the size of the array?
PART II (50 Marks)
Answer six questions in this part, choosing
two questions from Section A,
two from Section B and two
from Section C.
SECTION – A
Answer any two questions

Question 4

Given the Boolean function : F(A,B,C,D)


=Ʃ(0,2,4,5,8,9,10,12,13)
i) Reduce the above expression by
using 4 variable Karnaugh map,
showing

[4]
the various groups (i.e., octal, quads,
pairs).
ii) Draw the logic gate diagram for the
reduced expression. Assume that
the

[1]
variables and their complements are
available as inputs.
Given the Boolean function : F(P, Q,R,S)
=Π (0, 1, 3, 5,7, 8, 9,10,11,14,15)
Reduce the above expression by using 4
variable Karnaugh map, showing [4]
the various groups (i.e., octal, quads,
pairs).
Draw the logic gate diagram for the
reduced expression. Assume that the
[1]
variables and their complements are
available as inputs.

Question 5

Given the Boolean function: F(A,B,C,D)=


Ʃ(5,6,7,8,9,10,14)
a. Reduce the above expression by
using 4-variable K map, showing the
various groups (i.e., octet, quads and
pairs)
[4]

1. b. Draw the logic gate diagram for the


reduced expression. Assume that the
[1]
variables and their complements are
available as inputs.

Given the Boolean function: F (A, B, C,


D) =(A+B+C+D)(A+B+C+D’)(A+B+C’+D’)
(A+B+C’+D)(A+B’+C+D’)(A+B’+C’+D)
(A’+B+C+D)(A’+B+C’+D)
Reduce the above expression by using 4
variable K map showing the various
groups (i.e., octet, quads and
pairs).

1. Draw the logic gate diagram for the


reduced expression. Assume that the
variables and their complements are
available as
inputs

Question 6

A person is allowed to travel in a reserved


coach of the train, if he/she satisZes any one
of the criteria given below:

The person has a valid reservation ticket and a


valid ID, proof.

The person does not have a valid reservation


ticket, but holds a valid pass issued by the
Railway department with a valid ID proof.

The person is a senior citizen and holds a valid


pass issued by the Railway department along
with a valid ID proof.
The inputs are:

INPUTS
R The person has a valid
reservation ticket

P The person holds a valid pass


issued by the Railway department

D The person has a valid ID proof.

S The person is a senior citizen


(in all the above cases 1 indicates yes and 0
indicates no for all cases)

Output: T – Denotes allowed to travel [1


indicates yes and 0 indicates no.]
Draw the truth table for the inputs and outputs
given above and write the SOP expression for
T(R, P, D and
S).

What is redundant group?


[2]
Convert the following Boolean expression into
its Canonical SOP form: [3]
XY’ + X’Y + X’Z’

SECTION – B

Answer any two


questions.

Each program should be written in such a way


that it clearly depicts the logic of the problem.
This can be achieved by using mnemonic
names and comments in the program.
(Flowcharts and Algorithms are not required.)
The programs must be written in Java.

Question 7

A class SeriesSum is desgined to calculate the


sum of the following series: [10]
Sum = x2/1! + x4/3! + x6/5! + xn/(n-1)!
Some of the members of the class are given
below:
class name : SeriesSum
Data members/ instance variables :
x : to store an integer number
n : to store number of terms
sum : double variable to store
the sum of the series

Member functions:
SeriesSum(int xx, int nm) : constructor to
assign x=xx and n=nn
double Zndfact(int m) : to return
the factorial of m using recursive technique
double Zndpower(int x, int y) : to return x
raised to the power of y using recursive
technique
void calculate() : to calculate the
sum of the series by invoking the recursive
functions respectively.
void display() : to display the
sum of the series.
Specify the class SeriesSum, giving the details
of the above member data and methods only.
DeZne the main() function to create an object
and call the member function accordingly to
enable the task.

Question
8

1. Write a program in Java to perform


Bubble Sort in a given array of integers
in ascending order.
2. Write a program to obtain maximum and
minimum element in an array using
maximum( int[] t) and minimum( int[] t).
Also deZne a main() and call the
methods to enable the task.

Question
9
[10]

A class Binary deZnes a recursive function to


convert a binary number into its equivalent
decimal form.
Example: Let Binary number 1101, its
equivalent decimal 1*23 + 1*22 +0*21 + 1*20=
8+4+0+1=13.
The details of the class are given below:
class name : Binary
Data members/ instance variables :
bin : long integer data to
store binary number
de : long integer data to
store decimal number
Member functions/methods:
Binary() : default constructor
void readBin() : to read a binary
number in bin.
long convertDec(long): to convert the
binary number stored in bin into its equivalent
decimal using Recursive technique. Store the
decimal number into dec and return.
void Show() : to display the
binary number and its equivalent decimal
number stored in dec by invoking the recursive
function.

Specify the class Binary, giving the details of


the above member data and methods only.
DeZne the main() function to create an object
and call the member function accordingly to
enable the task.

SECTION – C

Answer any two questions.

Each program should be written in such a way


that it clearly depicts the logic of the problem.
This can be achieved by using mnemonic
names and comments in the program.
(Flowcharts and Algorithms are not required.)
The programs must be written in Java.

Question
10
[5]

Show the output of the following code;

( In all output questions you must give dry run/


working and after that Znal output should be
written.)

void fnCheck(int n)

int s=0,t=1;
do
{

n=n/t++;

System.out.println(“n =”+ n+ “t =” +t);

} while(n>0);

1. What will be the output if n=25?

Question
11
[5]

The following is a public member function of


some class which Znds whether an integer
number ‘n’ is a perfect number or not. There
are Zve places in the code marked as ?1?, ?2?,
?3?, ?4?, ?5? which must be replaced by the
expressions or statements so that the program
works correctly. Answer the questions given
after function.

void Check_Number(int a)

int s = ?1? ;

for (int q=1; q <n; q++)

if(a% ?2? ==0)

s=s+ ?3?;

if( ?4? === ?5?)

System.out.println(n+ “is a perfect number”);

else

System.out.println(n+ “is not a perfect


number”);

1. What is the expression or statement at ?


1?
2. What is the expression or statement at ?
2?
3. What is the expression or statement at ?
3?
4. What is the expression or statement at ?
4?
5. What is the expression or statement at ?
5?

Question
12
[5]

The following is a function of some class


which sorts an array arr[] in descending order
using the bubble sort technique. There are Zve
places in the code marked by ?1?, ?2? , ?3? , ?
4? , ?5? which must be replaced by an
expression or statement so the function works
correctly.

void bubblesort(int arr[]) {

int i, j, k, temp;

for(i=0;i < ?1? ; i++)

for( j=0; j< ?2? ; j++)

if(?4? < ?3?){

temp=arr[j];

arr[j]=arr[j+1];

arr[j+1]= ?5? ;

1. What is the expression or statement at ?


1?
2. What is the expression or statement at ?
2?
3. What is the expression or statement at ?
3?
4. What is the expression or statement at ?
4?
5. What is the expression or statement at ?
5?

Share this:

 Twitter  Facebook

Loading...

Related

Model Question Paper Model Question Paper


June 2018-ISC ISC Computer
Computer Science Science 2018
Model Question Paper PART – I (20 Marks)
ISC Computer Answer all questions.
Science 2018 PART – While answering
I (20 Marks) Answer questions in this Part,
all questions. While indicate briety your
answering questions
September 26, 2018 working and26, 2018
September
In "Education" In "Education"

ISC – Model Question


Paper -October 2018
Question 1 Draw the
truth table and logic
diagram for the 2
inputs XOR gate. [1]
Using the truth table,
verify the31,
October following
2018
In "arrays"

 COMPUTER, ISC, JAVA, MODEL QUESTION


PAPER

 PREVIOUS POST
Model Question Paper ISC Computer
Science 2018

Model Question Paper June 2018-ISC


NEXT POST

Computer Science

Leave a comment

Search …

RECENT POSTS

Surprising 7th Anniversary June 26, 2024

6th Year -Happy Anniversary July 2, 2023

Crystallization of Honey April 20, 2022

Sun Mark Honey – My First Pin April 13, 2022

ISC & ICSE Computer Science – Crash Course 2nd


SEM Board Exams April 5, 2022

Binary Search Program using methods – array- Class


12 Computer Science September 27, 2021

കുതിരാൻ തുര(ം|Kuthiran Tunnel|First trip thru tunnel|


Thrissur -Palakkad August 13, 2021

Methods in JAva…Have a look !!! August 13, 2021

A Good News !!! LAunching ONLine Tuition August 3,


2021

4 years – Happy Anniversary June 27, 2021

Amazon Best Sellers !!! Have a look June 3, 2021

Forest Raw Unprocessed Honey 100 %Natural No


Preservative ആേരാഗ-കരമായ ജീവിതtിനു 100%
ശുdമായ േതൻ June 1, 2021

Q & A session – only 10 questions from Methods


chapter & related June 1, 2021

Amla Honey – Harvest Natural Honey May 3, 2021

ISC Computer Science – Reduced Syllabus 2021 exam


April 29, 2021

ISC Computer Science- 12th – Question Bank – Good


for Revision April 29, 2021

Best SEllers – Grocery April 29, 2021

cHECK mY pHOTOGRAPHY !!! & wOrDiNZ April 6, 2021

2D Array – ISC 12th Computer- SOLVED SPECIMEN


QUESTION PAPER – 2021 April 6, 2021

Converting erst character into UpperCase April 5, 2021

ISC-Computer-Science-Practical–Previous-Year-2020–
Solved-Paper–Matrix-program-eu4ptr April 3, 2021

ISC Computer Science Practical – Previous Year 2020


– Solved Paper – Matrix program April 3, 2021

Cheruthen-Harvest Natural Stingless Bee Honey –


100% Natural Organic product from Western Ghats of
Kerala – 100 G February 4, 2021

Organic AMLA with Pure Natural Honey (Ingredients:


Organic Amla + Honey) Harvest Natural Amla Honey–
300 G February 4, 2021

Harvest Natural Honey Quality Honey for Better Life…


Taste the God’s gift !!! February 4, 2021

Happy New Year December 31, 2020

Welcome December 20, 2020

Array Programs November 4, 2020

Recursion – Java Programming October 27, 2020

to print possible combinations of numbers (234,


243,324,342,etc) October 13, 2020
To print Anagrams (eg: TOP,TPO,POT, etc..) October 13,
2020

Printing possible combinations of 4 digit number


October 10, 2020

Inheritance Program & Interface October 8, 2020

Magic Number & Pallindrome using iterative methods


October 7, 2020

This blog helps you ! October 2, 2020

Inheritance – Section C – 12th ISC September 24,


2020

Section B – Constructs & Functions – Part 2


September 24, 2020

ISC -Section B- Java Prorgramming – a quick revision


September 22, 2020

Evil Number September 14, 2020

Calm Music- Enjoy, Relax and Study – Part 1


September 7, 2020

ICSE – 10th Computer Applications – Chapter 1


September 3, 2020

How to map in KMap – Part 3 August 15, 2020

How to map in KMap ? Part 2 August 15, 2020

Boolean Algebra – KMap – Part 1 August 15, 2020

Happy Independence Day August 15, 2020

Datatypes in Java, rvalue & lvalue July 25, 2020

Sum of Series x2/1! + x4/3! + x6/5! + xn/(n-1)! July 22,


2020

Disarium Number using Methods July 15, 2020

Prime Numbers Factorial July 1, 2020

Prime Number June 25, 2020

Boolean Algebra Chapter1 PART 05 POS into


Canonical POS May 29, 2020

Boolean Algebra Chapter1 min/MaxTerms/Canonical/


Cardinal/SOP/POS May 29, 2020

Boolean Algebra – Solved Qns May 16, 2020

Boolean Algebra – Logic gates, Duality Principle May


11, 2020

ISC_12th_Chapterwise- Propositions May 10, 2020

Object as parameter May 3, 2020

this keyword – 2 Marks & 10 Marks May 3, 2020

Emirp Number March 12, 2020

enal & static keywords – Very Important 2 marks – ISC


12th February 5, 2020

Important 2 marks Q & A – Java Programming section


January 31, 2020

Half Adder, Full Adder & Encoder – Boolean Algebra-


Part 6 January 31, 2020

Boolean Algebra – KMAP – Part 5 January 28, 2020

K Map ( SOP & POS ) – Boolean Algebra – Part 4


January 28, 2020

100 Posts !!! January 26, 2020

Boolean laws – Boolean expression – Part 3 January


26, 2020

Conversion of Cardinal to Canonical form in Boolean


Algebra January 26, 2020

Important questions from Boolean Algebra – ISC 12th


std. January 26, 2020

ISC 12th Computer Science – Syllabus- an overview –


Paper I & Paper II January 26, 2020

Happy New Year 2020 December 31, 2019

enal keyword – variable into constant- 2 marks


December 25, 2019

Unique Number program by methods December 4,


2019

ISC- Computer Science – Paper 2 – Practical


November 24, 2019

Tips – ISC Computer Science Board Exam November


2, 2019

Sweetest moments- We will not speak with you :)


October 20, 2019

Back to blog October 20, 2019

Happy New Year December 31, 2018

Lucky Number November 24, 2018

Magic square matrix November 24, 2018

Kaprekar number November 22, 2018

IMEI number November 22, 2018

Pronic Number/oblong number/ rectangular number /


heteromecic number November 22, 2018

Display as Lower triangular matrix program in java


November 19, 2018

Diagonal matrix program in java November 19, 2018

Scalar matrix program in java November 19, 2018

Frequency of alphabets November 17, 2018

Decimal to roman number November 17, 2018

Data Structure- Dequeue Program In Java November


17, 2018

Remove repeated words November 17, 2018

Time in words November 17, 2018

Reverse the string November 17, 2018

Prime Triplets November 17, 2018

Exercise 1 :. Write a java program to check Prime


Triplets November 15, 2018

Twin prime number program in java November 15,


2018

Mobius Function in java November 15, 2018

MagicComposite November 15, 2018

Magic number November 15, 2018

Disarium number program in java November 15, 2018

Java program to convert from octal to decimal


November 15, 2018

Duck Number in java November 15, 2018

Java program – Factorial using recursion November


15, 2018

Decimal to hexadecimal program in java November 15,


2018

Fibonacci series using recursion in java November 15,


2018

Decimal to Binary conversion (without array)


November 15, 2018

Automorphic number in java November 14, 2018

Harshad /Niven number program in java November 14,


2018

Decimal to Binary conversion (using array) November


14, 2018

Hexadecimal to decimal program in java November 14,


2018

Evil Number/Odious Number in java November 14,


2018

Smith number November 14, 2018

Java program to check Unique Number November 12,


2018

Conversion of octal to decimal number November 12,


2018

String program using StringTokenizer November 9,


2018

Happy diwali November 6, 2018

50 posts !!! October 31, 2018

ISC – Model Question Paper -October 2018 October


31, 2018

ICSE-Computer Applications- October 2018 October


27, 2018

ICSE October 10, 2018

Armstrong number using recursive method (Q7- Model


QP) October 8, 2018

Model Question Paper -ISC Computer Science – Oct


2018 October 5, 2018

Gandhi jayanthi October 2, 2018

Perform a right circular shift and a left circular shift on


alternate rows of the array — by object October 1, 2018

Create a new string by the common characters present


in given two strings ( without repetition) October 1,
2018

N1 to create another number N2 by attaching the sum


of the digits of N1 behind it. October 1, 2018

Two matrices are equal( by object) – ISC 2018


September 28, 2018

Perfect number Program (ISC 2018)- recursive


technique September 28, 2018

Subtraction of matrix (object) September 27, 2018

Anti clockwise spiral matrix / anti clockwise circular


matrix – java September 27, 2018

Transpose of a matrix using object September 27,


2018

Object as parameter September 27, 2018

Model Question Paper June 2018-ISC Computer


Science September 26, 2018

Model Question Paper – ISC computer science -July


2018 September 26, 2018

Model Question Paper ISC Computer Science 2018


September 26, 2018

Model Question ICSE Computer Applications 2018


September 26, 2018

Sort the array elements in ascending order September


26, 2018

Shuze the matrix(2D)(1st row becomes the last, 2nd


row becomes the 1st & so on..) — by object September
26, 2018

Clockwise Spiral matrix/circular matrix in java


September 22, 2018

Random numbers September 1, 2018

oops concept August 31, 2018

Functions/Methods July 14, 2018

Recursive method June 23, 2018

Factorial using loop and using recursive method May


15, 2018

Welldone my dear students May 14, 2018

ISC Questions -2018 April 5, 2018

To end the sum of the given digits March 14, 2018

To end the sum of the erst ‘n’ natural numbers – while


loop March 14, 2018

To check whether a triangle is isoceles, equilateral,


scalene. March 14, 2018

To check a is divisible by b March 14, 2018

To input a Date and print in another format March 9,


2018

Frequency of each alphabet March 5, 2018

Write a program to input a word from the user and


remove the duplicate characters present in it. March 1,
2018

BLOG STATS

320,438 hits

Follow Java Programs -ISC & ICSE

SUBSCRIBE TO BLOG VIA EMAIL

Enter your email address to subscribe to this blog and


receive notiecations of new posts by email.

Email Address

SUBSCRIBE

Join 94 other subscribers

BLOG AT WORDPRESS.COM.

You might also like