You are on page 1of 6

COMPUTER SCIENCE (868)

CLASS XII
There will be two papers in the subject: De Morgan’s laws; law of implication (p ⇒ q
≡ ~p ∨ q); law of biconditional ((p ⇔ q) ≡
Paper I: Theory……….. 3 hours….70 marks
(p ⇒ q) ∧ (q ⇒ p)); identity (p ≡ p); law of
Paper II: Practical…….. 3 hours….30 marks negation (~ (~p) ≡ p); law of excluded middle
(p ∨~p ≡ true); law of contradiction (p∧~p ≡
PAPER I –THEORY – 70 MARKS
false); tautology and contingency
Paper I shall be of 3 hours duration and be divided simplification rules for ∧, ∨. Converse,
into two parts. inverse and contra positive.
Part I (20 marks): This part will consist of (b) Binary valued quantities; basic postulates
compulsory short answer questions, testing of Boolean algebra; operations AND, OR and
knowledge, application and skills relating to the entire NOT; truth tables.
syllabus.
(c) Basic theorems of Boolean algebra
Part II (50 marks): This part will be divided into (e.g. duality, idempotence, commutativity,
three Sections, A, B and C. Candidates will be associativity, distributivity, operations with 0
required to answer two questions out of three from and 1, complements, absorption, involution);
Section A (each carrying 10 marks) and two questions De Morgan’s theorem and its applications;
out of three from Section B (each carrying 10 marks) reducing Boolean expressions to sum of
and two questions out of three from Section C (each products and product of sums forms;
carrying 5 marks). Therefore, a total of six questions Karnaugh maps (up to four variables).
are to be answered in Part II.
Verify the laws of Boolean algebra using truth
SECTION A tables. Inputs, outputs for circuits like half
1. Boolean Algebra and full adders, majority circuit etc., SOP and
POS representation; Maxterms & Minterms,
(a) Propositional logic, well formed formulae, Canonical and Cardinal representation,
truth values and interpretation of well formed reduction using Karnaugh maps and Boolean
formulae (wff), truth tables, satisfiable, algebra.
unsatisfiable and valid formulae. Equivalence
2. Computer Hardware
laws and their use in simplifying wffs.
(a) Elementary logic gates (NOT, AND, OR,
Propositional variables; the common logical
NAND, NOR, XOR, XNOR) and their use in
connectives (~ (not)(negation), ∧
circuits.
(and)(conjunction), ∨ (or)(disjunction), ⇒
(implication), ⇔ (biconditional); definition of (b) Applications of Boolean algebra and logic
a well-formed formula (wff); `representation gates to half adders, full adders, encoders,
of simple word problems as wff (this can be decoders, multiplexers, NAND, NOR as
used for motivation); the values true and universal gates.
false; interpretation of a wff; truth tables;
Show the correspondence between Boolean
satisfiable, unsatisfiable and valid formulae.
methods and the corresponding switching circuits
Equivalence laws: commutativity of ∧, ∨; or gates. Show that NAND and NOR gates are
associativity of ∧, ∨; distributivity; universal by converting some circuits to purely
NAND or NOR gates.

1
SECTION B tokens from an input stream (String Tokenizer
class).
The programming element in the syllabus (Sections B
and C) is aimed at algorithmic problem solving and 6. Primitive values, Wrapper classes, Types and
not merely rote learning of Java syntax. The Java casting
version used should be 5.0 or later. For programming,
Primitive values and types: byte, int, short, long,
the students can use any text editor and the javac and
float, double, boolean, char. Corresponding
java programs or any other development environment:
wrapper classes for each primitive type. Class as
for example, BlueJ, Eclipse, NetBeans etc. BlueJ is
type of the object. Class as mechanism for user
strongly recommended for its simplicity, ease of use
defined types. Changing types through user
and because it is very well suited for an ‘objects first’
defined casting and automatic type coercion for
approach.
some primitive types.
3. Implementation of algorithms to solve
7. Variables, Expressions
problems
Variables as names for values; named constants
The students are required to do lab assignments in
(final), expressions (arithmetic and logical) and
the computer lab concurrently with the lectures.
their evaluation (operators, associativity,
Programming assignments should be done such
precedence). Assignment operation; difference
that each major topic is covered in at least one
between left hand side and right hand side of
assignment. Assignment problems should be
assignment.
designed so that they are sufficiently challenging.
Students must do algorithm design, address 8. Statements, Scope
correctness issues, implement and execute the Statements; conditional (if, if else, if else if,
algorithm in Java and debug where necessary. switch case, ternary operator), looping (for, while,
Self explanatory. do while, continue, break); grouping statements in
blocks, scope and visibility of variables.
4. Programming in Java (Review of Class XI
Sections B and C) 9. Methods

Note that items 4 to 13 should be introduced Methods (as abstractions for complex user defined
almost simultaneously along with classes and operations on objects), formal arguments and
their definitions. actual arguments in methods. Static method and
variables. The this Operator. Examples of
While reviewing, ensure that new higher order
algorithmic problem solving using methods
problems are solved using these constructs.
(number problems, finding roots of algebraic
5. Objects equations etc.).
(a) Objects as data (attributes) + behaviour 10. Arrays, Strings
(methods); object as an instance of a class.
Structured data types – arrays (single and multi-
Constructors.
dimensional), address calculations, strings.
(b) Analysis of some real-world programming Example algorithms that use structured data types
examples in terms of objects and classes. (e.g. searching, finding maximum/minimum,
sorting techniques, solving systems of linear
(c) Basic input/output using Scanner from JDK;
equations, substring, concatenation, length, access
input/output exceptions. Tokens in an input
to char in string, etc.).
stream, concept of whitespace, extracting

2
Storing many data elements of the same type visibility. Subclass polymorphism and
requires structured data types – like arrays. dynamic binding.
Access in arrays is constant time and does not
Emphasize inheritance as a mechanism to
depend on the number of elements. Address
reuse a class by extending it. Inheritance
calculation (row major and column major),
should not normally be used just to reuse
Sorting techniques (bubble, selection, insertion).
some methods defined in a class but only
Structured data types can be defined by classes –
when there is a genuine specialization (or
String. Introduce the Java library String class and
subclass) relationship between objects of the
the basic operations on strings (accessing
super class and that of the derived class.
individual characters, various substring
operations, concatenation, replacement, index of (b) Interfaces in Java (Conceptual).
operations). Emphasize the difference between the Java
11. Recursion language construct interface and the word
interface often used to describe the set of
Concept of recursion, simple recursive methods
method prototypes of a class.
(e.g. factorial, GCD, binary search, conversion of
representations of numbers between different 13. Data structures
bases). (a) Basic data structures (stack, queue);
Many problems can be solved very elegantly by implementation directly through classes.
observing that the solution can be composed of Conversion of Infix to Prefix and Postfix
solutions to ‘smaller’ versions of the same notations.
problem with the base version having a known Basic algorithms and programs using the
simple solution. Recursion can be initially above data structures.
motivated by using recursive equations to define
certain methods. These definitions are fairly (b) Binary trees, tree traversals (Conceptual).
obvious and are easy to understand. The The following should be covered:
definitions can be directly converted to a
Binary trees: apart from the definition the
program. Emphasize that any recursion must have
following concepts should be covered: root,
a base case. Otherwise, the computation can go
internal nodes, external nodes (leaves),
into an infinite loop.
height (tree, node), depth (tree, node), level,
The tower of Hanoi is a very good example of how size, degree, siblings, sub tree, completeness,
recursion gives a very simple and elegant solution balancing, traversals (pre, post and in-order).
where as non-recursive solutions are quite
complex.
PAPER II: PRACTICAL – 30 MARKS
SECTION C
This paper of three hours’ duration will be evaluated
Inheritance, Interface, Polymorphism, Data
by the Visiting Examiner appointed locally and
structures
approved by the Council.
12. Inheritance, Interfaces and Polymorphism
The paper shall consist of three programming
(a) Inheritance; super and derived classes; problems from which a candidate has to attempt any
member access in derived classes; redefinition one. The practical consists of the two parts:
of variables and methods in subclasses;
1. Planning Session
abstract classes; class Object; protected
2. Examination Session

3
The total time to be spent on the Planning session and EVALUATION:
the Examination session is three hours.
Marks (out of a total of 30) should be distributed as
A maximum of 90 minutes is permitted for the
given below:
Planning session and 90 minutes for the Examination
session. Continuous Evaluation

Candidates are to be permitted to proceed to the Candidates will be required to submit a work file
Examination Session only after the 90 minutes of containing the practical work related to programming
the Planning Session are over. assignments done during the year.

Planning Session Programming assignments done 10 marks


throughout the year (Internal Evaluation)
The candidates will be required to prepare an
algorithm and a hand written Java program to solve Programming assignments done 5 marks
the problem. throughout the year (Visiting Examiner)

Examination Session Terminal Evaluation


The program handed in at the end of the Planning
Solution to programming problem on 15 Marks
session shall be returned to the candidates. The the computer
candidates will be required to key-in and execute the
Java program on seen and unseen inputs individually Marks should be given for choice of algorithm and
on the Computer and show execution to the Visiting implementation strategy, documentation, correct output
Examiner. A printout of the program listing including on known inputs mentioned in the question paper,
output results should be attached to the answer script correct output for unknown inputs available only to the
containing the algorithm and handwritten program. examiner.
This should be returned to the examiner. The program NOTE:
should be sufficiently documented so that the Algorithm should be expressed clearly using any
algorithm, representation and development process is standard scheme such as a pseudo code.
clear from reading the program. Large differences
EQUIPMENT
between the planned program and the printout will
result in loss of marks. There should be enough computers to provide for a
teaching schedule where at least three-fourths of the
Teachers should maintain a record of all the
time available is used for programming.
assignments done as part of the practical work through
the year and give it due credit at the time of Schools should have equipment/platforms such that all
cumulative evaluation at the end of the year. Students the software required for practical work runs properly,
are expected to do a minimum of twenty assignments i.e. it should run at acceptable speeds.
for the year. Since hardware and software evolve and change very
rapidly, the schools may have to upgrade them as
required.

4
Following are the recommended specifications as of
now:
The Facilities:
• A lecture cum demonstration room with a
MULTIMEDIA PROJECTOR/ an LCD and
O.H.P. attached to the computer.
• A white board with white board markers should
be available.
• A fully equipped Computer Laboratory that
allows one computer per student.
• Internet connection for accessing the World
Wide Web and email facility.
• The computers should have a minimum of
1 GB RAM and a P IV or higher processor. The
basic requirement is that it should run the
operating system and Java programming system
(Java compiler, Java runtime environment, Java
development environment) at acceptable speeds.
• Good Quality printers.
Software:
• Any suitable Operating System can be used.
• JDK 6 or later.
• Documentation for the JDK version being used.
• A suitable text editor. A development
environment with a debugger is preferred
(e.g. BlueJ, Eclipse, NetBeans). BlueJ is
recommended for its ease of use and simplicity.

5
SAMPLE TABLE FOR PRACTICAL WORK
Assessment of Assessment of the Practical Examination TOTAL MARKS
Practical File (To be evaluated by the Visiting Examiner only) (Total Marks are to
Unique be added and
Identification Internal Visiting Algorithm Java Program with Hard Output entered by the
S. No.
Number (Unique Evaluation Examiner internal Copy Visiting Examiner)
ID) of the candidate 10 Marks 5 Marks Documentation (printout)
3 Marks 7 Marks 2 Marks 3 Marks 30 Marks

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

Name of the Visiting Examiner:_________________________________


Signature: _______________________________
Date:________________________________

You might also like