Professional Documents
Culture Documents
72742/GA - IV - J1/2014/Admn
UNIVERSITY OF CALICUT
Abstract
BVoc programme in Software Technology- under Modified BVoc Regulations 2014 – Question Bank
for 1st and 2nd Semester- implemented w.e.f 2014 admission onwards - Orders issued
G & A - IV - J
U.O.No. 10034/2015/Admn Dated, Calicut University.P.O, 25.09.2015
Usha K
Deputy Registrar
To
The Controller of Examinations, University of Calicut
Pareekshabhavan
Digital Wing
Forwarded / By Order
Section Officer
UNIVERSITY OF CALICUT
THENHIPALAM, CALICUT UNIVERSITY P.O
DEGREE OF
BACHELOR OF VOCATION (B.VOC)
IN
SOFTWARE TECHNOLOGY
QUESTION BANK
Semester I
(FOR THE STUDENTS ADMITTED FROM THE ACADEMIC YEAR 2014–15 ONWARDS)
UNDER THE
FACULTY OF SCIENCE
QUESTION BANK
Semester I
Course Course Name Cre Marks Hours/Week
Code dit Int Ext Tot T P Tot
GEC1EG01 (A01) The Four Skills For 4 20 80 100 4 4
Communication
GEC1ML02 (A07) Sargathmaka Rachanayum 4 20 80 100 4 4
Ashaya Vinimaya Sheshiyum
Hours: 4 Credits: 4
Module I
Set, Basic Definitions - Venn Diagrams and set operations - Laws of set theory -
Principle of inclusion and exclusion - partitions- Permutation and Combination -
Relations- Properties of relations - Matrices of relations - Closure operations on
relations - Functions - injective, surjective and bijective functions.
Module II
Matrices, Rank of Matrix, Solving System of Equations, Eigen Values and Eigen
Vectors, Inverse of a Matrix.
Module III
Module IV
Module V
Reference:
1. Kenneth H.Rosen, “ Discrete Mathematics and Its Applications”, Tata McGraw Hill,
Fourth Edition, 2002 (Unit 1,2 & 3).
2. Hopcroft and Ullman, “Introduction to Automata Theory, Languages and Computation”,
Narosa Publishing House, Delhi, 2002. ( Unit 4,5)
3. A.Tamilarasi & A.M.Natarajan, “Discrete Mathematics and its Application”, Khanna
Publishers, 2nd Edition 2005.
4. M.K.Venkataraman “Engineering Mathematics”, Volume II, National Publishing
Company, 2nd Edition,1989.
VERY
SHORT
ANSWER
QUESTION
(1
MARKS)
UNIT -‐ I
1. If
A,
B
be
any
two
sets,
then
𝐴𝑈𝐵
is
equal
to
a. A’
∪ B’
b. A’ ∩
B’
c. A
∩
B
d. A
∪
B
2. Let
A
= 1, 2, 3, 4 ,
B= 2, 3, 4, 5, 6 ,
then
A
∩
B
a. 2, 3, 4
b. 1, 2, 3
c. 5, 6
d. 1
3. If
A=
2, 3, 4, 8, 10 ,
B=
3, 4, 5, 10,12 ,
C= 4, 5, 6, 12, 14
then
𝐴 ∩ 𝐵 ∪ 𝐴 ∩ 𝐶
is
equal
to
a. 3, 4 10
b. 2, 8, 10
c. 4, 5, 6
d. 3, 5, 14
4. If
A,
B,
C
are
three
sets,
then
𝐴 ∩ 𝐵 ∪ 𝐶
is
a. 𝐴 ∪ 𝐵 ∩ 𝐴 ∪ 𝐶
b. 𝐴 ∩ 𝐵 ∪ 𝐴 ∩ 𝐶
c. 𝐴 ∪ 𝐵 ∪ 𝐴 ∪ 𝐶
d. None
of
these
5. If
a
set
A
has
n
elements,
then
the
total
number
of
subsets
of
A
or
the
number
of
elements
in
the
power
set
of
A
a. n
b. 𝑛!
c. 2!
d. 2𝑛
6. If
n(A)
=3
and
n(B)
=6
and
𝐴 ⊆ 𝐵
,
then
the
number
of
elements
in
𝐴 ∩ 𝐵
is
equal
to
a. 3
b. 9
c. 6
d. None
of
these
7. Which
set
is
the
subset
of
all
given
sets?
a. 1, 2, 3, 4, … . .
b. 1
c. 0
d. {
}
8. Which
of
the
following
is
a
null
set
a. A
= 𝑥: 𝑥 𝑖𝑠 > 1 𝑎𝑛𝑑 𝑥 𝑖𝑠 < 1
b. B
=
𝑥: 𝑥 + 3 = 3
c. C
=
∅
d. D
=
𝑥: 𝑥 ≥ 1 𝑎𝑛𝑑 𝑥 ≤ 1
a. 6
b. 15
c. 10
d. 12
12. If
nC2
=
nC3
,
then
the
value
of
nC4
is
a. 2
b. 3
c. 5
d. 4
13. If
Pr=
720
nCr
then
r
is
equal
to
n
a. 6
b. 4
c. 5
d. 7
14. There
are
four
letter
boxes
in
a
post
office.
In
how
many
ways
can
a
man
post
8
distinct
letters
a. 8
*
8
b. 84
c. 48
d. 8P4
15. The
number
of
ways
of
selecting
4
players
out
of
5
is
a. 5
b. 51
c. 30
d. 5C4
16. Factorial
of
10
=
________________
17. Factorial
of
15
=
________________
18.
0!
=____________
a. 1
b. 0
c. Infinite
d. None
of
the
above
19. A
set
A
has
4
distinct
elements.
Then
the
number
of
subsets
of
A
is
________
20. Cardinality
of
the
set
A= 10, 20, 21, 23, 11
is
________________
21. Cardinality
of
the
set
B= 11, 4, 2, 5, 2, 43, 23, 65
is
________________
!!
22. !! ∗(!!)
=
______________
!!
23. !! ∗(!!)
=
____________
UNIT
II
−1 0 0
24. If
A=
0 −1 0 ,
then
A2
is
0 0 −1
a. Null
matrix
b. Unit
Matrix
c. A
d. 2A
e. 4A
−1 0 0
25.
Write
the
order
of
matrix
A
= 0 −1 0
0 0 −1
1 𝑎 𝑏+𝑐
26. The
value
of
determinant
of
matrix
A=
1 𝑏 𝑐 + 𝑎
1 𝑐 𝑎+𝑏
27. What
is
a
singular
matrix?
1
28. If
A= 2 ,
then
AAT
=
3
a. 4
1
b. 4
3
1 2 3
c. 2 4 6
3 6 9
d. A
29. What
is
the
order
of
the
matrix
3 6
−1 1
1 9
a. 2*3
b. 3*2
c. 3*3
d. 2*1
30. What
is
the
entry
(2,3)
in
the
matrix
−1 −1 2
−1 2 2
−2 −1 8
a. -‐1
b. 2
c. 8
d. -‐2
31. What
is
the
order
of
the
matrix
−1 0 6 0
−21 0 6 0
−2 0 6 0
a. 4*3
b. 3*3
c. 2*2
d. 3*4
32. What
is
the
order
of
the
matrix
11 0 6 3 0
0 0 6 2 0
0 0 0 0 0
a. 5*4
b. 2*5
c. 3*5
d. 5*2
33. If
A
is
a
2*3
matrix
and
B
is
a
3*5
matrix.
Then
AB
is
a
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
matrix.
34. If
C
is
a
3*5
matrix
and
D
is
a
5*2
matrix.
Then
CD
is
a
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
matrix.
35. What
is
the
entry
(3,2)
in
the
matrix
0 1 6
0 2 4
0 1 5
a. 5
b. 1
c. 4
d. 2
UNIT
III
36. Which
of
the
following
proposition
is
tautology
a. 𝑝 ∨ 𝑞 → 𝑞
b. 𝑝 ∨ 𝑞 → 𝑝
c. 𝑝 ∨ 𝑝 → 𝑞
d. both
(b)
and
(c)
37. The
operation
carried
out
by
a
NOT
gate
is
also
said
to
be
a. Inverting
b. Converting
c. Reverting
d. Reversing
38.
In
propositional
logic
which
of
the
following
is
equal
to
𝑝 → 𝑞
?
a. ∽ 𝑝 → 𝑞
b. ∽ 𝑝 ⋁ 𝑞
c. ∽ 𝑝 ∽ 𝑞
d. 𝑞 → 𝑝
39. 𝑝 ⟶ 𝑞 ⟶ 𝑟
is
equivalent
to
a. (𝑝⋀𝑞) ⟶ 𝑟
b. (𝑝⋁𝑞) ⟶ 𝑟
c. (𝑝⋁𝑞) ⟶ ¬𝑟
d. None
of
these
b. False
UNIT
V
59. NFA
stands
for
___________
60. DFA
stands
for
___________
61. The
behavior
of
a
NFA
can
be
simulated
by
DFA
a. Always
b. Sometimes
c. Never
d. Depend
on
NFA
62. If
L1
and
L2
are
regular
languages
is/are
also
regular
language(s).
a. L1
+
L2
b. L1L2
c. L1*
d. All
of
above
63. A
language
is
regular
if
and
only
if
a. accepted
by
DFA
b. accepted
by
PDA
c. accepted
by
LBA
d. accepted
by
Turing
machines
64. There
are
________
tuples
in
finite
state
machine.
a. 4
b. 5
c. 6
d. unlimited
65. The
basic
limitation
of
finite
automata
is
that
a. It
can’t
remember
arbitrary
large
amount
of
information.
b. It
sometimes
recognizes
grammar
that
are
not
regular.
c. It
sometimes
fails
to
recognize
regular
grammar.
d. All
of
the
mentioned
66. ___________
states
are
called
the
halt
states.
a. ACCEPT
and
REJECT
b. ACCEPT
and
READ
c. ACCEPT
AND
START
d. ACCEPT
AND
WRITE
67. Language
of
finite
automata
is.
a. Type
0
b. Type
1
c. Type
2
d. Type
3
68. The
symbols
that
can’t
be
replaced
by
anything
are
called
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
a. Productions
b. Terminals
c. Non-‐terminals
UNIT -‐ 1
a. A=
1, 3, 5, 7, 9
b. B
=
1, 5, 10, 15, 20
7. Write
down
the
power
set
of
the
following
sets
a. A
=
1, 3, 5
b. B
=
𝑎, 𝑏, 𝑐
8. Explain
De
Morgan’s
Laws.
9. Draw
Venn
diagrams
of
a. 𝐴 ∪ 𝐵
b. 𝐴 ∩ 𝐵
10. What
is
finite
set?
11. What
is
infinite
set?
12. Explain
set
builder
form.
13. What
is
permutation?
14. Compare
permutation
and
combination?
15. What
is
meant
by
cardinality
of
a
set?
16. What
is
Universal
set?
17. Differentiate
between
equivalent
and
equal
sets.
18. What
is
subset?
19. Write
absorption
law
in
set
theory.
20. Write
distributive
law
in
set
theory.
21. Write
idempotent
law
in
set
theory.
22. Write
commutative
and
associative
law
in
set
theory.
23. What
is
a
function?
24. Compare
function
and
relation.
25. What
is
a
bijective
function?
26. What
is
a
surjective
function?
27. What
is
an
injective
function?
28. What
is
a
reflexive
relation?
29. What
is
irreflexive
relation?
30. What
is
anti-‐reflexive
relation?
31. What
is
symmetric
relation?
32. What
is
asymmetric
relation?
33. What
is
transitive
relation?
34. Explain
equivalence
relation.
UNIT II
2 0 0
39. If
A= 0 2 0 ,
then
find
A5
0 0 2
0 1 −2
40. If
the
matrix
−1 0 3
is
singular
then
find
the
value
of
𝜆
𝜆 −3 0
41. What
is
a
scalar
matrix?
42. When
two
matrices
are
equal?
Explain
with
example.
43. How
to
find
inverse
of
a
matrix?
44. What
is
orthogonal
matrix?
Write
an
example.
45. How
to
find
rank
of
a
matrix?
46. What
is
identity
matrix?
Write
an
example.
47. What
is
a
homogenous
equation?
Write
an
example.
48. What
is
Eigen
value?
49. What
is
Eigen
vector?
50. What
is
cofactor
matrix?
Write
an
example.
51. How
to
find
adjoint
of
a
matrix.
Explain
with
matrix.
UNIT III
UNIT V
SECTION
C
SHORT
ESSAY
(
4
MARKS)
UNIT -‐ 1
7. In
a
class
of
25
students,
12
have
taken
mathematics,
8
have
taken
mathematics
but
not
biology.
Find
the
number
of
students
who
have
taken
mathematics
and
biology
and
those
who
have
taken
biology
but
not
mathematics.
8. In
a
group
of
6
boys
and
4
girls,
four
children
are
to
be
selected.
In
how
many
different
ways
can
they
be
selected
such
that
at
least
one
boy
should
be
there?
9. How
many
3-‐digit
numbers
can
be
formed
from
the
digits
2,
3,
5,
6,
7
and
9,
which
are
divisible
by
5
and
none
of
the
digits,
is
repeated?
10. In
how
many
different
ways
can
the
letters
of
the
word
‘DETAIL’
be
arranged
in
such
a
way
that
the
vowels
occupy
only
the
odd
position?
11. From
a
group
of
7
men
and
6
women,
five
persons
are
to
be
selected
to
form
a
committee
so
that
at
least
3
men
are
there
on
the
committee.
In
how
many
ways
can
it
be
done?
12. In
how
many
ways
can
the
letters
of
the
word
‘LEADER’
be
arranged?
13. Let
A
=
1, 2,4,6,8,10,15 ,
B= 2, 6, 14, 10, 15, 8
and
C= 2,3,4,7,9,10
a. Find
𝐴 𝐵
b. Find
𝐴⋃𝐵
c. Find
𝐴⋃𝐵⋃𝐶
d. Find
𝐴⋂𝐵 ⋃𝐶
e. Find
𝐴⋂𝐵⋂𝐶 ⋃𝐴
14. Determine
the
domain
and
range
of
the
following
relations
a. 1, 2 , 1, 4 , 1, 6 , 1,8
b. 𝑥, 𝑦 : 𝑥 ∈ 𝑁, 𝑦 ∈ 𝑁 𝑎𝑛𝑑 𝑥 + 𝑦 = 10
c. 𝑥, 𝑦 : 𝑥 ∈ 𝑁, 𝑥 < 5, 𝑦 = 3
d. 𝑥, 𝑦 : 𝑦 = 𝑥 − 1 , 𝑥 ∈ 𝑍 𝑎𝑛𝑑 𝑥 ≤ 3
15.
Let
A
= 1, 2, 3, 4, … … … … … , 14 .
Define
a
relation
R
from
A
to
A
by
R= 𝑥, 𝑦 : 3𝑥 − 𝑦 = 0, 𝑤ℎ𝑒𝑟𝑒 𝑐, 𝑦 ∈ 𝐴
16. There
are
6
English,
4
Sanskrit
and
5
Hindi
books.
In
how
many
ways
can
they
be
arranged
on
a
shelf
so
as
to
keep
all
the
books
of
the
same
language
together?
17. If
A
and
B
are
sets,
prove
that
𝐴⋃𝐵 = 𝐴 − 𝐵 ⋃𝐵
18. Prove
that
𝐴⋃ 𝐵⋂𝐶 = (𝐴⋃𝐵)⋂(𝐴⋃𝐶)
19. If
𝐴 = Φ
and
𝐵 = {1, 2, 3}
what
are
𝐴 × 𝐵 𝑎𝑛𝑑 𝐵 × 𝐴
UNIT
II
7 6 2 2 6 2
A= −1 2 4 𝐵 = −1 3 4
3 3 8 3 2 7
a. Find
AB
b. Find
BA
25.
Let
1 2 2 2 −1 2
A=
−1 −2 4 𝐵 = −1 3 4
6 3 6 3 1 2
a. Find
A2
b. Find
A3
c. Find
B2
d. Find
(AB)2
26. Calculate
the
determinant
of
4 0 2
a. A=
8 2 −2
3 1 8
0 2 2
b. B=
−1 −9 4
1 3 9
7 −9 2
c. C
=
−1 −3 4
1 3 1
27. Calculate
the
determinant
of
−1 −1 2
a. A=
−1 2 2
−2 −1 8
7 1 2
b. B=
−3 2 4
5 −3 4
3 6 2
c. C=
−1 1 1
1 9 8
1 0 2
28. Find
inverse
of
the
matrix 1
3 −4
9 3 2
10 10 10
29. Find
the
inverse
of
the
matrix 10 20 −30
20 −10 30
30. Find
co-‐factor
matrix
of
the
following
matrix
3 1 1
1 −4 6
−2 2 3
31. Find
co-‐factor
matrix
of
the
following
matrix
7 1 7
2 0 4
2 4 2
UNIT III
a. ∀𝑥 𝑥 ⟶ 𝐴 𝑥
b. ∀𝑥 𝑥 ∧ 𝐴 𝑥
c. ∃𝑥( 𝑥 ⟶ 𝐴 𝑥 )
38. Check
whether
the
two
propositions
((𝑝 𝑞)⋁(𝑝⋀𝑟)) ⟶ 𝑠
and
((𝑝 ⋁ 𝑞 ⋀𝑟 )⋁𝑠
are
equivalent.
39. Symbolize
the
following
expressions
a. All
dogs
are
animals
b. Every
rose
is
red
c. Some
roses
are
red
d. Some
numbers
are
irrational.
UNIT IV
40. What
is
a
contest
free
language?
What
is
contest
free
grammar?
Explain
with
examples.
41. Draw
the
DFA
of
the
following
(where
q0
is
initial
state
and
q4
is
final
state)
0
1
q0
q1
q2
q1
q2
q3
q2
q3
q4
q3
q3
q2
q4
q1
q4
42. Draw
the
DFA
of
the
following
(where
q0
is
initial
state
and
q4
is
final
state)
0
1
q0
q2
q1
q1
q3
q1
q2
q2
q4
q3
q2
q4
q4
q2
q1
43. Draw
the
DFA
of
the
following
(where
q0
is
initial
state
and
q4
is
final
state)
0
1
q0
q4
q2
q1
q2
q1
q2
q3
q4
q3
q1
q1
q4
q2
q3
44. What
is
a
language?
What
languages
does
the
grammar
with
following
productions
generate?
Write
strings
generated
by
this
grammar.
𝑆 → 𝐴𝑎,
𝐴 → 𝐵,
𝐵 → 𝐴𝑎.
45. What
is
a
grammar?
When
two
grammars
are
equivalent?
Show
that
the
grammars
𝑆 → 𝑎𝑆𝑏 𝑏𝑆𝑎 𝑆𝑆|𝑎 and
𝑆 → 𝑎𝑆𝑏 𝑏𝑆𝑎 𝑎
are
not
equivalent.
46. Explain
following
with
examples;
a. Left
most
derivation
b. Right
most
derivation
c. Derivation
tree
d. Ambiguous
grammar.
e. Regular
grammar.
47. When
two
grammars
are
ambiguous?
Check
whether
the
grammar
𝑆 ⟶ 𝑎𝑆𝑏 𝑆𝑆 𝜆
is
ambiguous?
If
ambiguous
then
draw
the
derivation
tree
of
two
strings
generated
by
the
grammar.
UNIT V
49. What
is
a
regular
language?
Show
that
the
language
𝐿 = {𝑎𝑤𝑎; 𝑤 ∈
𝑎, 𝑏 ∗ }
,
Write
strings
accepted
by
this
language.
50. Draw
DFA
for
following
where
Σ = {𝑎, 𝑏}
a. All
strings
start
with
‘a’
b. All
strings
with
exactly
one
‘b’
c. All
strings
end
with
‘bb’.
51. Construct
a
DFA
that
accepts
the
language
generated
by
the
grammar
𝑆 ⟶ 𝑎𝑏𝐴,
𝐴 ⟶ 𝑏𝑎𝐵
𝐵 ⟶ 𝑎𝑏𝐶
𝐶 ⟶ 𝑎𝑎
52. Construct
a
DFA
that
accepts
the
language
generated
by
the
grammar
𝑆 ⟶ 01𝐴,
𝐴 ⟶ 10𝐵
𝐵 ⟶ 01𝐶
𝐶 ⟶ 00
53. What
is
a
NFA?
Draw
NFA
that
accept
the
language
𝐿 = {00𝑤11; 𝑤 ∈
0,1 ∗ }
SECTION
D
ESSAY
(15
MARKS)
UNIT -‐ 1
f. (A
–
B)c
4. If
A={
3,
5,
7,
9,
11},
B={
7,
9,
11,
13},
C={
11,
13,
15}
and
D={
15,
17};
find
a.
𝐴 ⋂
B
b. 𝐵 𝐶
c. 𝐴⋂𝐶⋂𝐷
d. 𝐴⋂𝐶
e. 𝐴⋂ 𝐵⋃𝐷
f. 𝐴⋂𝐵 ⋂ 𝐵⋃𝐶
g. 𝐴⋃𝐷 ⋂ 𝐵⋃𝐶
h. 𝐴⋂ 𝐵⋃𝐶
5. If
A={3,
6,
9,
12,
15,
18,
21},
B={4,
8,
12,
16,
20},
C={2,
4,
6,
8,
10,
12,
14}
and
D={5,
10,
15,
20};
find
a. 𝐴⋂𝐵 ⋂ 𝐵⋃𝐶
b. 𝐴 − 𝐵
c. 𝐵 − 𝐷
d. 𝐴⋃𝐷 ⋂ 𝐵⋃𝐶
e. 𝐴⋂ 𝐵⋃𝐶
f. (𝐴 − 𝐵) ⋃ (𝐶 − 𝐷)
g. 𝐷 − 𝐵 ⋃ 𝐴 − 𝐵
h. (𝐶 − 𝐷)⋂(𝐴 − 𝐶)
UNIT II
2 3 1
A=
1 2 3
and
hence
determine
its
rank.
3 1 2
11. Reduce
the
matrix
A,
to
its
normal
form
where
1 2 3
A=
2 4 7
and
hence
determine
its
rank.
3 6 10
12. How
that
the
system
of
equations
𝑥 + 2𝑦 + 𝑧 = 2
3𝑥 + 𝑦 − 2𝑧 = 1
4𝑥 − 3𝑦 − 𝑧 = 3
2𝑥 + 4𝑦 + 2𝑧 = 4
is
consistent
and
hence
solve
the
same
13. Using
matrix
method
solve
the
following
2𝑥 − 𝑦 + 3𝑧 = 9
𝑥 + 𝑦 + 𝑧 = 6
𝑥 − 𝑦 + 𝑧 = 2
14. Show
completely
the
system
of
equations
𝑥 − 2𝑦 + 𝑧 − 𝑤 = 0
𝑥 + 𝑦 − 2𝑧 + 3𝑤 = 0
4𝑥 + 𝑦 − 5𝑧 + 8𝑤 = 0
5𝑥 − 7𝑦 + 2𝑧 − 𝑤 = 0
UNIT
III
e. 𝑝 ⋁𝑞 ⋀ 𝑞 ⟶ 𝑝
20. Which
of
the
following
expressions
are
tautology
a. 𝑎 ⟶ 𝑏 ⋀ 𝑏 ⟶ 𝑐 ⟶ 𝑎 ⟶ 𝑐
b. 𝑎 ⟷ 𝑐 ⟶ ~𝑏 ⟶ 𝑎⋀𝑐
c. 𝑎⋀𝑏⋀𝑐 ⟶ 𝑐⋁𝑎
d. 𝑎 ⟶ (𝑏 ⟶ 𝑎)
21. Which
of
the
following
expressions
are
contradictions
a. (𝑎 ⟶ 𝑏) ⟶ 𝑐
b. 𝑎⋀𝑏⋀𝑐 ⟶ 𝑐⋁𝑎
c. 𝑎 ⟶ (𝑏 ⟶ 𝑎)
d. 𝑎 ⟶ 𝑏 ⋀ 𝑏 ⟶ 𝑐 ⟶ 𝑎 ⟶ 𝑐
e. 𝑎 ⟷ 𝑐 ⟶ ~𝑏 ⟶ 𝑎⋀𝑐
22. Which
of
the
following
logical
expressions
are
equivalent
a. 𝑝⋁~𝑞
b. ∽ ∽ 𝑝⋀𝑞
c. (𝑝⋀𝑞)⋁(𝑝⋀ ∽ 𝑞)⋁(∽ 𝑝⋀ ∽ 𝑞)
d. (𝑝⋀𝑞)⋁(𝑝⋀ ∽ 𝑞)⋁(∽ 𝑝⋀𝑞)
23. Which
of
the
following
logical
expressions
are
equivalent
a. (𝑝⋁𝑞)⋀(𝑝⋁ ∽ 𝑞)⋀(∽ 𝑝⋁𝑞)
b. 𝑝⋀~𝑞
c. ∽ ∽ 𝑝⋁𝑞
d. (𝑝⋁𝑞)⋀(𝑝⋁ ∽ 𝑞)⋀(∽ 𝑝⋁ ∽ 𝑞)
UNIT V
0 1
26. Draw
DFA
and
transition
function
of
the
following
transition
table.
Write
strings
accepted
by
the
DFA.
(Where
Q0
is
the
initial
state
and
Q5
is
the
final state)
0
1
Q0
Q3
Q2
Q1
Q1
Q2
Q2
Q4
Q3
Q3
Q2
Q5
Q4
Q5
Q1
Q5
Q4
Q2
27. Draw
DFA
and
transition
function
of
the
following
transition
table.
Write
strings
accepted
by
the
DFA.
(Where
Q0
is
the
initial
state
and
Q3
is
the
final
state)
a
b
Q0
Q2
Q1
Q1
Q1
Q3
Q2
Q3
Q2
Q3
Q4
Q2
Q4
Q5
Q4
Q5
Q2
Q4
PART
A
Answer
All
Questions
(1*10
=10Marks)
1. If
A=
2, 3, 4, 8, 10 ,
B=
3, 4, 5, 10,12 ,
C= 4, 5, 6, 12, 14
then
𝐴 ∩ 𝐵 ∪ 𝐴 ∩ 𝐶
is
equal
to
a. 3, 4 10
b. 2, 8, 10
c. 4, 5, 6
d. 3, 5, 14
2. If
C2
=
nC3
,
then
the
value
of
nC4
is
n
a. 2
b. 3
c. 5
d. 4
1
3. If
A= 2 ,
then
AAT
=
3
a. 4
1
b. 4
3
1 2 3
c. 2 4 6
3 6 9
d. A
4. If
C
is
a
3*5
matrix
and
D
is
a
5*2
matrix.
Then
CD
is
a
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
matrix.
5. 𝑝 ⟶ 𝑞 ⟶ 𝑟
is
equivalent
to
a. (𝑝⋀𝑞) ⟶ 𝑟
b. (𝑝⋁𝑞) ⟶ 𝑟
c. (𝑝⋁𝑞) ⟶ ¬𝑟
d. None
of
these
6. {∼ , ⋀}
is
a
functionally
complete
set
a. True
b. False
7. Pumping
lemma
is
generally
used
for
proving
that
a. Given
grammar
is
regular
b. Given
grammar
is
not
regular
c. Whether
two
given
regular
expressions
are
equivalent
or
not
d. None
of
these
8. A
given
grammar
is
called
ambiguous
if
a. Two
or
more
productions
have
the
same
non-‐terminal
on
the
left
hand
side
b. A
derivation
tree
has
more
than
one
associated
sentence
c. There
is
a
sentence
with
more
than
one
derivation
tree
corresponding
to
it
d. Brackets
are
not
present
in
the
grammar
9. If
L1
and
L2
are
regular
languages
is/are
also
regular
language(s).
a. L1
+
L2
b. L1L2
c. L1*
d. All
of
above
10. Language
of
finite
automata
is.
a. Type
0
b. Type
1
c. Type
2
d. Type
3
PART
B
Answer
Any
8
Questions
(2*8
=16Marks)
11. Which
are
different
methods
to
represent
a
set?
12. Write
down
the
power
set
of
the
following
sets
a. A
=
1, 3, 5
b. B
=
𝑎, 𝑏, 𝑐
𝑥 3𝑥 − 𝑦 3 2
13. If
=
,
find
x,
y,
z
and
w.
2𝑥 + 𝑧 3𝑦 − 𝑤 4 7
14. Write
an
example
of
a. Column
matrix
b. Upper
triangular
matrix
c. Diagonal
Matrix
15. What
is
cofactor
matrix?
Write
an
example
16. Construct
truth
table
for
~ ~𝑝 → 𝑞 ∧ 𝑞 ↔ 𝑝
17. For
each
of
the
following
write
the
equivalent
form
in
predicate
calculus
a. All
human
beings
are
mortal.
b. Every
orange
is
yellow.
c. Some
men
are
clever.
18. What
is
a
grammar?
19. What
is
the
difference
between
accepter
and
transducer
20. What
is
the
difference
between
DFA
and
NFA?
21. Explain
transition
function?
22. What
is
ambiguous
grammar?
PART
C
Answer
Any
6
Questions
(4*6
=24Marks)
23. Out
of
100
students
in
a
college,
39-‐play
tennis,
58-‐play
cricket
and
32-‐
play
hockey,
10-‐play
cricket
and
hockey,
11-‐play
hockey
and
tennis,
13
play
tennis
and
cricket.
How
many
play
a. All
the
three
games
b. Just
one
game
and
25
know
both.
Each
of
the
students
knows
either
Hind
or
English.
How
many
students
are
there
in
the
group?
c. In
a
survey
it
was
found
that
21
people
liked
product
A,
26
liked
product
B
and
29
product
C.
If
14
people
liked
product
A
and
B,
12
people
liked
products
C
and
A,
14
people
liked
products
B
and
C
and
8
liked
all
the
three
products.
Find
how
many
liked
product
C
only.
32. Find
the
inverse
of
matrices
2 3 1
a. 1 2 3
3 1 2
1 2 1
b. 3 2 3
1 1 2
33. Check
whether
the
following
are
equivalent
to
𝑝 ⟷ 𝑞
a. 𝑝 𝑞) ( 𝑝⋁𝑞
b. (𝑝 ⋀𝑞)⋁(𝑝⋀𝑞)
c. 𝑝 ⋁𝑞 ⋀ 𝑞 ⟶ 𝑝
d. (𝑞⋀𝑝 )⋁(𝑝⋀𝑞)
e. (𝑝⋀𝑞) ⟶ (𝑝⋁𝑞)
34. Convert
the
following
NFA
into
an
equivalent
DFA
0
1
0,1
q0
0,1
q1
q2
Hours: 4 Credit: 4
Module I
Module II
Digital Components, IC, Memory Unit, Types of Memories and their Characteristics,
Memory Hierarchy, Main Memory, Auxiliary Memory, Cache Memory, Virtual
Memory. I/O Devices and their Functions.
Module III
Module IV
Different Type of Software: System and Application Software, Utility Software, Open
Source Concept. Operating System Concept- Need and Functions of Operating
System, Types of Operating System, Batch Processing Operating System,
Multiprogramming Operating System, Real Time Operating System, Network and
Distributed Operating System, Web OS, Examples of OS and their Features.
Module V
References:
UNIT - I
1. A+0
=
-‐-‐-‐-‐-‐-‐-‐
a. A
b. 0
c. 1
d. None
of
these
2. A+A.B
=
-‐-‐-‐-‐-‐-‐-‐
a. 1
b. A
c. AB
d. B
3. A
2
–Variable
K-‐map
has
-‐-‐-‐-‐-‐
squares
a. 2
b. 4
c. 6
d. 8
4. For
what
logic
gate
the
output
is
compliment
of
the
input?
a. AND
b. OR
c. NOT
d. XOR
5. Which
of
the
following
is
invalid?
a. 0+A=A
b. A+A=A
c. 1+A=1
d. 1.A=1
6. Which
of
the
following
AND
operation
is
invalid
?
a. 0.0=0
b. 1.0=0
c. 0.1=1
d. 1.1=1
7. As
per
the
idem
potent
law
Boolean
expression
A+A=-‐-‐-‐-‐-‐-‐?
8. As
per
the
idem
potent
law,
Boolean
expression
A.A=-‐-‐-‐-‐-‐-‐-‐-‐-‐?
9. Compliment
of
the
Boolean
function
AB(CD+BC)?
10. -‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
technology
used
in
I
generation
computer?
11. -‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
technology
used
in
II
generation
computer?
12.
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
technology
used
in
III
generation
computer?
13. -‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
technology
used
in
IV
generation
computer
?
14. The
first
Macintosh
computer
was
from
a. First
generation
b.
Second
generation
c. Third
generation
d. Fourth
generation
15. Which
is
not
a
computer
classification?
a. Mainframe
b. Maxframe
c. Mini
d. Notebook
16. Which
of
the
following
is
not
a
microcomputer?
a. Laptop
PCs
b. Tablet
PCs
c. Desktop
PCs
d. None
of
above
17. The
first
general
purpose
electronic
digital
computer
in
the
world
was
a. UNIVAC
b. EDVAC
c. ENIAC
d. All
of
above
18. Who
designed
the
first
electronics
computer
ENIAC?
a. Von
Neumann
b. Joseph
M
Jacquard
c. J.
P.
Eckert
and
J.
W.
Mauchly
d. All
of
above
19. Artificial
Intelligence
is
associated
with
which
generation?
a. First
Generation
b. Second
Generation
c. Fifth
Generation
d. Sixth
Generation
20. _______
computers
are
also
called
personal
computers
a. Mainframe
Computer
b. Mini
Computers
c. Micro
Computers
d. Super
Computers
21. UNIVAC
is
a. Universal
Automatic
Computer
b. Universal
Array
Computer
c. Unique
Automatic
Computer
d. Unvalued
Automatic
Computer
22. The
basic
operations
performed
by
a
computer
are
a. Arithmetic
operation
b. Logical
operation
c. Storage
and
relative
d. All
the
above
23. The
two
major
types
of
computer
chips
are
a. External
memory
chip
b. Primary
memory
chip
c. Microprocessor
chip
d. Both
b
and
c
24. What
is
the
main
difference
between
a
mainframe
and
a
super
computer?
a. Super
computer
is
much
larger
than
mainframe
computers
b. Super
computers
are
much
smaller
than
mainframe
computers
c. Supercomputers
are
focused
to
execute
few
programs
as
fast
as
possible
while
mainframe
uses
its
power
to
execute
as
many
programs
concurrently
UNIT II
c. Input
media
d. All
of
the
above
43. Which
of
the
following
is
a
storage
device?
a. Tape
b. Hard
Disk
c. Floppy
Disk
d. All
of
the
above
44. The
metal
disks,
which
are
permanently
housed
in,
sealed
and
contamination
free
containers
are
called
a. Hard
disks
b. Floppy
disk
c. Winchester
disk
d. Flexible
disk
45. Which
of
the
following
memories
needs
refresh?
a. SRAM
b. DRAM
c. ROM
d.
All
of
above
46. Storage
capacity
of
magnetic
disk
depends
on
a. tracks
per
inch
of
surface
b. bits
per
inch
of
tracks
c. disk
pack
in
disk
surface
d. All
of
above
47. The
two
kinds
of
main
memory
are:
a. Primary
and
secondary
b. Random
and
sequential
c.
ROM
and
RAM
d. All
of
above
48. CD-‐ROM
is
a
a. Semiconductor
memory
b. Memory
register
c. Magnetic
memory
d. None
of
above
49. To
produce
high
quality
graphics
(hardcopy)
in
color,
you
would
want
to
use
a/n
a. RGB
monitor
b. Plotter
c. Ink-‐jet
printer
d. Laser
printer
50. Which
of
the
following
is
not
an
input
device?
a. OCR
b. Optical
scanners
c. Voice
recognition
device
d. COM
(Computer
Output
to
Microfilm)
51. The
modern
keyboard
typically
has
__________
Function
keys.
a. 10
b. 12
c. 14
d. 16
UNIT III
52. The
radix
of
the
hexadecimal
number
system
is
-‐-‐-‐-‐-‐-‐-‐?
a. 15
b. 16
c. 8
d. 2
53. The
number
of
bits
in
a
byte
is
a. 16
b. 5
c. 4
d. 8
54. How
many
bits
are
required
to
represent
256?
a. 7
b. 8
c. 9
d. 10
55. ASCII
is
the
acronym
for
-‐-‐-‐-‐-‐-‐-‐-‐-‐?
56. ASCII
stands
for
a. American
Standard
Code
for
Information
Interchange
b. American
Scientific
Code
for
International
Interchange
c. American
Standard
Code
for
Intelligence
Interchange
d. American
Scientific
Code
for
Information
Interchange
57. BCD
stands
for
-‐-‐-‐-‐-‐-‐-‐-‐-‐?
58. (1101)2+(1001)2=
-‐-‐-‐-‐-‐-‐-‐-‐-‐?
59. (45.3)6
=
(-‐-‐-‐-‐)7
60. (101.01)2=(-‐-‐-‐-‐-‐)3
61. EBSIDIC
is
the
acronym
for
-‐-‐-‐-‐-‐-‐-‐-‐?
62. The
value
of
the
MSD
in
the
binary
number
is
-‐-‐-‐-‐-‐-‐-‐-‐?
63. The
decimal
equaling
of
the
binary
number
100101
is
-‐-‐-‐-‐-‐-‐?
64. The
binary
equivalent
of
the
octal
number
270
is
-‐-‐-‐-‐-‐-‐-‐-‐?
65. Parity
bit
is
used
in
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
code?
66. The
word
length
of
a
computer
is
measured
in
a. Bytes
b. Millimeters
c.
Meters
d. Bits
67. Number
system
that
has
eight
different
symbols
to
represent
any
quantity
is
known
as
a. Binary
b. Octal
c. Decimal
d. Hexadecimal
68. ASCII
and
EBCDIC
are
the
popular
character
coding
systems.
What
does
EBCDIC
stand
for?
a. Extended
Binary
Coded
Decimal
Interchange
Code
UNIT - 1
1. What
is
mean
by
generation
in
terms
of
Computer
Technology?
2. How
many
computer
generations
are
there?
3. Write
a
short
note
on
third
generation
computers?
4. Define
the
logic
operator
AND
obtain
its
truth
table?
5. What
is
kmap
and
its
relevance?
6. Design
a
half
subtractor.
Obtain
its
truth
table.
7. Design
a
full
substracotr
using
basic
gates
8. What
is
a
decoder.
Explain
its
use.
9. What
is
logic
gate?
10. What
is
AND
gate
11. What
is
OR
12. What
is
NOT
13. What
NAND
14. What
is
NOR
15. Why
are
AND,
NOT,
OR
are
said
to
be
logically
complete
16. Why
is
NAND
is
called
universal
gate
17. Why
NOR
is
called
universal
gate.
18. What
is
XOR
gate.
19. Define
the
logic
operations
XOR
20. Define
the
logic
operations
XNOR
21. What
is
a
half
substractor
22. What
is
a
full
subtracotr
23. What
is
a
half
adder
24. What
is
full
adder
25. What
is
decoder
26. What
is
a
encoder
UNIT II
UNIT III
UNIT IV
UNIT V
102.
Draw
the
graphical
representation
of
big
Ω?
103.
What
is
mean
by
big
O
notation?
104.
What
are
the
symbols
used
in
flowchart?
105.
Define
Top
down
design
algorithm?
106.
What
is
the
analysis
of
algorithm
efficiency?
107.
Which
are
the
criteria
followed
by
an
algorithm?
108.
Define
different
problem
solving
techniques?
109.
Which
are
the
symbols
used
in
flow
charts?
110.
Define
flowcharts
with
an
example?
111.
Explain
different
steps
for
problem
solving?
112.
What
are
the
features
of
algorithm?
113.
How
we
can
analyze
the
complexity
of
algorithm?
SECTION C SHORT ESSAY ( 4 MARKS)
UNIT I
UNIT II
UNIT III
23.
What
is
the
difference
between
fixed
point
representation
and
floating
point
representation?
24.
Prepare
truth
table
for
the
following
Boolean
expression
1.A+B
2.AB+BC
3.(A+B)C
4.AB’+(AC)’
25.
Write
a
short
note
on
other
binary
codes?
26.
What
is
the
procedure
for
finding
2’S
compliment
27.
What
is
the
procedure
for
finding
1’s
compliment
28.
Convert
each
hexadecimal
number
to
decimal?
a.ABCD
b.F3EB
c.5C2.01
d.1A
29.
Prove
the
following
1.ABC+A’B+ABC’=B
2.AC+A’BC=C(A+B)
30.
Prove
the
following
1.AB+AB’=A
2.(A+B)(A+B’)=A
UNIT IV
31.
What
are
the
needs
and
functions
of
operating
system?
32.
What
is
web
OS?
33. What is system software? Explain with an example?
34. What is application software? Explain with an example?
35. Define Utility software with an example?
36. What do you mean by open source concept?
37. What are the needs and functions of operating system?
38. Explain batch processing OS?
39. Explain Multiprogramming OS?
UNIT V
40.
State
and
prove
Demorgan's
theorem?
41.
What
is
top
down
design?
42.
Define
the
feature
of
algorithm?
43.
What
are
the
problem
solving
techniques?
44.
What
are
the
criteria
that
are
followed
by
an
algorithm?
45.
Explain
Analysis
of
algorithm
efficiency?
46.
Explain
different
symbols
used
in
flowcharts?
47.
Explain
different
steps
for
problem
solving
with
an
example?
SECTION D ESSAY (15 MARKS)
UNIT I
1. Write
the
procedure
for
the
design
of
combinational
circuit
and
explain
on
basis
of
full
subtractor
2. Why
is
NAND
and
NOR
gates
are
called
a
universal
gate
?justify
3. Solve
the
expression
using
K-‐map
F(ABCD)=A’BC’D+A’BC’D’+ABCDAB’C’D+A’B’C’D+AB’C’D’
4. Obtain
the
simplified
expression
for
the
Boolean
function
F=(A’+B’+C’)(A+B’C’)(A’+B+D’)(B+C’+D’)
in
standard
SOP
and
POS
form
5. Explain different generations of computers?
UNIT II
6.
Explain
cache
memory.
Describe
the
memory
mapping
mechanism
used
in
cache
memory?
7.
Explain
different
types
of
memory?
8.
Explain
different
input,
output
devices?
9.
Explain
digital
components
of
a
computer
system?
10.
Define
and
explain
primary
memory
and
secondary
memory?
UNIT III
UNIT IV
16.
Explain
detail
about
operating
system
concept?
17.
Explain
different
types
of
softwares?
18.
Explain
different
types
of
operating
system
with
example?
19.
Define
system
software?
Explain
different
classification?
20.
Define
Application
software?
Explain
different
classification?
UNIT V
21.
State
and
prove
De
Morgan’s
laws.
Explain
with
example.
22. Explain different problem solving techniques? Explain with example.
24. Definition and features of algorithm with example?
25. Explain criteria followed by an algorithm? Explain with example.
B.Voc
Software
Technology
Model
Question
Paper
SDC1ST01 Introduction to Computer Science & Programming
PART
A
Answer
All
Questions
(1*10
=10Marks)
1. Which
of
the
following
is
invalid?
a. 0+A=A
b. A+A=A
c. 1+A=1
d. 1.A=1
2. Who
designed
the
first
electronics
computer
ENIAC?
a. Von
Neumann
b. Joseph
M
Jacquard
c. J.
P.
Eckert
and
J.
W.
Mauchly
d. All
of
above
3. Which
of
the
following
is
not
purely
output
device?
a. Screen
b. Printer
c. Speaker
d. Plotter
4. Which
of
the
following
is
used
for
manufacturing
chips?
a. Control
bus
b. Control
unit
c. Parity
unit
d. Semiconductor
5. How
many
bits
are
required
to
represent
256?
a. 7
b. 8
c. 9
d. 10
6. ASCII
stands
for
a. American
Standard
Code
for
Information
Interchange
b. American
Scientific
Code
for
International
Interchange
c. American
Standard
Code
for
Intelligence
Interchange
d. American
Scientific
Code
for
Information
Interchange
7. A
________________
is
a
program
that
translates
a
HLL
program
into
equivalent
machine
language.
8. A
________________
is
a
program
that
translates
a
HLL
program
into
equivalent
machine
language.
9. A _________________design works best when you have dearly defined
requirements.
10. Pictorial representation of an algorithm is called _______________
PART
B
Answer
Any
8
Questions
(2*8
=16Marks)
11. Design
a
half
subtractor.
Obtain
its
truth
table.
12. What
is
NOT
13. What
NAND
14. What
is
the
terms,
bit,
byte,
and
word?
15. What
is
dynamic
ram?
Explain
its
structure?
16. What
is
a
system
bus?
17. Convert
1100101110100102
to
octal.
18. Convert
56710
to
binary.
19. Write
a
short
note
on
application
software?
20. Define
utility
software?
21. Define
Top
down
design
algorithm?
22.
What
is
the
analysis
of
algorithm
efficiency?
PART
C
Answer
Any
6
Questions
(4*6
=24Marks)
23. Design
a
full
subtractor?
obtain
its
truth
table
and
expression?
24. Using
NAND
gate
to
design
OR
and
AND
25. Explain about USB Flash Drives.
26. Briefly
explain
the
memory
hierarchy?
27. Prepare
truth
table
for
the
following
Boolean
expression
a. A+B
b. AB+BC
c. (A+B)C
d. AB’+(AC)’
28. 25.
Write
a
short
note
on
other
binary
codes?
29. Explain Multiprogramming OS?
30. What
are
the
problem
solving
techniques?
PART
D
Answer
Any
2
Questions
(15*2
=30Marks)
31. Obtain
the
simplified
expression
for
the
Boolean
function
F=(A’+B’+C’)(A+B’C’)(A’+B+D’)(B+C’+D’)
in
standard
SOP
and
POS
form
32. Explain
cache
memory.
Describe
the
memory
mapping
mechanism
used
in
cache
memory?
33. Discuss
the
rule
for
signed
binary
arithmetic.
Illustrate
with
example
34. State
and
prove
De
Morgan’s
laws.
Explain
with
example.
Hours: 4 Credit: 4
Module I
What
is
HTML,
Introduction
to
HTML,
General
Structure
of
an
HTML
page,
Basic
Tags
in
HTML,
Formatting
tags,
working
with
Images,
Headings,
New
tags
in
HTML5.
Module II
Links,
Anchor
tag,
Lists,
Unordered
Lists,
Ordered
Lists,
Definition
Lists,
Tables,
Frames,
Frameset,
Forms,
FORM
and
INPUT
tag,
Text
Box,
Radio
Button,
Checkbox,
SELECT
tag
and
Pull
Down
Lists,
Hidden,
Submit
and
Reset,
video
audio
and
other
multimedia,
Other
form
Controls,
HTML
validator.
Module III
CSS:
Inline
Styles,
Embedded
Style
Sheets,
Linking
External
Style
Sheets,
Style
Specification
Formats
Selector
Forms,
Color,
Property
Value
Forms,
Font
Properties,
List
Properties,
Alignment
of
Text,
the
Box
Model,
Background
Image,
The
<span>
and
<div>
Tags
Module IV
JavaScript
Variables
and
Data
Types,
Declaring
Variables,
Data
Types,
Statements
and
Operators,
Control
Structures,
Conditional
Statements,
Loop
Statements,
Functions,
Message
box
in
JavaScript,
Dialog
Boxes,
Alert
Boxes,
Confirm
Boxes,
Prompt
Boxes,
JavaScript
with
HTML,
Events,
Event
Handlers,
Forms.
Module V
References:
3. The
Definitive
Guide
to
HTML5,
Adam
Freeman,
Apress
4. Beginning
HTML5
and
CSS3,
Christopher
Murphy,
Richard
Clark,
Oli
Studhoime,
Manian,
Apress
5. JavaScript:
The
Definitive
Guide,
David
Flanagan,
O’Reilly.
UNIT -‐ I
a. <h>
…..</h>
b. <header>……</header>
c. <head>………</head>
d. none
of
the
above
20. Title
element
of
the
header
section
of
an
HTML
page
is
defined
using
a. <t>………</t>
b. <title>……..</title>
c. <head>……..</head>
d. <h>…………</h>
21. The
body
part
of
an
HTML
document
must
be
enclosed
in
a. <body>………</body>
b. <title>……..</title>
c. <b>………</b>
d. <head>……..</head>
22. How
do
you
add
a
comment
into
HTML?
a. <-‐comment-‐>
b. <!-‐
-‐Comment
-‐>
c. <-‐
-‐
comment
-‐-‐
>
d. <comment
/>
23. Who
is
making
the
Web
standards?
a. W3C
b. Mozilla
c. Microsoft
d. IEEE
24. The
<I>
tag
makes
text..
a. Bold
b. Inline
c. Italic
d. Invisible
25. Which
tag
is
used
to
insert
images
into
your
page
a. Pic
b. Scr
c. Img
d. Picture
UNIT
II
26. Which
tag
allows
you
to
add
a
row
in
a
table?
27. Which
tag
is
used
to
create
numbered
list?
28. Which
tag
is
used
to
create
bulleted
list?fhsf
29.
<TD>
…
</TD>
tag
is
used
to
create
_________
30.
ISP
stands
for
________
31. A
___________
is
a
vertical
collection
of
cells
in
a
table.
a. Row
b. Column
c. Cell
d. Head
32. Choose
the
correct
HTML
left-‐align
the
content
inside
a
table
cell
a. <td
valign=”left”>
b. <td
valign=left>
c. <td
align=”left”>
d. <td
leftalign>
33. To
create
a
bulleted
list
use
a. <il>
b. <ul>
c. <ol>
d. <bl>
34. To
start
a
list
at
the
count
of
3,
use
which?
a. <ol
start=”3”>
b. <ol
begin=”3”>
c. <ol
start=3>
d. <ol
begin=3>
35. Which
Property
tells
how
many
rows
a
cell
should
span?
a. Colspan=n
b. Columnspan=n
c. Rowspan=n
d. Rows=n
36. Bullets
in
unordered
lists
can
only
be
circles.
a. True
b. False
37. How
can
you
open
a
link
in
a
new
browser
window?
a. <a
href="url"
new>
b. <a
href="url"
target="new">
c. <a
href="url"
target="_blank">
d. <a
href=""
action="new"
>
38. What
is
the
correct
HTML
for
making
a
text
area?
a. <input
type="textarea"
/>
b. <input
type="textbox"
/>
c. <textarea>
d. <input
textarea>
39. What
is
the
correct
HTML
for
adding
a
background
color?
a. <background>yellow</background>
b. <body
style="background-‐color:yellow;">
c. <body
bg="yellow">
d. None
of
the
above
40. What
is
the
correct
HTML
for
making
a
checkbox?
a. <input
type="checkbox">
b. <check>
c. <checkbox>
d. <input
type="check">
41. What
is
the
correct
HTML
for
inserting
an
image?
a. <image
src="image.gif"
alt="MyImage">
a. Select
box
b. File
select
box
c. Button
d. None
of
the
above
51. Hidden
controls
created
by
a. <input>
element
b. <hide>
element
c. <hidden>
element
d. None
of
the
above
52. Which
of
the
following
cannot
be
created
by
<input>
element
a. Select
box
b. File
select
box
c. Button
d. Check
boxes
UNIT
III
53. Which
is
the
correct
CSS
syntax?
a. body
{color:
black;}
b. body:color=black;
c. {body;color:black;}
d. {body:color=black;}
54. Which
CSS
property
controls
the
text
size?
a. text-‐size
b. font-‐size
c. font-‐style
d. text-‐style
55. How
do
you
display
hyperlinks
without
an
underline?
a. a
{text-‐decoration:no-‐underline;}
b. a
{text-‐decoration:none;}
c. a
{decoration:no-‐underline;}
d. a
{underline:none;}
56. Which
CSS
property
is
used
to
change
the
text
color
of
an
element?
a. color
b. fgcolor
c. text-‐color
d. fcolor
57. How
do
you
add
a
background
color
for
all
<h1>
elements?
a. all.h1
{background-‐color:#FFFFFF;}
b. h1.all
{background-‐color:#FFFFFF;}
c. h1
{background-‐color:#FFFFFF;}
d. all.h1
background-‐color:#FFFFFF;
58. How
do
you
insert
a
comment
in
a
CSS
file?
a. '
this
is
a
comment
b. //
this
is
a
comment
c.
/*
this
is
a
comment
*/
c. <script>
d. <javascript>
75. ______
tag
is
an
extension
to
HTML
that
can
enclose
any
number
of
JavaScript
statements.
a. <SCRIPT>
b. <BODY>
c. <HEAD>
d. <TITLE>
76.
JavaScript
is
__________
language
a. Application
b. Scripting
c. Programming
d. None
of
these
77. JavaScript
code
is
written
inside
file
having
extension
a. .Jsc
b. .js
c. .jscript
d. .jvs
78. _________
keyword
is
used
to
declare
variables
in
javascript.
a. Var
b. Dim
c. String
d. Int
79.
If
x=110
&
y=7
then
x%=y
,
what
is
the
value
of
x
after
executing
x%=y?
a. 4
b. 3
c. 2
d. 5
80. In
JavaScript,
Window.alert()
is
used
to
allow
user
to
enter
something
a. True
b. False
81. ______________converts
a
string
to
floating
point
numbers.
a. eval
b. ParseInt
c. ParseFloat
d. None
of
the
above
82. How
do
you
write
"Hello
World"
in
an
alert
box?
a. msg("Hello
World");
b. alertBox("Hello
World");
c. alert("Hello
World");
d. msgBox("Hello
World");
83. How
to
write
an
IF
statement
in
JavaScript?
a. if
(i
==
5)
b. if
i
=
5
c. if
i
==
5
then
d. if
i
=
5
then
84. In
JavaScript,
which
of
the
following
is
true
if
A
and
B
are
not
equal?
a. If
A
not
=
B
b. If
A
!=
B
UNIT -‐ 1
UNIT II
51. What
is
the
purpose
of
the
href
attribute
of
the
HTML
a
element?
Illustrate
its
usage.
52. Explain
the
function
of
the
action
attribute
of
<form>
element.
53. How
can
you
create
a
button
control
using
<input>
element?
54. How
can
you
create
a
button
control
using
<button>
element?
55. How
can
you
add
a
checkbox
control
to
an
HTML
form?
56. How
can
you
add
a
radio
button
control
to
an
HTML
form?
57. What
are
hidden
controls?
58. How
can
you
add
a
select
box
control
to
an
HTML
form?
59. How
can
you
add
a
single
line
text
input
control
onto
an
HTML
form?
60. How
can
you
add
a
password
input
control
onto
an
HTML
form?
UNIT
III
UNIT IV
SECTION
C
SHORT
ESSAY
(
4
MARKS)
UNIT -‐ 1
8. What
do
you
mean
by
frame
tag?
How
this
can
be
used
in
a
web
page?
9. Explain
different
attributes
of
frameset
tag.
10. How
to
add
video
and
audio
to
HTML
page?
11. Write
an
HTML
document
that
can
display
ordered
list.
12. Write
an
HTML
document
that
can
display
nested
definition
list.
13. Explain
different
input
types
in
HTML.
14. Explain
definition
list.
15. What
is
the
use
of
<select>
tag?
Write
an
example.
16. Write
an
HTML
document
that
can
display
a
simple
table
with
borders.
Explain
tags
used.
17. Write
an
HTML
document
that
can
display
a
frameset
consist
of
three
columns.
18. Write
an
HTML
document
that
can
display
a
simple
form
with
controls
like
single-‐input
text,
checkboxes,
radio
buttons
and
submit
button.
UNIT
III
19. Explain
different
CSS
text
properties
used
for
style
text
elements.
20. Briefly
explain
a. Text-‐decoration
b. Text-‐transformation
c. Text-‐indentation
21. Briefly
explain
a. Font
family
b. Font-‐style
c. Font-‐size
22. Explain
any
three
border
properties
with
example.
23. Explain
CSS
margin
properties.
Illustrate
with
example.
24. Write
a
note
on
CSS
dimension
properties.
25. Write
a
note
on
CSS
float
properties.
Illustrate
with
example.
UNIT IV
UNIT
V
UNIT -‐ 1
UNIT II
UNIT III
11. Explain
CSS
font
properties
used
to
define
font
family,
boldness,
size
and
the
size
of
the
text.
Illustrate
with
example.
12. What
is
the
use
of
CSS
list
properties?
Explain
different
CSS
list
UNIT IV
16. Write
a
note
on
different
control
statements
available
in
JavaScript?
Illustrate
with
example.
17. Explain
different
operators
available
in
JavaScript
with
example.
18. Write
JavaScript
for
a. First
10
even
numbers
b. First
10
odd
numbers
c. Prime
numbers
up
to
100
19. Write
JavaScript
function
for
a. Check
a
given
number
is
odd
or
even
b. Check
a
given
number
is
prime
or
not
20. Write
an
essay
on
JavaScript
Events.
Explain
with
example.
21. Describe
conditional
and
looping
statements
in
JavaScript.
UNIT V
22. Explain
difference
between
external
style
sheet,
internal
style
sheet
and
inline
style.
Illustrate
with
example.
23. Explain
Different
HTML
lists
with
examples?
24. Write
an
HTML
document
that
can
display
a
simple
form
with
controls
like
single-‐line
input
text,
password
input
text,
multi-‐line
input
text
and
submit
button.
PART
A
Answer
All
Questions
(1*10
=10Marks)
1. HTML
stands
for
___________
2. Pick
the
odd
one
out
a. Google
b. Bing
c. Firefox
d. Yahoo
3. To
create
a
bulleted
list
use
a. <il>
b. <ul>
c. <ol>
d. <bl>
4. The
tag
used
to
display
text
as
superscript
a. <super>…..</super>
b. <sup>
….
</sup>
c. <super
/>
d. <sup/>
5. What
does
CSS
stand
for?
a. Colorful
Style
Sheets
b. Creative
Style
Sheets
c. Cascading
Style
Sheets
d. Computer
Style
Sheets
6. How
do
you
select
an
element
with
id
"demo"?
a. *demo
b. #demo
c. demo
d. .demo
7. ______________converts
a
string
to
floating
point
numbers.
a. eval
b. ParseInt
c. ParseFloat
d. None
of
the
above
8. In
JavaScript,
how
do
you
write
“Hello
World”
in
an
alert
box?
a. msgBox(“Hello
World”)
b. alertBox=”Hello
World”
c. alert(“Hello
World”)
d. alertBox(“Hello
World”)
9. Dreamweaver
is
sold
by
what
software
company:
a. Adobe
b. Macromedia
c. Microsoft
d. Google
10. Bullets
in
unordered
lists
can
only
be
circles.
a. True
b. False
PART
B
Answer
Any
8
Questions
(2*8
=16Marks)
11. What
is
Internet?
12. What
is
the
purpose
of
the
alt
attribute
of
the
HTML
img
element?
Illustrate
its
usage.
13. What
is
the
use
of
<pre>
tag?
14. Explain
the
function
of
the
action
attribute
of
<form>
element.
15. How
can
you
add
a
radio
button
control
to
an
HTML
form?
16. How
can
you
add
a
select
box
control
to
an
HTML
form?
17. How
to
give
background
color
for
a
page
using
CSS?
18. How
to
set
font-‐size
using
CSS?
19. Explain
the
onclick
event
of
JavaScript.
20. Explain
the
purpose
of
the
break
statement
of
JavaScript.
21. What
is
purpose
of
HTML
strike
element?
22. What
is
the
purpose
of
HTML
comment?
PART
C
Answer
Any
6
Questions
(4*6
=24Marks)
23. Write
an
HTML
document
that
illustrates
different
types
of
paragraph
alignments.
24. Explain
body
tag
with
its
attributes.
25. Explain
different
input
types
in
HTML.
26. Write
an
HTML
document
that
can
display
a
simple
form
with
controls
like
single-‐input
text,
checkboxes,
radio
buttons
and
submit
button.
27. Briefly
explain
a. Text-‐decoration
b. Text-‐transformation
c. Text-‐indentation
28. Explain
CSS
margin
properties.
Illustrate
with
example.
29. Explain
for
loop
in
JavaScript
with
example.
30. How
can
you
include
comments
in
JavaScript?
Illustrate
with
example.
PART
D
Answer
Any
2
Questions
(15*2
=30Marks)
31. Describe
various
text
formatting
elements
of
HTML.
Illustrate
with
examples.
32. Create
a
web
page
to
store
student
details
using
form
and
form
elements.
Use
at
least
6
form
elements.
33. Explain
following
with
examples
a. CSS
box
model
b. CSS
outline
properties
Programme : B.Voc in Software Technology
Semester : 1st
Course Code : SDC1ST03
Course Name : Object Oriented Programming in
Java
Hours: 4 Credit: 5
Module I
Module II
Module III
Module IV
Module V
References:
1.
Java
Complete
Reference,
Herbert
Schildt,
Tata
MCGraw
hill
edition
2.
J2EE
Complete
Reference,
Jim
Keogh,
Tata
MC
Graw
hill
edition.
3.
Object
Oriented
Design
with
UML
and
Java,
Kenneth
Barclay,
John
Savage,
Elsevier.
UNIT -‐ I
1. Which
of
the
following
is
NOT
a
key
component
of
object-‐oriented
programming?
e. Inheritance
f. Encapsulation
g. Polymorphism
h. Parallelisms
2. Which
command
is
used
to
compile
a
java
program
a. javav
b. javac
c. javad
d. none
3. __________
is
the
mechanism
that
binds
together
code
and
the
data
it
manipulates
and
keeps
both
safe
from
outside
interference
and
misuse
4. _________
is
the
process
by
which
one
object
acquires
that
properties
of
another
object
5. What
is
the
full
form
of
JVM
a. Java
Virtual
Machine
b. Java
Virtualization
Machine
c. JDBC
Virtual
Machine
d. None
6. _________
is
a
feature
that
allows
one
interface
to
be
used
for
a
general
class
action
7. The
______
operator
is
used
to
connect
two
strings
to
make
one
longer
string
8. To
include
a
double
quote
inside
a
character
string,
you
must
use
______
character
9. _____
Statement
in
a
loop
will
cause
the
program
to
immediately
exit
the
loop
10. ______
is
used
for
signaling
the
end
of
the
input
11. Which
of
the
following
feature
is
not
supported
by
java
?
a. Multithreading
b. Method
Overloading
c. Operator
Overloading
d. Garbage
Collection
12. What
is
the
full
form
of
JDK
a. Java
Development
Kit
b. Java
Data
Kit
c. Java
Definition
Keyword
d. None
of
the
above
c. Error
d. None
54. final
is
used
to
a. Create
named
constant
b. Prevent
overriding
c. Prevent
inheritance
d. All
of
the
above
55. finally
block
is
placed
after
a. try
block
b. static
block
c. catch
block
d. contructor
56. All
exception
types
are
subclasses
of
the
built-‐in
class
a. Throw
b. Throws
c. Throwable
d. None
57. Division
by
zero
is
a. IOException
b. ClassNotDefinedException
c. ArithmeticException
d. None
58. A
java
program
can
have
multiple
catch
blocks
a. True
b. False
59. An
abnormal
condition
that
arises
in
a
code
sequence
at
run
time
a. exception
b. event
c. invocation
d. none
60. Is
there
any
difference
between
Exception
and
Error
in
java?
UNIT
V
61. Suspend
thread
can
be
revived
by
using
_______
62. ________
is
a
special
kind
of
java
program
that
is
designed
to
be
transmitted
over
the
internet
and
automatically
executed
by
java
compatible
web
browser
63. Runnable
is
a. Interface
b. Method
c. Class
d. Constructor
64. Which
function
of
pre
defined
class
Thread
is
used
to
check
weather
a. Runnable
b. Connections
c. Set
d. MapConnections
73. Which
of
these
keywords
are
used
to
implement
synchronization?
a. sunchronize
b. syn
c. synch
d. synchronized
UNIT -‐ 1
UNIT II
UNIT III
38. What's
the
difference
between
an
interface
and
an
abstract
class?
39. What's
the
difference
between
constructors
and
other
methods?
40. How
can
a
subclass
call
a
method
or
a
constructor
defined
in
a
super
class?
41. What
is
the
finalize
method
do?
42. What
is
an
object?
Give
example.
43. What
is
meant
by
dynamic
initialization?
44. Define
an
access
specifier?
Give
example.
45. What
is
static
and
dynamic
binding?
46. Explain
Inner
Classes?
47. What
are
constructers?
48. What
is
default
constructor?
49. What
is
the
difference
between
super
class
and
sub
class?
50. What
is
parameterized
constructor?
51. What
is
the
base
class
of
java?
52. When
the
constructor
of
class
invoked?
53. Can
we
override
static
methods
of
a
class?
54. Explain
‘new’
keyword.
55. Write
a
note
about
static
keyword?
56. Explain
how
inheritance
is
achieved
in
java?
57. Write
the
general
form
of
a
class
definition.
58. Explain
print(),
println()
and
write()
methods
UNIT IV
67. What’s
the
difference
between
an
interface
and
an
abstract
class?
68. State
the
difference
between
an
exception
and
error?
69. What
is
exception
handling?
70. What
is
abstract
class?
71. What
is
abstract
method?
72. What
is
interface
in
java?
73. Explain
read()
and
readLine()
methods
in
the
BufferedReader
class.
74. What
is
the
difference
between
StringBuffer
and
String
class?
75. What
is
exception?
UNIT V
76. Why
would
you
use
a
synchronized
block
vs.
synchronized
method?
77. What's
the
difference
between
the
methods
sleep()
and
wait()?
78. Define
a
thread?
79. What
is
thread?
80. What
is
final,
finally
and
finalize?
81. Explain
java
thread
life
cycle.
82. What
is
serialization?
83. Short
note
on
thread?
84. What
is
meant
by
interthread
communication?
85. Why
are
wait
(),
notify
()
and
notify
all
()
methods
defined
in
the
Object
class?
86. Explain
notify()
and
notifyall()
method
in
the
interthread
communication.
87. What
is
meant
by
main()
thread?
88. How
threads
can
be
created
in
java?
89. Explain
run()
method
in
the
Runnable
interface.
90. What
is
meant
by
synchronization
in
threads?
91. What
is
the
difference
between
process
and
threads?
SECTION
C
SHORT
ESSAY
(
4
MARKS)
UNIT -‐ 1
UNIT II
8. What
are
the
different
types
of
operators
used
in
Java?
9. What
are
the
data
types
supported
in
Java?
10. How
will
you
initialize
arrays?
UNIT III
UNIT IV
UNIT V
SECTION
D
ESSAY
(15
MARKS)
UNIT -‐ 1
UNIT II
UNIT III
13. Discuss
the
concepts
of
class
and
objects
with
an
example
14. What
are
different
types
of
inheritance
supported
by
java?
Explain
with
example.
15. What
is
interface?
How
it
is
implemented?
How
multiple
inheritances
can
be
implemented
by
using
interface?
16. Explain
visibility
control
in
java
with
example.
17. Differentiate
between
method
overloading
and
overriding
with
example.
18. What
is
abstract
class
and
methods?
Explain
with
example.
19. What
are
different
argument
passing
mechanisms?
Explain
with
example.
UNIT IV
UNIT V
24. What
is
thread?
Explain
the
thread
priorities
in
java
25. Explain
Byte
Streams
and
Character
Streams
26. Explain
how
threads
are
synchronized
in
a
java.
Explain
with
example.
27. What
do
you
mean
by
synchronization?
Explain
interthread
communication
in
java.
28. What
are
the
different
methods
of
creating
threads
in
Java.
Explain
with
example.
PART
A
Answer
All
Questions
(1*10
=10Marks)
1. Which
command
is
used
to
compile
a
java
program
a. javav
b. javac
c. javad
d. none
2. What
is
the
full
form
of
JDK
a. Java
Development
Kit
b. Java
Data
Kit
c. Java
Definition
Keyword
d. None
of
the
above
3. Which
is
the
keyword
used
in
java
to
declare
constants?
4. Which
of
the
following
is
an
abstract
data
type?
a. Class
b. Float
c. Int
d. Boolean
5. To
invoke
super
class’s
constructor
_______
keyword
is
used
a. Extends
b. super
c. parent
d. child
6. ______is
at
the
top
of
exception
class
hierarchy
a. Exception
b. Throwable
c. Error
d. None
7. final
is
used
to
a. Create
named
constant
b. Prevent
overriding
c. Prevent
inheritance
d. All
of
the
above
8. Division
by
zero
is
a. IOException
b. ClassNotDefinedException
c. ArithmeticException
d. None
9. Which
function
of
pre
defined
class
Thread
is
used
to
check
weather
current
thread
being
checked
is
still
running?
a. isAlive()
b. Join()
c. isRunning()
d. Alive()
10. Thread
class
is
available
in
a. java.io
package
b. java.lang
package
c. java.awt
package
d. java.util
package
PART
B
Answer
Any
8
Questions
(2*8
=16Marks)
11. What
is
meant
by
polymorphism?
12. Why
Java
is
considered
Portable
Language?
13. What
is
the
use
of
new
keyword?
14. Write
a
note
about
primitive
data
types
in
java?
15. How
break
and
continue
works?
16. What
is
the
finalize
method
do?
17. What
are
constructers?
18. What
is
the
difference
between
super
class
and
sub
class?
19. What
is
a
package?
20. What
is
abstract
class?
21. What
is
thread?
22. What
is
meant
by
synchronization
in
threads?
PART
C
Answer
Any
6
Questions
(4*6
=24Marks)
23. What
are
the
features
of
Java
Language?
24. How
will
you
initialize
arrays?
25. Write
short
note
on
the
following.
a. Instants
variable
b. Local
variable
c. Global
variable
26. What
is
method
overloading?
27. Illustrate
with
examples:
static
and
final
28. Write
short
note
on
the
following.
a. Try
b. Catch
29. Differentiate
between
throw
and
throws.
30. Explain
the
life
cycle
of
thread.
PART
D
Answer
Any
2
Questions
(15*2
=30Marks)
31. Write
and
explain
Java
program
for
a. Print
first
10
whole
numbers
b. Print
first
10
even
numbers
c. Print
first
100
Prime
numbers
32. Explain
different
looping
constructs
in
java.
33. Explain
visibility
control
in
java
with
example.
34. What
are
the
different
methods
of
creating
threads
in
Java.
Explain
with
example.
JavaScript
16. Write
a
JavaScript
program
to
find
the
area
and
circumference
of
a
circle
17. Write
a
JavaScript
program
to
show
the
Alert
Box?
18. Write
a
JavaScript
program
to
store
different
colours
in
an
array
and
change
the
background
colour
of
the
page
using
this
array
elements
19. Write
a
JavaScript
program
for
form
validation.
20. Write
a
JavaScript
program
to
print
first
n
even
numbers.
21. Write
a
JavaScript
program
to
print
first
n
prime
numbers.
22. Write
a
JavaScript
program
to
print
first
n
strange
numbers.
23. Write
a
JavaScript
program
to
print
first
n
Fibonacci
numbers.
24. Write
a
JavaScript
program
to
print
first
n
odd
numbers.
25. Write
a
JavaScript
program
to
print
first
n
natural
numbers.
26. Write
a
JavaScript
program
to
print
even
numbers
in
a
rage.
27. Write
a
JavaScript
program
to
display
odd
numbers
in
a
range.
28. Write
a
JavaScript
program
to
display
prime
numbers
in
a
range.
29. Write
a
JavaScript
program
to
print
strange
numbers
in
a
range
30. Write
a
JavaScript
program
to
print
Fibonacci
numbers
in
a
range.
31. Write
a
JavaScript
to
calculate
roots
of
quadratic
equation.
32. Write
a
JavaScript
to
perform
case
conversion.
33. Write
a
JavaScript
to
alert
content
of
text
box.
34. Write
a
JavaScript
to
disable
and
enable
textbox.
35. Write
a
JavaScript
to
illustrate
onMouseOver
event
36. Write
a
JavaScript
to
illustrate
onkeyup
event
PART
B
:
Object
Oriented
Programming
in
Java
Simple
Java
Programs
1. Write
a
program
to
find
the
area
and
circumference
of
a
circle
2. Write
java
program
to
check
whether
a
given
number
is
perfect,
abundant
or
deficient.
3. Write
java
program
to
check
whether
the
given
sides
can
form
a
triangle.
If
yes,
find
area
of
the
triangle.
4. Write
java
program
to
compute
the
mean
and
SD
of
3
numbers.
Mean=(a+b+c)/3,
SD=√((a-‐m)2+(b-‐m)2+(c-‐m)2)/3
5. Write
program
to
find
the
roots
of
a
quadratic
equation
6. Write
a
program
to
find
the
number
of
and
sum
of
all
integers
greater
than
100
and
less
than
200
that
are
divisible
by
7.
Control
Statements
7. Write
a
program
to
calculate
the
electricity
bill
by
reading
the
consumer
no
and
no
of
units
consumed.
The
charges
for
different
slabs
are
given
below
upto
50
units
Rs.
1.5
per
unit
Array
15. Write
a
java
program
to
read
an
array
of
10
numbers
and
to
find
the
following.
a. Sum
of
the
elements.
b. Average
of
the
elements.
c. Maximum
of
the
elements.
d. Minimum
of
the
elements.
16. Write
a
java
program
to
sort
an
array.
17. Write
a
java
program
to
count
the
number
of
even
numbers,
odd
numbers,
positive
numbers,
negative
numbers
and
zeros
in
an
array.
18. Write
a
java
program
to
appending
two
arrays.
Class
and
Objects
19. Write
java
program
to
find
the
sum
of
the
digits
and
reverse
of
a
given
number
using
class
and
objects.
20. Write
a
program
in
java
with
class
rectangle
with
the
data
fields
length,
breadth.
Calculate
the
area.
Create
two
objects
of
rectangle
and
compare
their
area.
21. Write
a
java
program
to
create
a
class
complex.
Create
two
objects
and
find
the
sum
of
two
complex
numbers.
Read
the
real
and
imaginary
part-‐
using
constructor.
22. Write
a
java
program
to
create
a
class
student.
Write
methods
to
read
and
display
the
student
details.
Create
a
derived
class
result.
Write
methods
to
read
mark
of
5
subjects
and
display
the
total
and
grade.
Create
object
to
read
and
display
the
result
of
a
student.
Package
and
exceptions
26. Create
a
package
for
finding
the
factorial
of
a
number.
27. Write
a
java
program
to
enable
arithmetic
exceptions.
28. Write
a
program
to
create
a
class
account
with
members
deposit(),
withdraw()
and
getbalance().
While
withdrawing,
check
the
balance.
If
the
balance
is
<
500,
raise
a
user
defined
exception.
B.Voc
Software
Technology
Model
Question
Paper
SDC1ST04
Lab1:
Web
Technologies
and
Object
Oriented
Programming
in
Java
PART
A
1. Create
an
HTML
document
that
illustrate
the
use
of
ordered
list
with
different
numbering
systems.
Also
include
one
or
more
nested
lists
within
the
ordered
list.
2. Create
an
HTML
program
to
illustrate
the
usage
of
frame.
3. Create
an
HTML
document
that
illustrate
the
use
of
form
controls
such
as
single-‐line
text
input,
checkbox,
radio
button,
select
box
and
submit
and
reset
button.
4. Write
a
JavaScript
program
to
print
first
n
natural
numbers.
5. Write
a
JavaScript
program
to
display
prime
numbers
in
a
range.
6. Write
a
JavaScript
program
to
print
strange
numbers
in
a
range
PART
B
7. Write
java
program
to
check
whether
a
given
number
is
perfect,
abundant
or
deficient.
8. Write
a
program
in
java
with
class
rectangle
with
the
data
fields
length,
breadth.
Calculate
the
area.
Create
two
objects
of
rectangle
and
compare
their
area.
9. Find
the
area
of
a
square
and
a
rectangle
using
overloaded
constructors
10. Write
a
java
program
to
create
a
class
student.
Write
methods
to
read
and
display
the
student
details.
Create
a
derived
class
result.
Write
methods
to
read
mark
of
5
subjects
and
display
the
total
and
grade.
Create
object
to
read
and
display
the
result
of
a
student.
11. Create
a
package
for
finding
the
factorial
of
a
number.
12. Write
a
java
program
to
read
an
array
of
10
numbers
and
to
find
the
following.
e. Sum
of
the
elements.
f. Average
of
the
elements.
g. Maximum
of
the
elements.
h. Minimum
of
the
elements.
DEGREE OF
BACHELOR OF VOCATION (B.VOC)
IN
SOFTWARE TECHNOLOGY
QUESTION BANK
Semester II