You are on page 1of 131

File Ref.No.

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

Read:-1) BVoc Regulations implemented as per U.O.No. 9809/2014/Admn Dtd 23.10.2014


2) Modified BVoc Regulaitons U.O.No. 2650/2015/Admn Dtd :17.03.2015
3) Syllabus implemented as per U.O.No. 4256/2015 /Admn Dt 27.04.15
4) Minutes of the Combined meeting of all Chairmen of BOS & Principals of the
Colleges having BVoc Programmes
5) Remarks of the Dean, Faculty of Science 4.08.15
6) Orders of Vice Chancellor in the File of even number on 29.08.15
ORDER
As per the paper read as (1) & (2) the Regulations for BVoc Programmes have been
implemented and modified. As per paper read as (3) the BVoc programme in Software Technology
has been implemented.
As per the paper read as (4) the Question Bank of Software Technology have been approved.
As per paper read as (5) the Dean Faculty of Science has recommended to approve minutes of the
Combined meeting of Chairmen and Principals. Considering the urgency the Vice Chancellor
exercising the powers of the Academic Council has approved to implement the Question Bank of
BVoc in Software Technology subject to the ratification by Academic Council, as per reference (6)
above.
Sanction has, therefore, been accorded for the implementation of the Question Bank of
the BVoc programme in Software Technology w.e.f 2014 Admissions.
Orders are issued accordingly.

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

BOARD OF STUDIES IN COMPUTER SCIENCE (UG)


THENHIPALAM, CALICUT UNIVERSITY P.O
KERALA, 673635, INDIA
JULY 2014
©COPYRIGHT BY UNIVERSITY OF CALICUT, 2014

 
 

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

GEC1AR02 (A07) Communication Skill in


Arabic
GEC1MT03 Mathematical Foundation of 4 20 80 100 4 4
Computer Science
SDC1ST01 Introduction to Computer Science & 4 20 80 100 4 4
Programming
SDC1ST02 Introduction to Web Technologies 4 20 80 100 3 1 4
and Design Tools
SDC1ST03 Object Oriented Programming in 5 20 80 100 3 1 4
Java
SDC1ST04 Lab1: Web Technologies & Object 5 20 80 100 6 6
Oriented Programming in Java
Semester I Total 30 140 560 700 22 8 30

B.Voc  Software  Technology.  First  Semester  Question  Bank.     2    


 

Programme : B.Voc in Software Technology


Semester : 1st
Course Code : GEC1MT03
Course Name : Mathematical Foundation of
Computer Science

B.Voc  Software  Technology.  First  Semester  Question  Bank.     3    


 

GEC1MT03 Mathematical Foundation of Computer Science

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

Propositions and logical operators - Truth table - Propositions generated by a set,


Equivalence and implication - Basic laws- some more connectives – Functionally
complete set of connectives- Normal forms - Proofs in Propositional calculus –
Predicate calculus.

Module IV

Languages and Grammars- Phrase Structure Grammar- Classification of Grammars-


Pumping Lemma for Regular Languages- Context Free Languages.

Module V

Finite State Automata-Deterministic Finite State Automata (DFA), Non Deterministic


Finite State Automata (NFA)-Equivalence of DFA and NFA-Equivalence of NFA and
Regular Languages.

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.

B.Voc  Software  Technology.  First  Semester  Question  Bank.     4    


 

 
 
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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     5    


 

9. Let  A  and  B  be  two  sets  such  that  𝑛 𝐴 = 70,  𝑛 𝐵 = 60  𝑎𝑛𝑑  𝑛 𝐴 ∪ 𝐵 =


110.  Then  𝑛 𝐴   ∩ 𝐵  is  equal  to    
a. 240  
b. 20  
c. 100  
d. 120  
10.  The  value  of  n,  when  nP2    =  20  is  
a. 3  
b. 4  
c. 6  
d. 5  
 
11. If   P5  =  60n-­‐1P3    ,  then    n  is  
n

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. !! ∗(!!)  =  ______________  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     6    


 

 
!!
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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     7    


 

−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.Voc  Software  Technology.  First  Semester  Question  Bank.     8    


 

40.    (𝑃  ⋁𝑄)  ⋀  (𝑃   →  𝑅  )⋀  (𝑄   → 𝑆)  is  equivalent  to  


a. 𝑆  ⋀  𝑅  
b. 𝑆   →  𝑅  
c. 𝑆  ⋁  𝑅  
d. All  of  above  
41. The  functionally  complete  set  is  
a. {  ˥, ^, 𝑣  }  
b. {↓, ^  }  
c. {↑}  
d. None  of  these  
42. {∼  , ⋀}  is  a  functionally  complete  set  
a. True  
b. False  
43. The  table  used  to  show  the  possible  combination  of  inputs  for  an  output  is  
said  to  be  
a. Logic  table  
b. Gate  table  
c. System  circuit  table  
d. Truth  table  
44. In  propositional  logic,  which  of  the  following  is  equivalent  to  𝑝   →  𝑞?  
a. ~𝑝   →  𝑞  
b. ~𝑝  𝑣  𝑞  
c. ~𝑝  𝑣~  𝑞  
d. 𝑝   → 𝑞    
45. A  logic  gate  in  which  any  one  of  inputs  is  logic  1  results  in  output  as  logic  
1  is  said  to  be  
a. IN  gate  
b. OUT  gate  
c. AND  gate  
d. OR  gate  
 
UNIT  IV  
46. The  logic  of  pumping  lemma  is  good  example  of  
a. The  pigeon  hole  principle  
b. Divide  and  conquer  method  
c. Iteration  
d. Recursion  
47. If  𝜆 = 𝑎𝑏𝑐𝑑  𝑡ℎ𝑒𝑛   𝜆  𝑖𝑠  __________  
48.  If  w=  abaaa  and  v=cda  theb   𝑤𝑣  is  ___________  
49. Regular  grammar  is  
a. context  free  grammar  
b. non  context  free  grammar  
c. english  grammar  
d. none  of  the  mentioned  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     9    


 

50. 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  
51. Transition  function  maps.  
a. 𝛴   ∗  𝑄  −>  𝛴  
b. 𝑄   ∗  𝑄  −>  𝛴  
c. 𝛴   ∗  𝛴  −>  𝑄  
d. 𝑄   ∗  𝛴  −>  𝑄  
52. A  grammar  that  produces  more  than  one  parse  tree  for  some  sentence  is  
called  
a. ambiguos  
b. unambigous  
c. regular  
d. none  of  these  
53. 𝛿 ∗ (𝑞, 𝑦𝑎)  is  equivalent  to  .  
a. 𝛿((𝑞, 𝑦), 𝑎)  
b. 𝛿(𝛿 ∗ (𝑞, 𝑦), 𝑎)  
c. 𝛿(𝑞, 𝑦𝑎)  
d. Independent  from  δ  notation  
54. Regular  expressions  are  closed  under  
a. Union  
b. Intersection  
c. Kleen  star  
d. All  of  the  mentioned  
55. 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  
56. "CFG"  stands  for  _________  
a. Context  Free  Graph  
b. Context  Free  Grammar  
c. Context  Finite  Graph  
d. Context  Finite  Grammar  
57. If  L1  and  L2  are  two  regular  languages,  then  L1  U  L2  is  not  a  regular.    
a. True  
b. False  
58. Languages  are  proved  to  be  regular  or  non  regular  using  pumping  lemma.  
a. True    

B.Voc  Software  Technology.  First  Semester  Question  Bank.     10    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     11    


 

d. All  of  above  


69. “One  language  can  be  expressed  by  more  than  one  FA”.  This  statement  is  
______  
a. True  
b. False  
c. Some  times  true  &  sometimes  false    
d. None  of  these  
70. The  grammatical  rules  are  often  called_____________  
a. Productions    
b. Terminals  
c. Non-­‐terminals  
d. None  of  given  
71. The  production  of  the  form  non  𝑡𝑒𝑟𝑚𝑖𝑛𝑎𝑙   →  𝜆  is  said  to  be  null  
production  .    
a. TRUE  
b. FALSE  
72. Regular  expression  for  all  strings  starts  with  ab  and  ends  with  bba  is.  
a. aba*b*bba  
b. ab(ab)*bba  
c. ab(a+b)*bba  
d. All  of  the  mentioned  
73. The  language  generated  by  __________  is  called  Context  Free  Language  
(CFL).  
a. FA  
b. TG  
c. CFG    
d. TGT  
74. In  FA,  if  one  enters  in  a  specific  state  but  there  is  no  way  to  leave  it,  then  
that  specific  state  is  called:  
a. Dead  State  
b. Waste  Basket    
c. Davey  John  Locker    
d. All  of  these  
 

SECTION  B    SHORT  ANSWER  QUESTION  (2  MARKS)  

UNIT  -­‐  1    

1. What  is  a  set?  


2. Which  are  different  methods  to  represent  a  set?  
3. What  is  a  singleton  set?  
4. What  is  a  proper  subset?  
5. What  is  venn  diagram?  
6. Write  the  following  in  set  builder  form  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     12    


 

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  

35. Define  following  


a. Square  matrix  
b. Column  Matrix  
𝑥 3𝑥 − 𝑦 3 2
36. If    =   ,  find  x,  y,  z  and  w.  
2𝑥 + 𝑧 3𝑦 − 𝑤 4 7
37. Find  the  values  of  x  and  y  from  the  following  equations  
3𝑥 + 7 5 0 𝑦−𝑧
 =    
𝑦 + 1 2 − 3𝑥 8 4
38. Write  an  example  of  
a. Column  matrix  
b. Upper  triangular  matrix  
c. Diagonal  Matrix  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     13    


 

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  

52. What  is  a  truth  table?  


53. What  is  a  proposition?  
54. What  is  a  compound  proposition?  
55. Write  three  declarative  sentences  that  are  not  proposition.  
56. What  is  conjunction?  Draw  truth  table.  
57. What  is  disjunction?  Draw  truth  table.  
58. Draw  truth  table  of  XNOR.  
59. Explain  biconditional  operator.  
60. What  is  a  well-­‐formed  formula?  
61. Explain  different  quantifiers.  
62. What  is  the  use  of  existential  quantifier?  
63. Draw  truth  table  of  Exclusive  OR.  
64. Construct  truth  table  for  𝑝 ⊕   𝑝   𝑞  
65.  Construct  truth  table  for  ~ ~𝑝   → 𝑞   ∧   𝑞   ↔ 𝑝  
66.  What  is  contradiction?  Write  an  example.  
67.  What  is  tautology?  Write  an  example.  
68. Draw  truth  tables  of  NAND  and  NOR.  
69. What  is  a  normal  form?  
70. What  is  disjunctive  normal  form?  Write  an  example.  
71. What  is  conjunctive  normal  form?  Write  an  example  
72. 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.  
73. Explain  logical  NOT  with  example.  
 
 
UNIT  IV  

74. What  is  a  language  in  theory  of  computer  science?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     14    


 

75.  What  is  a  grammar?  


76. What  is  an  automaton?  
77. Write  an  example  of  a  grammar.  
78. What  is  formal  language?  
79. What  is  a  production  in  grammar?  Write  an  example.  
80.  What  is  the  difference  between  accepter  and  transducer    
81. What  is  pumping  lemma  for  regular  language?  
82. Write  an  example  of  regular  grammar.  
83. What  is  type  3  grammar?  
84. What  is  context  free  grammar?  
85. Write  an  example  for  contest  free  grammar.  
86. What  is  ambiguous  grammar?  
87. Write  an  example  for  ambiguous  grammar.  

UNIT  V  

88. What  is  DFA?  


89. Define  NFA.  
90. Write  an  example  of  DFA.  
91. Write  an  example  of  NFA.  
92. Explain  transition  function?  
93. What  is  the  difference  between  DFA  and  NFA?  
94. Write  an  example  of  regular  language.  
95. What  is  a  regular  language?  
96. What  is  a  transition  table?  
97. Write  an  example  of  a  transition  table.  
 

 
 
SECTION  C  SHORT  ESSAY  (  4  MARKS)      

UNIT  -­‐  1    

1. Explain  any  four  type  of  set.  


2. If  A,  B  and  C  are  sets,  prove  that  𝐴 ∪ 𝐵   ∩ 𝐶 =   𝐶     ∪   𝐵   ∩   𝐴  
3. Let  A=   1, 2, 3  ,  B= 2, 3, 4 ,  C= 5, 6, 7  and  D= 6, 7, 8  then  show  that  
𝐴  ×   𝐵   ∩ 𝐶 =   𝐴  ×  𝐵   ∩   𝐴  ×  𝐶  
4. 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  
c. Tennis  and  cricket  but  not  hockey.  
(Assume  that  each  student  plays  at  least  one  game)  
5. Determine  the  number  of  integers  between  1  and  250  that  are  divisible  by  
any  one  of  the  integers  2,  3,  5  and  7  by  principle  of  inclusion  and  
exclusion.  
6. Determine  the  number  of  integers  between  1  and  250  that  are  divisible  by  
3  and  not  divisible  by  5  and  7.  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     15    


 

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  

20. Explain  any  six  types  of  matrices.  


7 6 2
21. Calculate  the  adjoint  of     −1 2 4  
3 3 8
1 1 1
22. Find  adjoint  of  the  matrix   1 2 −3  
2 −1 3
1 1 1
23. Find  the  adjoint  of  the  matrix     1 2 −3  
2 −1 3
24. Let  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     16    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     17    


 

32. Symbolize  the  following  


a. All  birds  can  fly  
b. All  babies  are  innocent    
c. There  is  an  integer  that  is  odd  and  prime  
d. Not  all  birds  can  fly    
33. Construct  truth  tables  for  the  following  statements  
a. 𝑝 → 𝑞  
b. 𝑝 → 𝑞 − (𝑝 → 𝑝  )  
c. (𝑝 → 𝑞 → 𝑟 ) → ( 𝑝 → 𝑞 → 𝑝 → 𝑟 )  
34. Construct  truth  tables  for  the  following  statements  
a. (𝑝 ∨   𝑞  ) → 𝑝    
b. (𝑞   →   𝑝  ) → (𝑝 → 𝑞)  
c. 𝑝 ↔ (𝑝   ∨   𝑞)  
35. Let  p  denote  the  statement,  “  The  weather  is  nice”  and  q  denote  the  
statement,  “We  have  a  picnic”.  Translate  the  following  in  English.  
a. 𝑝 ∧ 𝑞  
b. 𝑝 ⟷ 𝑞  
c. 𝑞   ⟷   𝑝  
36. Write  the  following  statements  in  symbolic  form  
a. The  sun  is  bright  and  the  humidity  is  not  high.  
b. If  I  finish  my  homework  before  dinner  and  it  does  not  rain,  then  I  
will  go  to  the  ball  game.  
c. If  you  do  not  see  me  tomorrow,  it  means  I  have  gone  to  Chicago.  
37. Translate  these  statements  into  English;  

(x)  :  x  is  a  cat  

A(x):  x  is  an  animal  

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     18    


 

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  

48. Define  the  following  with  examples;  


a. Automata  
b. Grammar  
c. Language  
d. Deterministic  Finite  Automata  
e. Non-­‐Deterministic  Finite  Automata  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     19    


 

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    

1. Answer  the  following  questions  


a. In  a  survey  of  600  students  in  a  school,  150  students  found  to  be  
taking  tea  and  225  taking  coffee,  100  were  taking  both  tea  and  
coffee.  Find  how  many  students  were  taking  neither  tea  nor  coffee?  
b. In  a  group  of  students,  100  students  know  Hindi,  50  know  English  
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.  
2. Answer  the  following  questions;  
a. A  college  awarded  38  medals  in  football,  15  in  basketball  and  20  in  
cricket.  If  these  medals  went  to  a  total  of  58  men  and  only  three  
men  got  medals  in  all  the  three  sports,  how  many  received  medals  
in  exactly  two  of  the  three  sports?  
b. Out  of  500  car  owners  investigated,  400  owned  car  A  and  200  
owned  car  50,  50  owned  both  A  and  B  cars.  Is  this  data  correct?  
3. Draw  appropriate  Venn  diagram  for  each  of  the  following:  
a. (A  ⋃  B)c    
b. Ac  ⋂    𝐵c  
c. (A  ⋂  B)c  
d. Ac  ⋃    Bc  
e. (A  -­‐  B)  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     20    


 

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  

6. Find  the  adjoint  of  the  matrix    


1 1 1
A= 1 2 −3    and  verify  the  theorem  𝐴. 𝑎𝑑𝑗  𝐴 =   𝐴 . 𝐼 = 𝑎𝑑𝑗  𝐴  𝐴  
2 −1 3
7. Find  the  inverse  of  matrices  
3 3 4
a. 2 −3 4  
0 −1 1
0 1 2
b. 1 2 3  
3 1 1
8. Find  the  adjoint  of  the  matrix    
1 2 3
A= 2 3 −1  and  verify  the  theorem  𝐴. 𝑎𝑑𝑗  𝐴 =   𝐴 . 𝐼 = 𝑎𝑑𝑗  𝐴  𝐴  
3 1 2
 
 
9. 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
 
10. Reduce  the  matrix  A,  to  its  normal  form  where  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     21    


 

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  

15. Show  that    


a. 𝑃   ∨ 𝑄 ∨ 𝑅 ∨ 𝑆          is  a  tautology.  
b. ~ 𝑃 ∨ 𝑄 ∧ 𝑅 ↔ 𝑃 ∨ 𝑄 ∧ 𝑃 ∨ 𝑅        is  a  contradiction.  
 
16. Draw  the  truth  table  of  
a. 𝑃 ∨ 𝑄 ∧∽ ∽ 𝑃⋀ ∽ 𝑄⋁ ∽ 𝑅 ⋁ ∽ 𝑃⋀ ∽ 𝑄 ⋁ ∽ 𝑃⋀ ∽ 𝑅  
b. ∽ ∽ 𝑃 → 𝑄 ∧ 𝑄 ↔ 𝑃  
17. Draw  the  truth  table  of  
a. (𝑝 ⟷ 𝑞)  
b. 𝑝⋁𝑞 ⋁𝑟 ⟷ ((𝑝⋀𝑞)⋀𝑟)  
c. 𝑝 ⟶ 𝑞  
d. 𝑝⋁𝑞 ⋁𝑟 ⟶ ((𝑝⋀𝑞)⋀𝑟)  
18. Check  whether  the  following  are  equivalent  to  𝑝 ⟷ 𝑞  
a. 𝑝   𝑞)   ( 𝑝⋁𝑞  
b. (𝑝  ⋀𝑞)⋁(𝑝⋀𝑞)  
c. 𝑝  ⋁𝑞 ⋀ 𝑞 ⟶ 𝑝  
d. (𝑞⋀𝑝  )⋁(𝑝⋀𝑞)  
e. (𝑝⋀𝑞) ⟶ (𝑝⋁𝑞)  
19. Check  whether  the  following  are  equivalent  to  𝑝 ⟶ 𝑞  
a. (𝑝⋀𝑞) ⟶ (𝑝⋁𝑞)  
b. (𝑞⋀𝑝  )⋁(𝑝⋀𝑞)  
c. 𝑝   𝑞)   ( 𝑝⋁𝑞  
d. (𝑝  ⋀𝑞)⋁(𝑝⋀𝑞)  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     22    


 

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  

24. Convert  the  following  NFA  into  an  equivalent  DFA    


 
  0   1  
     
0,1  
  q0   0,1   q1   q2  

25. Convert  the  following  NFA  into  an  equivalent    


  1   0  
 
 
0   0,  1  
  q0   q1   q2  

  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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     23    


 

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  
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     24    


 

B.Voc  Software  Technology  


Model  Question  Paper  
GEC1MT03  Mathematical  Foundation  of  Computer  Science  

Hours:  3  Hours                 Total:  80    Marks  

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     25    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     26    


 

c. Tennis  and  cricket  but  not  hockey.  


(Assume  that  each  student  plays  at  least  one  game)  
24. 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   𝐴⋂𝐵⋂𝐶 ⋃𝐴  
25. 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
26. Find  co-­‐factor  matrix  of  the  following  matrix  
7 1 7
2 0 4  
2 4 2
27. Write  the  following  statements  in  symbolic  form  
a. The  sun  is  bright  and  the  humidity  is  not  high.  
b. If  I  finish  my  homework  before  dinner  and  it  does  not  rain,  then  I  
will  go  to  the  ball  game.  
c. If  you  do  not  see  me  tomorrow,  it  means  I  have  gone  to  Chicago.  
28. 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  
29. 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.  
30. Draw  DFA  for  following  where  Σ = {𝑎, 𝑏}  
a. All  strings  start  with  ‘a’    
b. All  strings  with  exactly  one  ‘b’  
c. All  strings  end  with  ‘bb’.  
 
PART  D  
Answer  Any  2  Questions  (15*2  =30Marks)  
31. Answer  the  following  questions  
a. In  a  survey  of  600  students  in  a  school,  150  students  found  to  be  
taking  tea  and  225  taking  coffee,  100  were  taking  both  tea  and  
coffee.  Find  how  many  students  were  taking  neither  tea  nor  coffee?  
b. In  a  group  of  students,  100  students  know  Hindi,  50  know  English  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     27    


 

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  
 
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     28    


 

Programme : B.Voc in Software Technology


Semester : 1st
Course Code : SDC1ST01
Course Name : Introduction to Computer Science &
Programming

B.Voc  Software  Technology.  First  Semester  Question  Bank.     29    


 

SDC1ST01 Introduction to Computer Science & Programming

Hours: 4 Credit: 4

Module I

Introduction to Computer Science, History and Generations of Computer, Different


Types of Computer. Digital Logic Circuit, Logic Gates, Boolean algebra,
Combinational Circuit, Half adder, Full Adder, Half Subtractor, Full Subtractor.

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

Data Representation, Number Systems, Computer Codes, Signed and Unsigned


Numbers, 1s Complement and 2s Complement, Fixed Point Representation, Floating-
Point Representation, Other Binary Codes.

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

Problem Solving Techniques, Steps for Problem Solving, Using Computer as a


Problem Solving Tool, Design of Algorithms, Definition and Features of Algorithm,
Criteria to be followed by an Algorithm, Top Down Design, Analysis of Algorithm
Efficiency, Analysis of Algorithm Complexity, Flowcharts, Basic Symbols Used in
Flowchart.

References:

1. Computer System Architecture. M Morris Mano, Pearson Education.


2. Computer System Architecture, PVS Rao, PHI 2009
3. Introduction to Algorithms, Thomas H. Cormen, Charles E. Leiserson, Ronald L.
Rivest, Clifford stein. Third Edition. PHI

B.Voc  Software  Technology.  First  Semester  Question  Bank.     30    


 

VERY SHORT ANSWER QUESTION (1 MARKS)

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     31    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     32    


 

d. Supercomputers  are  focused  to  execute  as  many  programs  as  


possible  while  mainframe  uses  its  power  to  execute  few  programs  
as  fast  as  possible.  
25. The  brain  of  any  computer  system  is  
a. ALU  
b. Memory  
c.  CPU  
d. Control  unit  
26. Chief  component  of  first  generation  computer  was  
a. Transistors  
b. Vacuum  Tubes  and  Valves  
c.  Integrated  Circuits  
d. None  of  above  
27. Integrated  Circuits  (Ics)  are  related  to  which  generation  of  computers?  
a. First  generation  
b. Second  generation  
c. Third  generation  
d. Fourth  generation  
28. Which  of  the  following  IC  was  used  in  third  generation  of  computers?  
a. SSI  
b. MSI  
c. LSI  
d. Both  a  and  b  
29. The  main  electronic  component  used  in  first  generation  computers  was  
a. Transistors  
b. Vacuum  Tubes  and  Valves  
c. Integrated  Circuits  
d. None  of  above  
30. One  millisecond  is  
a. 1  second  
b. 10th  of  a  seconds  
c. 1000th  of  a  seconds  
d. 10000th  of  a  seconds  
 

UNIT II

31. Which  of  the  following  memories  needs  refreshing?  


a. SRAM  
b. DRAM  
c. ROM  
d. All  of  above  
32. An  output  device  that  uses  words  or  messages  recorded  on  a  magnetic  
medium  to  produce  audio  response  is  
a. Magnetic  tape  
b. Voice  response  unit  
c. Voice  recognition  unit  
d. Voice  band  
33. Which  of  the  items  below  are  considered  removable  storage  media?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     33    


 

a. Removable  hard  disk  cartridges  


b. (Magneto-­‐optical)  disk  
c. Flexible  disks  cartridges  
d. All  of  the  above  
34. Which  of  the  following  is  not  purely  output  device?  
a. Screen  
b. Printer  
c. Speaker  
d. Plotter  
35. The  magnetic  storage  chip  used  to  provide  non-­‐volatile  direct  access  
storage  of  data  and  that  have  no  moving  parts  are  known  as  
a. Magnetic  core  memory  
b. Magnetic  tape  memory  
c. Magnetic  disk  memory  
d. Magnetic  bubble  memory  
36. Which  of  the  following  is  used  for  manufacturing  chips?  
a. Control  bus  
b. Control  unit  
c. Parity  unit  
d. Semiconductor  
37. Which  of  the  following  terms  is  the  most  closely  related  to  main  memory?  
a. Non  volatile  
b. Permanent  
c. Control  unit  
d. Temporary  
38. A  group  of  magnetic  tapes,  videos  or  terminals  usually  under  the  control  
of  one  master  is  
a. Cylinder  
b. Surface  
c. Track  
d. Cluster  
39. Which  unit  holds  data  permanently?  
a. Input  unit  
b. Secondary  storage  unit  
c. Output  Unit  
d. Primary  Memory  Unit  
40. Computer  system  comprises  of  major  units  
a. input  unit,  output  unit,  control  unit  
b. input  unit,  output  unit,  control  unit  and  storage  
c.  input  unit,  output  unit,  central  processing  unit  and  storage  unit  
d. input,  output  and  storage  units  
41. Which  of  the  following  is  associated  with  error  detector?  
a. Odd  parity  bit  
b. Even  parity  bit  
c. Both  of  the  above  
d. None  of  above  
42. Magnetic  tape  can  serve  as  
a. Secondary  storage  media  
b. Output  media  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     34    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     35    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     36    


 

b. Extended  Bit  Code  Decimal  Interchange  Code  


c. Extended  Bit  Case  Decimal  Interchange  Code  
d. Extended  Binary  Case  Decimal  Interchange  Code  
69. Convert  74  into  binary.  
 
UNIT IV
 
70. Examples  for  system  software-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐?  
71. Examples  of  application  software?  
72. Which  is  the  latest  windows  OS?  
73.  _________________  represents  the  set  of  programs  that  govern  the  operations  
of  a  computer  system  and  make  the  hardware  run.  
74. The  _____________________________________  acts  as  an  interface  between  the  user  
and  the  hardware.  
75. The  ______________________  keeps  track  of  storage  and  retrieval  of  
information.  
76.  Performs  the  core  functions  of  managing  CPU,  memory  devices.    This  part  
is  called  Kernel.  
77. A  ________________  is  a  program  that  translates  a  HLL  program  into  
equivalent  machine  language.  
78. Write  the  different  types  of  operating  system?  
79. Write  any  two  types  graphics  software?  
80. Software  developed  for  specific  application  is  called  _____________________  
 
UNIT V
 
81. The problem solving techniques are ___________________  
82. Developing a Step by step solution for problem is called _______________  
83. Pictorial representation of an algorithm is called _______________  
84. Symbols used in Flowcharts are ____________  
85. ____________ symbol is used to indicate the beginning and end in a program
logic  
86. A _________________design works best when you have dearly defined
requirements.  
87. Performance ___________ is concerned with obtaining the space and time
requirement of a particular algorithm.  
88. ______________ symbol is used to indicate the beginning and end in a
program logic.  
89. ________________ symbol is used to represent input and output operations.  
90. _________________symbol is used to indicate any processing such as
arithmetic and storage.  
91. Computer programming languages are categorized into High level languages
and ______________.  
92. Representing the algorithm in a precise and concise notation called
__________.  
 
SECTION BSHORT ANSWER QUESTION (2 MARKS)

UNIT - 1

B.Voc  Software  Technology.  First  Semester  Question  Bank.     37    


 

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

27. What  is  memory?  


28. Top  level  element  in  memory  hierarchy?  
29. Write  different  types  of  printers?  
30. What  is  virtual  memory?  
31. What  is  the  purpose  of  memory  in  computer?  
32. What  is  the  terms,  bit,  byte,  and  word?  
33. What  is  mean  by  word  length.  
34. List  and  explain  three  memory  access  methods?  
35. What  is  mean  by  RAM.  How  does  it  differ  from  sequential  access  method?  
36. How    RAM  differ  from  Direct  access  memory?  
37. Differentiate  between  random  and  direct  memory  access  methods  
38. Define  the  term  “access  time”  of  memory.  What  is    its  relevance  
39. What  is  ROM.  How  does  it  differ  from  read-­‐write  memory  
40. What  is  mean  by  dynamic  memory?  
41. Differentiate  between  dynamic  and  static  memories.  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     38    


 

42. What  is  mean  by  volatile  memory?  


43. How  volatile  memory  differ  from  non  volatile  memory  
44. What  is  non  volatile  memory  
45. What  is  mean  by  memory  cycle  time?    
46. What  is  mean  by  memory  hierarchy?  
47. What  are  the  two  different  types  of  ram  
48. Differentiate  between  static  and  dynamic  ram  
49. What  is  static  ram?  Explain  its  structure?  
50. What  is  dynamic  ram?  Explain  its  structure?  
51. What  is  ROM.  Explain  its  use?  
52. What  is  the  different  forms  of  ROM?  
53. What  is  a  system  bus?  
54. List  and  explain  the  relative  demerits  of  magnetic  tape?  
55. Briefly  explain  the  magnetic  list  system.  
56. Explain  the  disk  organization  in  magnetic  disk  system.  
57. Explain  the  data  is  organized  on  magnetic  tape.  
58. Explain   the   term   track,   sector,   and   cylinder   in   the   context   of   magnetic  
disks.  
59. Describe  the  read  write  head  in  the  magnetic  disk.  
60. Distinguish  between  movable  and  fixed  head  systems  in  a  magnetic  disk  
system.  
61. Explain  the  structure  of  read  write  head  in  magnetic  disk  system  
62. What  is  DVD?  Explain  
63. What  is  cache  memory?  Explain  its  function.  
64. Define  catch  hit  ratio  
65. What  is  catch  miss  
66. What  is  mean  by  memory  mapping  in  cache  memory  
67. Explain  the  direct  mapping  in  cache  memory  
68. What  is  virtual  memory?  
69. What  are  the  relevance  and  advantages  of  virtual  memory  
70. What  is  demand  paging  
71. Explain  the  associate  mapping  in  cache  memory  
72. Explain  set  associate  mapping  in  cache  memory  
73. What  is  input  output  interface  module  
74. What  is  COM?  
75. What  is  DMA?  Write  its  merits  and  demerits  
76. What  is  RAM,  explain?  
77. Briefly  describe  the  magnetic  taps  systems?  
78. What  is  a  peripheral  device.  List  out  any  four?  

UNIT III

79. Differentiate  between  data  and  information?  


80. General  equation  for  number  system?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     39    


 

81. Convert  1011  01012  to  decimal.    


82. Convert  1100101110100102  to  octal.    
83. Convert  74238to  binary.    
84. Convert  1100101110100102  to  hexadecimal.    
85. Convert  8FE316  to  binary.    
86. Convert  63810  to  hexadecimal.    
87. Convert  56710  to  binary.    
88. Define  error  detection  and  error  correction  code?  

UNIT IV

89. Short  note  on  network  and  distribution  operating  system?  


90. List  the  types  of  software?  
91. What  is  the  role  of  operating  system  in  a  Computer?  
92. List  out  the  major  jobs  of  operating  system?  
93. What  are  the  types  of  OS?  
94. Write  a  short  note  on  system  software?  
95. Write  a  short  note  on  application  software?  
96. Define  utility  software?  
97. What  are  the  need  of  operating  system?  
98. What  are  the  functions  of  OS?  
99. Define  batch  processing  operating  system?  

100.  Define  multi  programming  operating  system?  


101.  Define  different  operating  system  ?  

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

1. Design  the  circuit  diagram  for  half  subtraction?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     40    


 

2. What  is  a  combinational  circuit?  What  are  the  procedures?  


3. Design  a  half  adder?  obtain  its  truth  table  and  expression?  
4. Design  a  full  adder?  obtain  its  truth  table  and  expression?  
5. Design  a  half  subtractor?  obtain  its  truth  table  and  expression?  
6. Design  a  full  subtractior?  obtain  its  truth  table  and  expression?  
7. Write  any  two  types  of  computer?  
8. What  are  the  basic  logic  gates?  
9. Differentiate  between  combinational  and  sequential  circuit?      
10. What  is  mean  by  universal  gates  explain  brief?  
11. Using  NAND  gate  to  design  OR  and  AND  
12. Explain  the  generation  history  of  computer  

UNIT II

13. Briefly  explain  the  memory  hierarchy?  


14. What  is  cache  memory?  Write  its  significance?  
15. Discuss  the  importance  of  Cache  Memory?
16. Explain  about  Magnetic  Tapes
17. Explain  about  Floppy  disks
18. Explain  about  Optical  Drives
19. Explain about USB Flash Drives.
20. Explain bus interface unit?
21. Define instruction set?
22. Explain system clock?

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     41    


 

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?    

B.Voc  Software  Technology.  First  Semester  Question  Bank.     42    


 

UNIT III

11.  Describe  different  types  of  computer  codes?  


12  .  Explain  detail  about  R’s  and  R-­‐1  compliment  representation?  
With  suitable  example?  
13.  Discuss  the  rule  for  unsigned  binary  arithmetic.  Illustrate  with  example  
14.    Discuss  the  rule  for  signed  binary  arithmetic.  Illustrate  with  example  
15.  Discuss  any  three  number  systems  along  with  rules  for  converting  from  
one          number  system  to  another.  Illustrate  with  example?  
 

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.  First  Semester  Question  Bank.     43    


 

 
 
B.Voc  Software  Technology  
Model  Question  Paper  
SDC1ST01 Introduction to Computer Science & Programming  

Hours:  3  Hours                 Total:  80    Marks  

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 _______________  
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     44    


 

 
 
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.  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     45    


 

Programme : B.Voc in Software Technology


Semester : 1st
Course Code : SDC1ST02
Course Name : Introduction to Web Technologies and
Design Tools

B.Voc  Software  Technology.  First  Semester  Question  Bank.     46    


 

SDC1ST02  Introduction  to  Web  Technologies  and  Design  Tools  

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    

Dreamweaver  :  Exploring  Dreamweaver  Interface,  Planning  &  Setting  Web  Site  


Structure,  Working  with  panels,  Understanding  and  switching  views,  Using  
property  inspector,  Formatting  text,  Creating  Web  pages,  Hyperlinking  pages,  
External  Linking,  Anchor,  Inserting  Tables,  Working  with  images,  Understanding,  
Creating  rollover  images  Working  with  forms,  Validating  forms,  Creating  Tabbed  
Panel,  Creating  Collapsible  panel,  Using  Behaviors  ,  Creating  interactive  website.    

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.      
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     47    


 

VERY  SHORT  ANSWER  QUESTION  (1  MARKS)  

UNIT  -­‐  I    

1. HTML  stands  for  ___________  


2. HTML  is  considered  as  _____________  language  
3. What  tag  used  to  display  images?  
4. Which  tag  insert  horizontal  line  in  web  pages?  
5. What  is  the  HTML  tag  to  insert  a  line  break?  
6. There  are  _______different  heading  tags  in  HTML  
7. Which  tag  used  to  make  bolded  text?  
8. HTTP  stands  for  ___________  
9.  What  does  the  .com  domain  represents?  
10. Google  Chrome  is  a____________  software  
11. ____________  tag  used  to  create  comments  in  HTML  
12. Which  of  the  following  is  not  an  example  of  a  browser  
a. Netscape  navigator  
b. Microsoft  Bing  
c. Mozilla  Firefox  
d. Opera  
13. HTML  tags  are  surrounded  by  _________  brackets.  
14. _____________provides  the  largest  text.  
a. <H6>    
b. <h4>    
c. <H1>  
d. Bold  
15. The  following  is  (are)  web  browser(s)?  
a. Chrome  
b. Internet  Explorer  
c. Firefox  
d. All  of  the  above  
16. Pick  the  odd  one  out  
a. Google  
b. Bing  
c. Firefox  
d. Yahoo  
17. An  HTML  document  must  be  enclosed  in    
a. <title>  ….  </title>  tag  
b. <html>  ….  </html>  tag  
c. <head>  …  </head>  tag  
d. <body>  ….  </body>  tag  
18. What  is  the  correct  tag  for  the  largest  heading?  
a. <h1>  
b. <h6>  
c. <large>  
d. <high>  
19. Header  section  of  an  HTML  page  is  defined  using  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     48    


 

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.    

B.Voc  Software  Technology.  First  Semester  Question  Bank.     49    


 

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">  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     50    


 

b. <img  src="image.gif"  alt="MyImage">  


c. <img  href="image.gif"  alt="MyImage">  
d. <img  alt="MyImage">image.gif</img>  
42. Which  HTML  attribute  specifies  an  alternate  text  for  an  image,  if  the  
image  cannot  be  displayed?  
a. alt  
b. longdesc  
c. title  
d. src  
43. What  is  the  tag  to  create  an  ordered  list?  
a. <ul>  
b. <ol>  
c. <li>  
d. <ulist>  
44. What  tag  is  used  to  create  a  list  item?  
a. <litem>  
b. <item>  
c. <li>  
d. <list>  
45. <ol>  tag  create  what  kind  of  list  
a. Numbered  List  
b. Bulleted  List  
c. Ordinary  List  
d. Definition  List  
46. To  separate  single  list  items  use  
a. <li>  and  </li>  
b. <ol>  and  </ol>  
c. <ul>  and  </ul>  
d. <lb>  and  </lb>  
47. How    can  you  open  a  link  in  a  new  browser  window?  
a. <a  href=”url”  new>  
b. <a  href=url”  target=”_blank”>  
c. <a  href=”url”  target=”new”>  
d. <a  href=”url”  target=”blank”>  
48. The  tag  used  to  display  text  as  superscript  
a. <super>…..</super>  
b. <sup>  ….  </sup>  
c. <super  />  
d. <sup/>  
49. <input>  element  can  be  used  to  create    
a. input  text  controls  
b. Select  boxes  
c. Radio  button  
d. All  of  the  above  
50. File  select  boxes  are  created  by  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     51    


 

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  */  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     52    


 

d. //  this  is  a  comment  //sf;jshf’;s  


59. Which  HTML  attribute  is  used  to  define  inline  styles?  
a. Styles  
b. Class  
c. Style  
d. font  
60. What  does  CSS  stand  for?  
a. Colorful  Style  Sheets  
b. Creative  Style  Sheets  
c. Cascading  Style  Sheets  
d. Computer  Style  Sheets  
61. Which  property  is  used  to  change  the  background  color?  
a. bgcolor:  
b. background-­‐color:  
c. color:  
d. color-­‐background:  
62. How  do  you  make  the  text  bold?  
a. font-­‐weight:bold  
b. font:b  
c. style:bold  
d. font:bold  
63. How  do  you  change  the  text  color  of  an  element?  
a. color:  
b. text-­‐color:  
c. text-­‐color=  
d. fgcolor:  
64. CSS  comments  are  inserted  inside  .  
a. //...................//  
b. <!..................>  
c. /*..................*/  
d. All  of  the  above  
65. Where  in  an  HTML  document  is  the  correct  place  to  refer  to  an  external  
style  sheet?  
a. In  the  <head>  section  
b. At  the  top  of  the  document  
c. In  the  <body>  section  
d. At  the  end  of  the  document  
66. The  correct  example  of  class  selector  is    
a. h2.type1  {color:  #000000;}  
b.  h2  type1  {color:  #000000;}  
c. h2  #type1  {color:  #000000;}  
d.  #h2  type1  {color:  #000000;}  
67. The  ......................  property  allows  to  specify  how  much  space  appear  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     53    


 

between  the  content  of  an  element  and  it's  border.  


a. Spacing  
b. Marking  
c. Padding  
d. Content-­‐border  
68. What  is  the  correct  CSS  syntax  for  making  all  the  <p>  elements  bold?  
a. <p  style="font-­‐size:bold;">  
b. p  {text-­‐size:bold;}  
c. p  {font-­‐weight:bold;}  
d. <p  style="text-­‐size:bold;">  
69. How  do  you  make  each  word  in  a  text  start  with  a  capital  letter?  
a. text-­‐transform:capitalize  
b. text-­‐transform:uppercase  
c. text-­‐decoration:big  
d. You  can't  do  that  with  CSS  
70. How  do  you  display  a  border  like  this:  
The  top  border  =  10  pixels  
The  bottom  border  =  5  pixels  
The  left  border  =  20  pixels  
The  right  border  =  1pixel?  
a. border-­‐width:10px  20px  5px  1px;  
b. border-­‐width:5px  20px  10px  1px;  
c. border-­‐width:10px  1px  5px  20px;  
d. border-­‐width:10px  5px  20px  1px;  
71. How  do  you  make  a  list  that  lists  its  items  with  squares?  
a. list:  square;  
b. list-­‐type:  square;  
c. list-­‐style-­‐type:  square;  
d. list-­‐style:square  
72. How  do  you  select  an  element  with  id  "demo"?  
a. *demo  
b. #demo  
c. demo  
d. .demo  
 
UNIT  IV  
73. Which  of  the  following  is  not  a  valid  JavaScript  variable  name?  
a. 2sum    
b. first_and_last        
c. FirstAndLasat        
d. None  of  the  above  
74. Inside  which  HTML  element  do  we  put  the  JavaScript?  
a. <js>  
b. <scripting>  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     54    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     55    


 

c. If  (A  not  =B)  


d. If(A!=B)  
85. In  JavaScript,  the  first  expression  in  a  for  loop  usually  
a. Sets  the  termination  condition  
b. Increments  a  counter  
c. Creates  a  control  variable  
d. None  of  the  above  
86. In  JavaScript,  the  second  expression  in  a  for  loop  usually  
a. Sets  the  termination  condition  
b. Increment  a  counter  
c. Creates  a  control  variable  
d. None  of  the  above  
87. In  JavaScript,  the  loop  do  while(a<b)  runs  
a. Until  a>=b  
b. Until  a<b  
c. Until  a>b  
d. Until  a<=b  
88. In  JavaScript,  what  command  skips  the  rest  of  a  case  statement?  
a. Return  
b. Exit  
c. Continue  
d. Break  
89. In  JavaScript,  how  do  you  create  a  function?  
a. function=myFunction()  
b. function:myFunction()  
c. function  myFunction()  
d. fun  myFunction()  
90. 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”)  
91. what  is  the  correct  JavaScript  syntax  to  write  “Hello  World”?  
a. “Hello  World”  
b. document.write(“Hello  World”)  
c. write(“Hello  World”)  
d. response.write(“Hello  World”)  
92. In  JavaScript  ,  how  do  you  write  a  conditional  statement  for  executing  
some  code  if  “i”  is  equal  to  5?  
a. If  =!5  
b. If(I  !=5)  
c. If  <>5  
d. If(i<>5)  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     56    


 

93. In  JavaScript,  how  does  a  “while”  loop  start?  


a. While(i<=1=;  i++)  
b. While(i<=10)  
c. While  i=1  to  10  
d. While  (i<=10)  do  
94. In  JavaScript,  a++;  is  the  same  as  which  of  the  following?  
a. a=a+2;  
b. a=a+3;  
c. a=a+1;  
d. a=a+4;  
95. It  usually  advisable  to  keep  as  much  JavaScript  as  possible  in  which  
session  
a. Head  
b. Layer  
c. Body  
d. Title  
96. Scripting  languages  are    
a. High  level  programming  language  
b. Assembly  level  programming  language  
c. Machine  level  programming  language  
d. All  of  the  above  
 
UNIT  V  
97. Dreamweaver  is  sold  by  what  software  company:  
a. Adobe  
b. Macromedia  
c. Microsoft  
d. Google  
98. Bullets  in  unordered  lists  can  only  be  circles.  
a. True  
b. False  
99. To  view  and  change  current  formatting  for  selected  objects  or  text,  you  
would  use:  
a. Insert  bar    
b. Property  Inspector    
c. File  Panel    
d. File  Menu  
100. A  ___________  can  connect  users  to  a  place  on  the  same  web  page  or  
to  place  on  another  site.    
a. root  folder    
b. typeface    
c. text  editor    
d. hyperlink  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     57    


 

101. A  _____________  is  the  container/intersection  where  a  row  and  


column  meet  in  a  table.  
a. tag    
b. table  ID    
c. link    
d. cell  s  
102. The  trick  to  getting  a  ball  to  bounce  around  a  Web  page  is  to:  
a. Add  AnimationBounce  layer  
b. Add  keyframes  to  the  timeline  
c. Add  Bounce  parameters  to  the  Object  properties  
d. Dreamweave  rdoes  not  support  animation...  use  Flash  instead  
103. Which  file  controls  how  your  frames  will  appear?  
a. Frameset  
b. Master  Document  
c. Template  
d. Timeline  
104. Which  of  the  following  is  the  HTML  tag  to  start  a  Heading  Level  3?  
a. <H3>  
b. </H3>  
c. <#H3>  
d. <H3/>  
105. What  do  you  add  to  a  template  in  order  to  control  where  page  
content  goes?  
a. Text  Frames  
b. HTML  Controllers  
c. Editable  Regions  
d. Page  Content  Controllers  
106. Using  Dreamweaver,  it  is  possible  to  convert  layers  to  tables  and  
tables  to  layers.    
a. True    
b. False  
 

SECTION  B    SHORT  ANSWER  QUESTION  (2  MARKS)  

UNIT  -­‐  1    

1. What  is  a  website?  


2. How  to  add  an  image  to  HTML  page?  
3. What  is  Internet?  
4. Explain  the  syntax  of  anchor  tag.  
5. Explain  tags  used  for  super  script  and  subscript  
6. How  to  open  a  link  in  new  browser  window?  
7. What  is  WWW?  
8. What  is  the  purpose  of  creating  hyperlink?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     58    


 

9. What  is  web  browser?  


10. Explain  heading  tags  in  HTML.  
11. Explain  <img>  tag  with  example.  
12. Explain  <br>  and  <hr>  tags.  
13. Explain  any  four  text  formatting  tags.  
14. What  is  a  search  engine?  
15. What  is  the  use  of  <blockquote>  tag?  
16. Explain  <bdo>  tag.  
17. What  is  the  purpose  of  the  HTML  br  element?  Illustrate  its  usage.  
18. What  is  the  purpose  of  the  hr  element?  Illustrate  its  usage.  
19. List  attributes  of  the  HTML  img  element?  
20. What  is  the  purpose  of  the  alt  attribute  of  the  HTML  img  element?  
Illustrate  its  usage.  
21. What  is  the  purpose  of  the  src  attribute  of  the  HTML  img  element?  
Illustrate  its  usage.  
22. List  the  major  parts  of  an  HTML  document.  
23. What  is  the  purpose  of  the  !DOCTYPE  tag?  
24. What  are  HTML  attributes?  
25. Explain  the  purpose  of  color  attribute?  
26. Explain  the  purpose  of  the  bgcolor  attribute?  
27. What  are  the  purposes  of  the  br  element?  Illustrate  its  usage.  
28. What  is  the  purpose  of  the  size  attribute  of  the  HTML  hr    element?  
Illustrate  its  usage.  
29. What  is  the  purpose  of  the  HTML  title  element?  Illustrate  its  usage.  
30. Explain  the  purpose  of  the  HTML  p  element?  Illustrate  its  usage.  
 

UNIT  II  

31. How  to  set  caption  for  a  table?  


32. What  is  the  use  of  <pre>  tag?  
33. What  is  table  tag?  What  are  the  attributes  used  with  table  tag?  
34. How  will  you  create  a  password  field  in  HTML?  
35. What  is  cellspacing  and  cellpading  in  html  table?  
36. How  to  include  comments  in  HTML?  
37. What  is  hyperlink?  
38. What  is  the  purpose  of  HTML  ul  element?  
39. What  is  the  purpose  of  HTML  strike  element?  Illustrate  its  usage.  
40. List  attributes  of  the  HTML  a  element?  
41. What  is  the  purpose  of  the  HTML  ol  element?  
42. List  attributes  of  the  HTML  table  element?  
43. How  can  you  define  form  in  a  web  document?  
44. What  are  hidden  controls?  
45. What  is  the  purpose  of  the  HTML  ul  element?  
46. What  is  the  purpose  of  the  type  attribute  of  the  HTML  ul  element?  
47. What  is  the  purpose  of  the  HTML  ol  element?  
48. What  is  the  purpose  of  the  HTML  dt  element?  Illustrate  its  usage.  
49. Explain  the  usage  of  HTML  bdo  element?  Illustrate  its  usage.  
50. List  attributes  of  HTML  table  element?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     59    


 

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  

61. Mention  the  need  for  CSS.  


62. What  is  CSS?  
63. What  are  different  ways  to  apply  styles  to  a  web  page?  
64. Explain  syntax  of  CSS  rules  
65. How  to  make  picture  as  a  background  of  a  web  page?  
66. How  to  add  scrolling  text  to  webpage?  
67. Explain  the  align  attribute.  
68. What  is  the  advantage  of  external  style  sheet?  
69. Differentiate  between  internal  style  sheet  and  external  style  sheet?  
70. What  is  inline  style?  Illustrate  with  example.  
71. How  to  add  comments  to  a  css  file?  
72. How  to  give  background  color  for  a  page  using  CSS?  
73. How  to  specify  text  color  using  CSS?  
74. What  is  the  use  of  text  decoration?  
75. What  is  the  use  of  text-­‐transform  style?  
76. What  is  the  use  of  text-­‐indentation  property?  
77. How  to  set  font-­‐size  using  CSS?  
78. How  to  specify  border  color  using  CSS?  
 
 

UNIT  IV  

79. What  is  JavaScript?  


80. Explain  continue  statement  in  JavaScript.  
81. What  are  the  JavaScript  dialog  boxes?  
82. What  is  an  event  in  JavaScript?  
83. In  JavaScript,  explain  the  purpose  of  alert  method.  
84. Explain  the  onclick  event  of  JavaScript.  
85. Explain  the  onchange    event  of  JavaScript.  
86. How  can  you  add  single  line  comments  in  JavaScript?  
87. How  can  you  add  multiline  comments  in  JavaScript?  
88. Explain  the  usage  of  if    conditional  statement  of  JavaScript.  
89. Differentiate  between  client  side  and  server  side  script?  
90. Explain  the  onsubmit  event  of  JavaScript?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     60    


 

91. What  is  an  event  in  JavaScript?  


92. Explain  the  usage  of  for    looping  statement  of  JavaScript?  
93. Explain  the  purpose  of  the  break  statement  of  JavaScript.  
94. Explain  the  purpose  of    the  continue    statement  of  JavaScript.  
95. How  can  you  include  scripts  in  an  HTML  page?  
96. What  is  the  purpose  of  <script>  element?  
97. How  can  you  add  single  line  comments  in  JavaScript?  
98. How  can  you  add  multi-­‐line  comments  in  JavaScript?  
 
 
UNIT  V  

99. What  is  meant  by  a  WYSIWYG  HTML  editor?  


100. What  is  hypermedia?  
101. What  are  block  level  elements?  
102. Explain  align  attribute?  
103. How  can  you  write  single  tag  elements?  Give  example.  
104. What  is  hyperlink?  Illustrate  with  example.  
105. Explain  the  attributes  of  form  element?  
106. What  is  purpose  of  HTML  strike    element?  
107. What  is  the  purpose  of  HTML  comment?  
108. What  is  the  purpose  of  HTML  em  element?  
109. Differentiate  between  HTML  elements  i  and  em.  
110. What  is  the  purpose  of  HTML  u  element?  Illustrate  its  usage.  
111. What  is  the  purpose  of  the  color  attribute  of  the  HTML  hr  element?  
Illustrate  its  usage.  
112. What  is  the  purpose  of  the  width  attribute  of  the  HTML  hr  
element?  Illustrate  its  usage.  
113. List  the  attributes  of  the  HTML  th  element.  
114. Differentiate  between  HTML  elements  th  and  td.  

 
 
SECTION  C  SHORT  ESSAY  (  4  MARKS)      

UNIT  -­‐  1    

1.Explain  different  text  formatting  tags  in  HTML  


2.Explain  marquee  tag  with  example.  
3.What  is  the  use  of  <font>  tag  explain  it  with  attributes.  
4.Explain  body  tag  with  its  attributes.  
5.Explain  different  elements  in  the  header  section  of  a  web  page.  
6.What  are  anchors?    Explain  the  procedure  to  set  up  anchors  of  different  
destination.  
7. Write  an  HTML  document  that  illustrates  different  types  of  paragraph  
alignments.  
UNIT  II  

8. What  do  you  mean  by  frame  tag?  How  this  can  be  used    in  a  web  page?  
9. Explain  different  attributes  of  frameset  tag.  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     61    


 

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  

26. What  are  events?  Explain  different  events  in  JavaScript.  


27. How  to  write  function  in  JavaScript?  
28. Explain  for  loop  in  JavaScript  with  example.  
29. Explain  break  statement  in  JavaScript.  
30. Write  a  simple  JavaScript  to  display  “hello  World”  on  the  screen.  
31. Write  a  JavaScript  to  find  the  average  of  five  numbers.  Explain  the  script.  
32. Write  a    JavaScript  to  illustrate  onChange  event.  
33. Write  a  JavaScript  to  find  greater  number  between  two  numbers.  
34.  Explain  logical  operators  in  JavaScript.  
35. Explain  if-­‐else  statement  in  JavaScript  with  example.  
36. What  is  the  difference  between  ==  and  ===  explain  with  example.  
37. How  can  you  include  comments  in  JavaScript?  Illustrate  with  example.  
38. Explain  different  conditional  statements  in  JavaScript.  
39. Explain  different  looping  statements  in  JavaScript.  
40. Explain  the  purpose  of  continue  and  break  statements  in  JavaScript.  
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     62    


 

 
UNIT  V  

41. Explain  structure  of  HTML  program.  


42. Write  a  simple  HTML  page.  Explain  tags  used.  
43. How  to  use  table  to  structure  a  form,  explain  with  example.  
44. Write  an  HTML  document  that  can  display  a  simple  table  with  borders.  
45. Write  an  HTML  document  that  can  display  a  bulleted  list  with  hyperlinks.  
46. Write  an  HTML  document  that  can  display  a  definition  list.  
47. Write  an  HTML  document  that  can  display  an  ordered  list.  
48. Write   an   HTML   document   that   illustrates   the   use   of   different   levels   of  
headings.  
49. Write  an  HTML  document  that  can  display  a  nested  bulleted  list  with  
hyperlinks.  
 
 
 
SECTION  D  ESSAY  (15  MARKS)      

UNIT  -­‐  1    

1. Describe  various  text  formatting  elements  of  HTML.  Illustrate  with  


examples.  
2. Explain  frame  and  freameset.  Illustrate  with  example.  
3. Describe  the  general  structure  of  an  HTML  page.  Explain  with  example.  
4. Explain  following  HTML  tags  with  example  
a. Img  
b. H1,h2,  …..,h6  
c. UL,OL,DL  
5. Explain  the  usage  of  following  form  elements  with  example  
a. Radio  button  
b. Check  box  
c. Select  box  
d. Textarea  

UNIT  II  

6. Explain  different  form  elements  with  example?  


7. Explain  all  table  related  tags  and  properties?  Write  and  explain  an  
example  to  create  a  table.    
8. Write  an  essay  on  applications  of  Internet.  
9. Create  a  web  page  to  store  student  details  using  form  and  form  elements.  
Use  at  least  6  form  elements.  
10. Explain  any  six  HTML5  tags  with  example  

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     63    


 

properties.  Illustrate  with  examples.  


13. Write  an  essay  on  CSS  border  properties?  Illustrate  with  example.  
14. Explain  CSS  padding  properties.  Explain  CSS  margin  properties.  Illustrate  
with  example.  
15. Explain  following  with  examples  
a. CSS  box  model  
b. CSS  outline  properties  
c. CSS  dimension  properties  
d. CSS  positioning  properties.  

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.  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     64    


 

B.Voc  Software  Technology  


Model  Question  Paper  
SDC1ST02  Introduction  to  Web  Technologies  and  Design  Tools  

Hours:  3  Hours                 Total:  80    Marks  

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.Voc  Software  Technology.  First  Semester  Question  Bank.     65    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     66    


 

c. CSS  dimension  properties  


d. CSS  positioning  properties.  
34. Write  JavaScript  for    
a. First  10  even  numbers  
b. First  10  odd  numbers  
c. Prime  numbers  up  to  100  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     67    


 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Programme : B.Voc in Software Technology
Semester : 1st
Course Code : SDC1ST03
Course Name : Object Oriented Programming in
Java  
 
 
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     68    


 

SDC1ST03  Object  Oriented  Programming  in  Java  

Hours:  4                        Credit:  5  

Module  I    

OOPS   Concepts:   Class,   Objects,   Comparison   with   procedure   oriented  


programming,  Features:  Abstraction,  Encapsulation,  Polymorphism,  Inheritance,  
Message  Passing,  UML  Representations    

Module  II    

Introduction   to   Programming   in   Java:   Features   of   java,   Unicode,   Data   Types,  


Variables,   Operators,   keywords,   Methods,   Conditionals   Loops,   Arrays:   One  
dimensional,  multidimensional  arrays.    

Module  III    

Class   Fundamentals,   Creating   objects,   Assigning   object   reference   variables,  


Introducing   Methods,   Static   methods,   Constructors,   Overloading   constructors,  
This   Keyword,   Using   Objects   as   Parameters,   Argument   passing,   Returning  
objects,  Method  Overloading,  Garbage  Collection,  The  Finalize  (  )  Method    

Module  IV    

Inheritance:   Types,   Advantages,   keyword   super,   Method   Overriding,   Abstract  


Classes,   Polymorphism,   Final   Keyword,   Interfaces,   Packages   ,Defining   Package,  
CLASSPATH.   Exceptions:   try,   throw,   throws,   catch,   finally,   user   defined  
exceptions,  Built  in  exceptions    

Module  V    

Multithreading:   An   Introduction,   The   Main   Thread,   Java   Thread   Model,   Thread  


Priorities,   Synchronization   in   Java,   Inter   threads   Communication.   Java   I/O  
Classes   and   Interfaces,   I/O   Stream   Classes,   Input   and   Output   Stream,   Input  
Stream  and  Output  Stream  Hierarchy.    

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.    
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     69    


 

VERY  SHORT  ANSWER  QUESTION  (1  MARKS)  

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     70    


 

13. JIT  Means  


a. JustinTime  
b. JavainTime    
c. JoinInTime    
d. None  
14. Java  programs  have  to  be  saved  with  the  following  extension:    
a. .java  
b. .txt  
c. .doc  
d. .xls  
15. The  Java  compiler  translates  source  code  into    
a. Machine  code.  
b. Assembly  code.    
c. Byte  code.  
d. JVM  cod.  
16. Who  is  considered  as  the  creator  of  java?  
17. What  are  the  supported  platforms  by  Java  Programming  Language?  
 
UNIT  II  
18. What  is  the  numerical  range  of  char  
a. -­‐128  to  127  
b. 235  to  -­‐235  
c. 0  to  32767  
d. 0  to  65535  
19. Which  is  the  keyword  used  to  define  a  class?  
20. In  the  statement  'public  static  void  main  (  String  args[  ])  '  the  word  ‘static’  
signifies  
 .................................  
21. A  bit  can  have  _______  different  values  
22. The  term  ________  refers  to  way  of  organizing  classes  that  share  properties  
23. The  value  of  42%10  is  ______  
24. readChar  and  ReadLinelong  are  two  methods  in  the  ______  class  
25. A  list  of  statements  enclosed  in  curly  brackets  is  called  ____  
26. A  __________  method  is  a  method  that  can  be  invoked  using  the  class  name  
instead  of  an  object  name  
27. What  do  you  mean  by  Object?  
28. The  method  used  to  convert  from  string  to  float  is  ______  
29. An  array  can  be  initialized  by  enclosing  a  list  of  values  in  ____  
30. ______  keyword  is  used  to  inherit  a  class  
31. When  parseInt()  method  can  be  used?  
32. List  the  various  access  Specifiers  available  in  Java?  
33. The  Boolean  data  type:  
a. is  unsigned  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     71    


 

b. has  two  states.  


c. is  displayed  by  the  program  as  yes  or  no.  
d. Both  a  and  b.  
e. All  of  the  above.  
34. What  is  the  value  of  variable  z  after  executing  the  following  code?    
int  x  =  5,  y  =  5,  z  =  5;  
if  (x  >  3)  
if  (y  >  4)  
if  (z  >  5)  z  +=  1;  
else  z  +=  2;    
else  z  +=  3;    
z  +=  4;  
a. 9    
b.  5    
c.  11    
d.  7  
35. Which  of  the  following  is  NOT  a  valid  ‘type’  in  Java?    
a. void  
b. int  
c. Integer    
d. Static  
36. In  Java  programs,  the  name  of  the  class  has  to:  
a. Be  the  same  as  the  name  of  the  file  it  is  saved  in.  
b. Be  different  from  the  name  of  the  file  it  is  saved  in.  
c. Be  all  capital  letters.  
d. Be  all  small  letters.  
37. Which  is  the  keyword  used  in  java  to  declare  constants?  
38. Examples  for  primitive  data  types?  
39. Which  of  the  following  is  an  abstract  data  type?    
a. Class  
b. Float  
c. Int  
d. Boolean  
 
 
UNIT  III  
40. _____  is  a  collection  of  related  classes  that  serves  as  a  class  library  
41.  -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐  keyword  is  used  to  refer  the  current  object.  
42.  
43. _________  means  that  two  or  more  methods  can  have  different  name  in  the  
same  way  that  an  English  word  can  have  two    or  more  meaning  
44. In  java,  a  library  of  classes  is  called  _______  
45. Which  of  these  is  TRUE  of  the  relationship  between  objects  and  classes?    

B.Voc  Software  Technology.  First  Semester  Question  Bank.     72    


 

a. A  class  is  an  instance  of  an  object.  


b. An  object  is  the  ancestor  of  its  subclass.  
c. An  object  is  an  instance  of  a  class.  
d. An  object  is  the  descendant  of  its  superclass.  
46. ‘this’  keyword  is  used  to  refer  to-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐  object    
47. Which  of  the  following  keyword  is  used  for  inheritance  
a. extends  
b. implements  
c. interface  
d. none  of  the  above  
48. Which  of  the  following  statement  is  correct?  
a. A  constructor  is  called  at  the  time  of  declaration  of  an  object    
b. A  constructor  is  called  at  the  time  of  use  of  an  object.  
c. A  constructor  is  called  at  the  time  of  declaration  of  a  class.    
d. A  constructor  is  called  at  the  time  of  use  of  a  class.  
49. Which  of  the  following  is  correct  about  function  overloading?  
a. The  types  of  arguments  are  different.  
b. The  order  of  argument  is  different.  
c. The  number  of  argument  is  same.  
d. Both  A  and  B  
 
50. To  invoke  super  class’s  constructor  _______  keyword  is  used    
a. Extends  
b. super    
c. parent    
d. child  
 
UNIT  IV  
 
51. A  class  that  cannot  be  a  subclass  is  called  as______  class.  
a. abstract  
b. parent  class  
c. Final  
d. None  of  these  
52. If  a  class  includes  an  interface  but  doesn’t  fully  implement  that  methods  
defined  by  that  interface,  then  that  class  must  be  declared  as  
a. abstract  
b. nested  interface  
c. final  
d. static  
53. ______is  at  the  top  of  exception  class  hierarchy    
a. Exception  
b. Throwable    

B.Voc  Software  Technology.  First  Semester  Question  Bank.     73    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     74    


 

current  thread  being  checked  is  still  running?  


a. isAlive()  
b. Join()  
c. isRunning()  
d. Alive()  
65. When  several  threads  act  on  object  simultaneously  and  the  result  is  
reliable  then  it  is  known  as  ____________  
a. Boxing  
b. Unsynchronized  
c. synchronized    
d. none  of  these  
66. Thread  class  is  available  in    
a. java.io  package  
b. java.lang  package    
c. java.awt  package    
d. java.util  package  
67. Thread  is  in  package    
a. java.util  
b. java.io    
c. java.lang    
d. java.awt  
68. Which  of  these  method  wakes  up  all  the  threads?  
a. wakeAll()  
b. notify()  
c. start()  
d. notifyAll()  
69. Which  of  these  methods  of  Thread  class  is  used  to  suspend  a  thread  for  a  
period  of  time?  
a. sleep()  
b. terminate()  
c. suspend()  
d. stop()  
70. Which  of  these  class  is  used  to  make  a  thread?  
a. String  
b. System  
c. Thread  
d. Runnable  
71. Which  of  these  method  wakes  up  the  first  thread  that  called  wait()?  
a. wake()  
b. notify()  
c. start()  
d. notifyAll()  
72. Which  of  these  interface  is  implemented  by  Thread  class?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     75    


 

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  
 

SECTION  B    SHORT  ANSWER  QUESTION  (2  MARKS)  

UNIT  -­‐  1    

1. What  is  inheritance?  


2. Define  object-­‐oriented  concept?  
3. What  is  Encapsulation?  
4. Why  is  java  considering  platform  Independent?  
5. What  are  the  main  4  OOPs  principle?  
6. What  is  meant  by  polymorphism?  
7. What  is  JVM?  
8. Define  JDK.  
9. What  is  Java  byte  code?  
10. Why  Java  is  considered  Portable  Language?  
11. What  is  Byte  Code?  Why  Java's  intermediary  Code  is  called  Byte  Code?  
12. What  is  polymorphism?  Explain  with  suitable  example.  

UNIT  II  

13. List  the  data  types  in  java?  


14. What  is  the  relation  between  class  and  object?  
15. What  is  the  use  of  new  keyword?  
16. Why  main  method  assigned  as  public?    
17. What  is  the  difference  between  integer  and  int?  
18. What  are  loops  in  java?  
19. What  are  the  use  of  break  and  continue  in  java?  
20. What  is  ternary  operator?  
21. Explain  finalize.  
22. What  do  you  mean  by  array?  
23. Explain  switch  case  statement.  
24. What  are  the  operators  in  the  java?  
25. What  is  meant  by  literals?  
26. Explain  if  statements  in  java  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     76    


 

27. Explain  one-­‐dimensional  array  with  simple  example.  


28. What  are  the  basic  arithmetic  operators  in  java?  
29. Explain  relational  operator  in  java.  
30. Explain  Boolean  logical  operators  
31. Write  a  note  about  primitive  data  types  in  java?  
32. Explain  for  loop  in  java  
33. Differentiate  between  while  loop  and  do  while  loop.  
34. Explain  while  and  do  while  loop.  
35. Explain  break  statement.  
36. Explain  continue  statement.  
37. How  break  and  continue  works?  

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  

59. How  can  you  force  garbage  collection?  


60. Explain  the  usage  of  Java  packages  
61. There  are  two  classes:  A  and  B.  The  class  B  need  to  inform  class  A  when  
some  important  event  has  happened.  What  Java  technique  would  you  use  
to  implement  it?  
62. What  is  garbage  collection?  What  is  the  process  that  is  responsible  for  
doing  that  in  java?  
63. For  what  purpose  “final”  keyword  is  used?  
64. How  garbage  collection  is  done  in  java?  
65. What  is  a  package?  
66. What  is  denoted  by  final  keyword?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     77    


 

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    

1. What  are  the  OOP  Principles?  Explain    


2. What  are  the  features  of  Java  Language?  
3. What  is  platform  independency?  
4. What  are  the  different  types  of  operators  used  in  Java?  
5. How  Java  supports  platform  independency?  
6. What  is  the  deference  between  path  and  class  path?  
7. What  gives  Java  its  'write  once  and  run  anywhere'  nature?  

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?  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     78    


 

11. What  are  instance  variable?  Explain  in  detail.  


12. Write  short  note  on  the  following.  
a. Instants  variable    
b. Local  variable  
c. Global  variable  
13. How  break  and  continue  works?  
14. How  class  is  defined  in  java?  Explain  with  example  
15. Write  a  java  program  to  add  the  elements  of  an  array.  
16. Explain  for  loop  with  a  small  example.  
17. Explain  relational  operators.  
18. What  do  you  mean  by  array?  
19. Discuss  the  looping  statements  in  java  language?  
20. Write  a  note  on  assignment  operator?  
21. Write  a  program  to  find  the  factorial  of  a  number?  
22. Write  a  program  to  print  Fibonacci  series  up  to  10?  
 

UNIT  III  

23. What  is  the  need  for  static  methods?  


24. What  is  the  need  for  static  methods?  
25. Why  is  main  method  assigned  as  public?  
26. What  is  the  general  form  of  a  class?  
27. What  is  the  use  of  new  keyword?  
28. Discuss  in  detail  the  access  specifiers  available  in  Java  
29. Explain  method  overriding  with  example  program  
30. What  are  the  types  of  inheritance?  
31. What  is  the  use  of  super  keyword?  
32. What  is  default  constructor?  Explain  with  program.  
33. What  is  meant  by  method  overloading?  How  is  it  achieved?  
34. What  is  meant  by  method  overriding?  Explain  with  a  suitable  example.  
35. What  is  meant  by  inheritance?  Which  keyword  is  used  for  this  purpose?  

UNIT  IV  

36. What  is  method  overloading?  


37. Illustrate  with  examples:  static  and  final  
38. What  are  Checked  and  UnChecked  Exception?  
39. What  classes  of  exceptions  may  be  caught  by  a  catch  clause?  
40. What  are  runtime  exception?  
41. What  are  checked  exceptions?  Explain  with  program  
42. Write  short  note  on  the  following.  
a. Try  
b. Catch  
43. Explain  Final  method  with  example?  
44. How  multiple  inheritance  can  be  achieved  by  using  interface?  
45. What  is  an  abstract  class?  
46. Explain  the  concept  of  package.  
47. Differentiate  between  throw  and  throws.  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     79    


 

48. What  is  meant  by  dynamic  method  dispatch?  


49. Explain  different  exception  types.  
50. What  is  exception?  How  is  it  handled  in  java?  
51. What  is  the  purpose  is  of  try  and  catch  block?  

UNIT  V  

52. Describe  synchronization  in  respect  to  multithreading  


53. What  is  multi  threading?  
54. Explain  two  methods  of  creating  threads  with  example  
55. Explain  the  Thread  and  Runnable  interface.  
56. Explain  the  life  cycle  of  thread.  
57. What  is  synchronization?  When  do  we  use  it?  
58. What  is  a  thread?  How  is  it  different  from  process?  How  threads  can  be  
created  in  java?  
59. What  is  difference  between  throw  and  throws?  

 
 
 
SECTION  D  ESSAY  (15  MARKS)      

UNIT  -­‐  1    

1. Describe  the  features  of  Java  language?    


2. Explain  about  basic  concepts  of  Object  Oriented  Programming.  
3. What  is  a  UML  diagram?  Explain  with  example.  
4. What  is  meant  by  object  oriented  programming?  Explain  benefits  of  OOP.  
Explain  applications  of  OOP.  
5. Write  and  explain  Java  program  for  
a. Print  first  10  whole  numbers  
b. Print  first  10  even  numbers  
c. Print  first  100  Prime  numbers  
 

UNIT  II  

6. Explain  various  operators  in  java.    


7. Explain  in  detailed  the  control  statements  with  suitable  example?  
8. Explain  one  dimensional  and  two  dimensional  array  in  java    
9. What  is  meant  by  data  type?  What  are  the  different  primitive  data  types  in  
java?    
10. Explain  different  looping  constructs  in  java.  
11. Explain  different  decision-­‐making  and  branching  construct  in  Java.  
Explain  with  example.  
12. Write  a  java  program  for  string  concatenation,  string  conversion  and  
string  comparison  

UNIT  III  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     80    


 

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  

20. Discuss  the  exception  handling  techniques  in  java.  


21. Explain  packages  with  example?  
22. Explain  built–in  Exception  classes.  How  user  defined  exception  classes  
can  be  implemented?  Explain  with  example.  
23. What  is  exception?  How  does  a  multiple  catch  statement  work?  Explain  
with  example  

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.  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     81    


 

B.Voc  Software  Technology  


Model  Question  Paper  
SDC1ST03  Object  Oriented  Programming  in  Java  

Hours:  3  Hours                 Total:  80    Marks  

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     82    


 

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.  
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     83    


 

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.  

 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     84    


 

Programme : B.Voc in Software Technology


Semester : 1st
Course Code : SDC1ST04
Course Name : Lab1: Web Technologies & Object
Oriented Programming in Java
 

B.Voc  Software  Technology.  First  Semester  Question  Bank.     85    


 

SDC1ST04  Lab1:  Web  Technologies  and  Object  Oriented  Programming  in  


Java  

PART  A:  Web  Technologies  


 
 
Simple  Programs  
 
1. Create  an  HTML  document  that  illustrate  the  use  of  basic  text  formatting  
elements  like  <b>,  <i>,  <u>,  <br/>,  and  <hr>    
2. Create  an  HTML  page  which  contains  6  heading  and  formatting  tags  
3. Create  an  HTML  page  which  display  all  alignment  option  of  an  image  
4. Create  an  HTML  page  with  external  and  internal  link?  
5. Create  an  HTML  document  that  illustrates  the  use  of  phrase  elements  like  
<em>,  <strong>  and  <blockquote>  
 
Lists  
6. 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.  
7. Create  an  HTML  document  that  illustrate  the  use  of  unordered  list  with  
different  types  of  symbols.  Also  include  one  or  more  nested  lists  within  
the  unordered  list.  
8. Create  an  HTML  document  that  illustrate  the  use  of  definition  list  with  
different  types  of  symbols.  Also  include  one  or  more  nested  lists  within  
the  definition  list.  
9. Create  an  HTML  document  that  illustrate  the  use  of  <img>  element  and  its  
attributes.  
 
Frame  
10. Create  an  HTML  program  to  illustrate  the  usage  of  frame.  
 
Forms  
11. Create  an  HTML  document  that  illustrate  the  use  of  form  controls  such  as  
single-­‐line  text  input,  password  text  input,  multi-­‐line  text  input  and  
submit  and  reset  button.  
12. 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.  
13. Create  an  HTML  document  that  illustrate  the  use  of  form  controls  such  as  
select  box,  file  select  box  and  submit  and  reset  button.  
 
 
Table  
14. Create  an  HTML  page  with  a  table  which  contain  column  span  row  span  
and  background  color  
15. Create  an  HTML  document  that  illustrate  the  use  of  table  elements  and  its  
attributes.  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     86    


 

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  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     87    


 

50  –  100  units   Rs.  2  per  unit  


100  –  200  units   Rs.  2.8  per  unit  
200  –  300  units   Rs.  3.5  per  unit  
above  300  units   Rs.  4.50  per  unit  
8. Write  a  java  program  to  display  n  prime  numbers  
9. Write  java  program  to  display  Fibonacci  series  upto  n  
10. Write  java  program  to  check  whether  a  given  year  is  leap  or  not  
11. Write  a  program  to  display  the  Armstrong  within  a  range  
12. Write   java   program   for   finding   the   length   of   a   given   string   and   the  
number  of  vowels  in  it.  Find  the  first  occurrence  of  a  character.    
13. Write   a   java   program   for   generating   two   threads.   One   for   odd   numbers  
and  one  for  even  numbers  
14. Write  a  program  to  compute  the  sum  of  digits  of  a  given  integer  number.  
 

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.    

B.Voc  Software  Technology.  First  Semester  Question  Bank.     88    


 

Overloading  and  overriding    


 
23. Write  a  java  program  to  find  the  volume  of  cube,  rectangular  box,  cylinder  
using  function  overloading.  
24.  Find  the  area  of  a  square  and  a  rectangle  using  overloaded  constructors  
25. Write   a   java   program   to   override   method   greatest()   for   finding   the  
greatest  of  2  numbers  and  3  numbers  

 
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.  First  Semester  Question  Bank.     89    


 

 
 
B.Voc  Software  Technology  
Model  Question  Paper  
SDC1ST04  Lab1:  Web  Technologies  and  Object  Oriented  Programming  in  
Java  

Hours:  3  Hours                 Total:  80  Marks  

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.  

B.Voc  Software  Technology.  First  Semester  Question  Bank.     90    


UNIVERSITY OF CALICUT
THENHIPALAM, CALICUT UNIVERSITY P.O

DEGREE OF
BACHELOR OF VOCATION (B.VOC)
IN
SOFTWARE TECHNOLOGY

QUESTION BANK
Semester II
(FOR THE STUDENTS ADMITTED FROM THE ACADEMIC YEAR 2014–15 ONWARDS)

UNDER THE
FACULTY OF SCIENCE

BOARD OF STUDIES IN COMPUTER SCIENCE (UG)


THENHIPALAM, CALICUT UNIVERSITY P.O
KERALA, 673635, INDIA
JULY 2014
©COPYRIGHT BY UNIVERSITY OF CALICUT, 2014
QUESTION BANK
Semester II
Course Course Name Cre Marks Hours/Week
Code dit Int Ext Tot T P Tot
GEC2EG04 (A02) Modern Prose And Drama 4 20 80 100 5 5

GEC2ML05 (A09) Malayala Sahithyapadanam 4 20 80 100 4 4

GEC2AR05 (A09) Literature in Arabic


GEC2NM06 (A11) Basic Numerical Skills 4 20 80 100 4 4
SDC2ST05 Database Management System 4 20 80 100 4 4
SDC2ST06  Web Technologies, PHP and MySQL 4 20 80 100 4 4
SDC2ST07  Lab2: PHP and MySQL 5 20 80 100 4 4
SDC2ST08  Mini-Project1 5 20 80 100 5 5

Semester II Total 30 140 560 700 21 9 30

B.Voc  Software  Technology.  Semester  II  Question  Bank.   2  


Programme : B.Voc in Software Technology
Semester : 2nd
Course Code : SDC2ST05
Course Name : Database Management System

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   3  


SDC2ST05  Database  Management  System  

Hours:  4                     Credits:  4    

Module  I    

Database   -­‐   Overview   of   database   management   system,   limitations   of   data  


processing   environment,   database   approach,   data   independence,   three   level   of  
abstraction,   DBMS   structure.   DBMS   Models:   Network,   ER,   Hierarchical,  
Relational,  Entity  Relation  Model  -­‐  Entity,  attributes,  keys,  relations,  cardinality,  
participation,   weak   entities,   ER   diagram,   Generalization,   Specialization   and  
aggregation,   conceptual   design   with   ER   model,   entity   versus   attribute,   entity  
versus  relationship,  binary  versus  ternary  relationship,  aggregate  versus  ternary  
relationship.    

Module  II    

Relational   Model   -­‐   Introduction   to   relational   model,   Domains,   Attributes,   Tuple  


and   Relation,   Super   keys   Candidate   keys   and   Primary   keys   for   the   Relations,  
Relational   Constraints,   Domain   Constraint,   Key   Constraint,   Integrity   Constraint,  
Update  Operations  and  Dealing  with  Constraint  Violation,    

Module  III    

Database  Integrity  and  Normalisation  -­‐  Relational  Database  Integrity,  The  Keys,  
Referential   Integrity,   Entity   Integrity,   Redundancy   and   Associated   Problems,  
Functional   Dependencies,   Normalisation   -­‐   The   First   Normal   Form,   The   Second  
Normal   Form,   The   Third   Normal   Form,   Boyce   Codd   Normal   Form,   Desirable  
Properties  of  Decomposition    

Module  IV    

Query  Languages  -­‐  Relational  Algebra  -­‐  select  and  projection,  Set  operations  like  
union,   intersection,   difference,   cross   product,   Joins,   division.   Database  
Languages:DDL,  DML,  DCL.  SQL.    

Module  V    

Introduction  to  transaction  management:  ACID  Properties,  states  of  transaction.  


Familiarization  with:  Views,  Stored  Procedure  and  Trigger.    

References:    

1.  Database  Management  Systems-­‐  Ramakrishnam,  Gehrke  ,  McGraw-­‐  Hill.    


2.   SQL,   PL/SQL   The   Programming   language   of   Oracle-­‐   Bayross,   B.P.B.  
Publications.    
3.   Professional   SQL   server   2000   Programming   –   Rob   Vieira,   Wrox   Press   Ltd,  
Shroff.    
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   4  


VERY SHORT ANSWER QUESTION (1 MARKS)

UNIT I

1. The  DBMS  software  together  with  data  is  called  a  _____  


2. Duplication  of  data  in  a  database  is  called_____  
3. The  ability  to  modify  a  schema  definition  in  one  level  without  affecting  
the  schema  definition  in  the  next  higher  level  is  called________  
4. The  collection  of  all  entities  of  a  particular  entity  type  in  the  database  at  
any  point  in  time  called____  
5. _______Specifies  the  predefined  set  of  possible  values  an  attribute  can  take  
6.  The  maximum  number  of  relationship  instance  that  an  entity  can  
participate  in  a  binary  relationship  determines  its____  
7. ______  option  in  a  DROP  command  enables  us  to  remove  the  database  
schema  and  all  its  tables  ,  domains    and  other  elements  
8. The  cardinality  of  the  resultant  relation  of  a  Cartesian  product  operation  
on  two  relations  with  cardinality  of  5  and  6  each  is_____  
9. The  operator  used  for  string  pattern  matching  in  SQL  is  ______  
10. The  aggregate  function  used  to  find  the  total  number  of  records  of  a  table  
is  _____  
11. The  command  used  to  delete  a  table  is  _____  
12.  ______represent  a  logical  unit  of  database  processing  that  access  and  
updates  various  data  items  in  a  database  
13. If  an  entity  can  belong  to  only  one  lower  level  entity  then  the  constraint  
is______  
14. A  transaction  is  in  __________  state  after  the  final  statement  has  been  
executed.  
15. Relationship  in  an  E-­‐R  diagram  is  represented  by_______  
16.  ______  is  a  relationship  called  when  it  is  maintained  between  two  entities  
17. The  rule  that  a  value  of  foreign  key  must  appear  as  a  value  of  some  
specific  table  is  called        a______________  
18. According  to  the  levels  of  abstraction,  the  schema  at  the  intermediate  
level  is  called________  
19.  It  is  an  abstraction  through  which  relationship  are  treated  as  higher  level  
entities  
20. A  relation  is  in  ____________  if  an  attribute  of  a  composite  key  dependent  on  
an  attribute  of  other  composite  key.  
21. In  E_R  diagram  double  lines  indicate  _______  
22. The  metadata  is  created  by  the  ______interpreter  
23. which  type  of  join  is  used  if  two  relation  R  and  S  are  joined,  then  the  non  
matching  tuples    of  both  R  and  S  are  ignore  in.  
24. _______  aggregate  function  does  not  ignore  nulls  in  its  result  
25. Relation  among  relationship  can  be  represented  is  an  E-­‐R  model  using  
_____  
26. Whenever  two  independent  one-­‐to-­‐  many  relationship  are  mixed  in  the  
same  relation  a  _____  arises  
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   5  


UNIT  II  
27. Tree  structure  are  used  to  store  data  in  ___________  model.  
28.  In  the  relational  model  terminology,  a  row  is  called  a  _____________.  
29. In  the  relational  model  terminology,  a  column  header  is  called  a  
_____________.  
30. A  ____________________database  is  a  collection  of  relations  with  distinct  
names.  
31. A  _____________________  can  be  defined  as  a  set  of  one  or  more  attributes,  that  
taken  collectively,  uniquely  identifies  tuples  in  a  relation.  
32. _____________  operation  is  used  to  change  the  value  of  some  attribute  in  
existing  tuples.  
33. An  _______________________________  is  a  condition  specified  on  a  database  
schema  and  restricts  the  data  that  can  be  stored  in  an  instance  of  the  
database.  
34. A  set  of  attributes  that  uniquely  identifies  a  tuple  according  to  a  key  
constraint  is  called  ___________________  
35. A  relational  schema  may  have  more  than  one  key,  each  of  the  keys  is  
called  a  ____________________  
36.  Entity  integrity  constraint  states  that  no  _______________________  value  can  be  
null.  
37. ______________  constraints  specify  that  the  value  of  each  attribute  must  be  
an  atomic  value  from  the  domain  associated  with  that  attribute.  
38. _______________  key  can  be  defined  as  a  set  of  one  or  more  attributes  that  
taken,  collectively,  uniquely  identifies  tuples  in  a  relation.  
 
 
UNIT  III  
39. The  statement  that  is  executed  automatically  by  the  system  as  a  side  
effect  of  the  modification  of  the  database  is_______  
40. The  normal  form  that  is  not  necessarily  dependency  preserving  is_______  
41. The  Third  Normal  Form  (3NF)  removes________  
42. Fifth  normal  form  is  concerned  with  _______  
43. The  First  Normal  Form  states  that  the  domain  of  an  attribute  must  
include  only_______  
44. The  normalization  was  first  proposed  by  ______  
45. ______  normal  form  is  considered  adequate  for  normal  relational  database  
design  
46. Dependency  preservation  is  not  guaranteed  in  ________  
47. BCNF  was  proposed  by    __________________________.  
48. In  case  of  entity  integrity,  the  primary  key  may  be____________  
49. _________________________  is  a  tool  that  allows  us  to  eliminate  redundancy.  
50. A  functional  dependency  is  a  type  of    ______________________  that  generalizes  
the  concept  of  a  key.    
 
UNIT  IV  
51. In  SQL,  testing  whether  a  subquery  is  empty  is  done  using______  
52. Count  function  in  SQL  returns  the  number  of________  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   6  


53. ______  operation  is  used  if  we  are  interested  in  only  certain  columns  of  a      
table?  
54. The  full  form  of  DDL  is_______  
55.  The  metadata  is  created  by  the_________  
56.  DROP  is  a  ______________  statement  in  SQL.  
57. ____is  a  relational  algebra  operation  do  not  require  the  participating  table  
to  be  union-­‐compatible  
58. The  keyword  to  eliminate  duplicate  rows  from  the  query  result  in  SQL  is  
__________  
59.  Relational  algebra  is  ___________language.  
60. The  __________________  operation  selects  a  subset  of  the  tuples  from  a  
relation  that  satisfy  a  given  selection  condition.  
 
UNIT  V  
61. An  advantage  of  view  is  ______  
62. Collection  of  operations  that  form  a  single  logical  unit  of  work  are  called  
___________________  
63.  _______________  means  that  either  all  of  the  instructions  within  the  
transaction  will  be  reflected  in  the  database,  or  none  of  them  will  be  
reflected.  
64. _____________  states  that  once  a  transaction  has  been  complete  the  changes  
it  has  made  should  be  permanent  
65. The  initial  state  when  the  transaction  has  just  started  execution  is  called  
_____________________.  
66. Either  committed  or  aborted,  the  transaction  finally  reaches  
____________________  state.  
67. A  _______________is  a  procedure  that  is  automatically  invoked  by  the  DBMS  
in  the  response  to  specified  changes  to  the  database.  
68.  A  _____________  type  is  defined  by  the  type  of  triggering  transaction  and  by  
the  level  at  which  the  trigger  is  executed.  
69. ________________  is  a  precompiled  set  of  one  or  more  SQL  statements  that  is  
stored  on  SQL  Server.  
70. ________________  is  used  to  rename  an  database  object  like  stored  procedure,  
views,  table  etc.  
71. __________________  provides  details  on  any  database  object  
72.  ________________  allows  a  set  of  actions  to  be  executed  with  minimum  time  
and  also  reduce  the  network  traffic.  

SECTION B SHORT ANSWER QUESTION (2 MARKS)

UNIT  1:  
1. What  is  physical  data  independence?  
2. Distinguish  between  strong  and  weak  entity  sets  
3. Explain  lossless  join  decomposition  
4. Give  the  levels  of  data  abstraction?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   7  


5. Define  instance  and  schema?  
6. Define  the  terms  Physical  schema  and  logical  schema  
7. What  is  conceptual  schema?  
8. Define  data  model?  
9. What  is  storage  manager?  
10. What  is  an  entity  relationship  model?  
11. What  are  attributes?  Give  examples.  
12. What  is  relationship?  Give  examples  
13. Define  single  valued  and  multi-­‐valued  attributes.  
14. What  are  stored  and  derived  attributes?  
15. What  are  composite  attributes?  
16. What  are  advantages  of  DBMS  over  traditional  file  based  systems?  
17. What  is  RDBMS  ?  
18. What  is  a  field  in  a  database  ?  
19. What  is  a  Table  in  a  database  ?  
20. What  is  a  Database  Lock  ?  
 
UNIT  II  
21. Name  any  four  column  constraints  
22. What  is  a  lock?  Name  the  type  of  lock  used  in  concurrency  control  
23. What  is  a  candidate  key?  
24. What  is  a  primary  key?  
25. What  is  foreign  key?  
26. What  is  a  tuple?    
27. Define  domain  constraints?  
28. Define  integrity  constrains?  
29. What  is  the  difference  between  Domains  and  attributes?  
30. What  are  the  elements  of  relational  model?  
31. Define  relational  constraints?  
32. What  is  Object  relational  model?  
 
UNIT  III  
33. What  is  meant  by  normalization  of  data?  
34. What  is  database  normalization?  
35. What  is  a  Composite  Key  ?  
36. What  is  a  Composite  Primary  Key  ?  
37. What  is  a  Unique  Key  ?  
38. Define  1Normal  form?  
39. Define  BCNF?  
40. Define  Third  normal  form?  
41. Define  functional  dependencies?  
42. Define  second  normal  Form?    
 
UNIT  IV  
43. Compare  DDL  and  DML  
44. Write  the  syntax  of  ALTER  TABLE  command  
45. Explain  about  the  UNION  operation  
46. What  are  the  different  type  of  SQL's  statements?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   8  


47. Define  SELECT  and  PROJECTION?  
48. What  are  the  different  Query  languages?  
49. Define  any  three  SET  operations?  
50. Define  Intersection  and  difference?  
51. Define  cross  product?  
 
UNIT  V  
52. What  do  you  mean  by  a  view?  
53. What  is  a  transaction?  
54. What  is  a  stored  procedure?  
55. What  are  properties  of  a  transaction?    
56. Which  are  the  different  states  of  transaction?  
57. Define  triggers  with  example?  
58. What  are  the  ACID  properties?  
59. What  are  the  uses  of  stored  procedures?  
60. What  is  DDL,  DML,  DCL?  
 
 
SECTION C SHORT ESSAY ( 4 MARKS) 

UNIT  I  
1. Describe  the  characteristic  of  a  database  
2. Explain  about  various  aggregate  functions  available  in  SQL  
3. Write  short  notes  on  granting  and  revoking  privileges.  
4. Distinguish  between  serial  schedule  and  serializable  schedule  
5. What  is  a  data  model?  List  the  types  of  data  model  used.    
6. Define  database  management  system?  
7. List  any  eight  applications  of  DBMS.  
8. What  are  the  disadvantages  of  file  processing  system?  
9. What  are  the  advantages  of  using  a  DBMS?  
10. Define  the  terms  Entity  set  and  Relationship  set  
11. Define  the  terms  Entity  type  and  Entity  set  
12. Define  the  terms  Key  attribute  and  Value  set  
13. Explain  the  two  types  of  participation  constraint.  
14. What  is  meant  by  lossless-­‐join  decomposition?  
15. List  the  disadvantages  of  relational  database  system  
16. Define  Atomicity  and  Aggregation.  
17. Define  Entity  Set.  What  do  you  mean  by  Entity  type?  
18. What  are  the  disadvantages  in  File  Processing  System?  
19. Describe  the  three  levels  of  data  abstraction?  
20. What  is  a  view?  How  it  is  related  to  data  independence?  
21. What  are  an  Entity,  Entity  type  and  Entity  set?  
22. What  is  Weak  Entity  set?  
23. What  is  durability  in  DBMS?  
24. What  do  you  mean  by  atomicity  and  aggregation?  
25. What  is  the  job  of  the  information  stored  in  data-­‐dictionary?  
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   9  


UNIT  II  
26. Define  an  integrity  constraint.  What  is  the  role  of  a  foreign  key  in  
maintaining  the  integrity?  
27. What  is  a  Relation  Schema  and  a  Relation?  
28. What  is  RDBMS  KERNEL?  
29. What  is  Primary  key  and  super  keys?  
30. Explain  Relational  constraints?  
31. Explain  domain  constraints?  
32. Explain  domain  and  attributes  with  examples?  
33. Define  key  constraints?  
 
 
UNIT  III  
34. What  is  first  normal  form?  
35. What  is  meant  by  functional  dependencies?  
36. What  are  the  uses  of  functional  dependencies?  
37. Explain  trivial  dependency?  
38. What  is  meant  by  computing  the  closure  of  a  set  of  functional  
dependency?  
39. What  is  program-­‐data  independence?  
40. What  is  program-­‐operation  independence?  
41. What  is  2NF?  Example.  
42. What  is  BCNF  (Boyce-­‐Codd  Normal  Form)?  
 
UNIT  IV  
43. Which  part  of  the  RDBMS  takes  care  of  the  data  dictionary?  How?  
44. Briefly  explain  the  different  Query  languages?  
45. Briefly  explain  the  set  operations  union,  intersection,  difference,  cross  
product?  
46. Briefly  explain  the  set  operations  cross  product,  joins,  division?  
47. Write  a  note  about  different  database  languages?  
48. Define  DDL  and  DML?  
49. Define  DCL  and  SQL?  
50. State  the  difference  between  select  and  projection  with  an  example?  
 
UNIT  V  
51. What  are  the  different  phases  of  transaction?  
52. Briefly  explain  the  different  ACID  properties?  
53. What  do  you  mean  by  transaction  management?  
54. How  we  can  manage  different  transactions  in  database?  
55. Explain  briefly  about  states  of  transaction?  
56. Define  views  with  example?  
57. What  do  you  mean  by  stored  procedures?  
58. Explain  triggers?  
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   10  


SECTION D ESSAY (15 MARKS) 

UNIT  I  
1. Draw  an  ER  diagram  for  a  library  database  system.    Identify  the  
appropriate  entities,  attributes  and  relational  ships.  
2. a.  Briefly  explain  about  main  concepts    used  in  object  oriented  databases.  
b.  Distinguish  between  lock-­‐based  protocols  and  timestamp-­‐based  
protocols.  
3. What  does  the  cardinality  ratio  specify?  Explain  with  example.  
4. What  is  Data  Model?  Explain  types  of  data  model.  
5. What  are  the  disadvantage  in  File  Processing  System?    
6. What  are  the  advantages  of  DBMS?  
7.  Describe  in  detail  the  three  levels  of  data  abstraction?  
8. What  do  you  understand  by  relation  in  relational  database  model?  
9. a.  Briefly  explain  the  architecture  of  a  DBMS.      
b.  How  relational  calculus  differs  from  relational  algebra?  Explain  with  
suitable  example  
 
UNIT  II  
10. Explain  relational  models?  
11. Explain  different  keys  with  examples?  
12. Explain  different  constraints  in  relational  model?  
13. Explain  Domain  constraints  and  relational  constraints  with  example?  
14.  Explain  the  concept  of  Super  keys,  Primary  key,  Candidate  key,  tuple,  
domains,  and  attributes?  
 
UNIT  III  
15. Discuss  about  the  importance  of  normal  forms.  
16. What  is  third  normal  form?  Explain  with  example.  
17. Explain  1NF,  second  normal  form  and  3NF?  
18. Explain  functional  dependencies?  
19. Explain  different  database  integrity?  
 
UNIT  IV  
20. List  the  table  modification  commands  in  SQL  
21. Define  SQL  and  state  the  differences  between  SQL  and  other  conventional  
programming  Languages.  Explain  different  database  languages.  
22. Explain  different  Set  operations  with  examples?  
23. Explain  different  database  languages?  
24. Explain  the  difference  between  select  and  projection?  Explain  with  
example.  
 
UNIT  V  
25. What  are  the  ACID  properties?  Explain  briefly.  
26. What  are  the  states  of  transaction?  Explain  with  diagram.  
27. What  are  stored-­‐procedures?  And  what  are  the  advantages  of  using  them?  
28. What  is  a  database  transaction?  What  are  properties  of  a  transaction?    

B.Voc  Software  Technology.  Semester  II  Question  Bank.   11  


29. Describe  Normal  form  with  suitable  example.  
30. Compare  BCNF  and  third  normal  form.  Explain  with  example.  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   12  


B.Voc  Software  Technology  
Model  Question  Paper  
SDC2ST05  Database  Management  System  
Hours:  3  Hours                 Total:  80    Marks  
PART  A  
Answer  All  Questions  (1*10  =10Marks)  
 
1. Duplication  of  data  in  a  database  is  called_____  
2. The  aggregate  function  used  to  find  the  total  number  of  records  of  a  table  
is  _____  
3. A  relational  schema  may  have  more  than  one  key,  each  of  the  keys  is  
called  a  ____________________  
4. Entity  integrity  constraint  states  that  no  _______________________  value  can  be  
null.  
5. Fifth  normal  form  is  concerned  with  _______  
6. BCNF  was  proposed  by    __________________________.  
7. The  full  form  of  DDL  is_______  
8. The  __________________  operation  selects  a  subset  of  the  tuples  from  a  
relation  that  satisfy  a  given  selection  condition.  
9. The  initial  state  when  the  transaction  has  just  started  execution  is  called  
_____________________.  
10. ________________  is  used  to  rename  an  database  object  like  stored  procedure,  
views,  table  etc.  
 
PART  B  
Answer  Any  8  Questions  (2*8  =16Marks)  
 
11. What  is  physical  data  independence?  
12. Distinguish  between  strong  and  weak  entity  sets  
13. What  is  RDBMS  ?  
14. What  is  a  lock?  Name  the  type  of  lock  used  in  concurrency  control  
15. Define  integrity  constrains?  
16. Compare  DDL  and  DML  
17. Write  the  syntax  of  ALTER  TABLE  command  
18. Define  Intersection  and  difference?  
19. What  is  a  transaction?  
20. What  is  a  stored  procedure?  
21. What  are  properties  of  a  transaction?    
22. What  are  the  uses  of  stored  procedures?  
 
PART  C  
Answer  Any  6  Questions  (4*6  =24Marks)  
 
23. List  any  eight  applications  of  DBMS.  
24. What  are  the  disadvantages  of  file  processing  system?  
25. Describe  the  three  levels  of  data  abstraction?  
26. What  is  a  view?  How  it  is  related  to  data  independence?  
27. What  is  Primary  key  and  super  keys?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   13  


28. Explain  Relational  constraints?  
29. What  do  you  mean  by  stored  procedures?  
30. Explain  triggers?  
 
 
PART  D  
Answer  Any  2  Questions  (15*2  =30Marks)  
31. Draw  an  ER  diagram  for  a  library  database  system.    Identify  the  
appropriate  entities,  attributes  and  relational  ships.  
32. Explain  different  constraints  in  relational  model?  
33. Explain  1NF,  second  normal  form  and  3NF?  
34. What  are  the  states  of  transaction?  Explain  with  diagram.  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   14  


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Programme : B.Voc in Software Technology
Semester : 2nd
Course Code : SDC2ST06
Course Name : Web Technologies, PHP and
MySQL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   15  


SDC2ST06  Web  Technologies,  PHP  and  MySQL  

Hours:  4                                          Credit:  4    
           

Module  I    

XML   Basics,   XML   Document   Structure,   XML   Namespaces,   Document   Type  


Definitions,   XML   Schemas,   Displaying   XML   Documents,   reading   from   XML,  
Writing  to  XML,  Populating  data  from  XML  to  Controls.    

Module  II    

PHP:   Introduction   to   PHP,   Server   side   scripting,   Role   of   Web   Server   software,  
including   files,   comments,   variables   and   scope,   echo   and   print,   Operators:  
Logical,   Comparison   and   Conditional   operators,   Branching   statements,   Loops,  
break  and  continue,  PHP  functions    

Module  III    

Working   with   PHP:   Passing   information   between   pages,   HTTP   GET   and   POST  
method,   String   functions:   strlen,   strops,   strstr,   strcmp,   sustr,   str_replace,   string  
case,  Array  constructs:  array(),  list()  and  foreach(),    

Module  IV    

PHP  advanced  functions:  Header,  Session,  Cookie,  Object  Oriented  Programming  


using  PHP:  class,  object,  constructor,  destructor  and  inheritance.    

Module  V  

PHP   &   MySQL:   Features   of   MySQL,   data   types,   Introduction   to   SQL   commands-­‐  
Select,   Delete,   Update,   Insert,   PHP   functions   for   MySQL   operations:  
mysqli_connect,   mysqli_select_db,   mysqli_query,   mysqli_fetch_row,  
mysqli_fetch_array,   mysqli_fetch_object,   mysqli_result,   Insertion   and   Deletion  
using  PHP,  Displaying  data  from  MySQL  in  webpage.    

References:    

. Jon  Ducket,  Web  Programming  with  HTML,  XHTML,  CSS,  Wrox  Beginning      

. Jim  Converse  &  Joyce  Park,  PHP  &  MySQL  Bible,  Wiley.      

 
 
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   16  


VERY  SHORT  ANSWER  QUESTION  (1  MARKS)  

UNIT  -­‐  I    

1. What  does  XML  stand  for?  


a. eXtra  Modern  Link  
b. eXtensible  Markup  Language  
c. Example  Markup  Language  
d. X-­‐Markup  Language  
2. What  does  DTD  stand  for?  
a. Direct  Type  Definition  
b. Dynamic  Type  Definition  
c. Document  Type  Definition  
d. Do  The  Dance  
3. Which  of  the  following  instruct  the  browser  which  stylesheet  to  use  
a. <xml-­‐stylesheet  type="text/xsl"  href="cd.xsl">  
b. <xml-­‐stylesheet  type="text/xsl"  xsl="cd.xsl">  
c. <?xml-­‐stylesheet  type="text/xsl"  href="cd.xsl"?>  
d. <?xml-­‐stylesheet  type="text/xsl"  xsl="cd.xsl"?>  
4. Which  of  the  following  statements  about  XML  schemas  is  incorrect?  
a. All  XML  documents  must  have  a  schema  
b.  Schemas  can  specify  integer  values  
c.  Schemas  are  defined  by  XSD  tag  
d.  They  offer  more  flexibility  than  DTDs  
5. What  is  an  XML  namespace?  
a. A  set  of  names  applied  to  specific  spaces  within  an  XML  document,  
such  as  the  head  and  body  
b. A  set  of  names  representing  a  specific  XML  vocabulary  
c. A  set  of  names  for  XML  documents  pertaining  to  a  particular  
vocabulary  
d. None  of  the  above.  
6. What  is  the  default  namespace  
a. The  namespace  used  by  default  when  no  namespace  is  declared  
b. The  namespace  used  when  two  or  more  namespaces  are  
referenced  
c. A  namespace  that  is  referenced  with  the  xmlns  attribute,  but  
without  a  prefix  
d. None  of  the  above  
7. Identify  the  most  accurate  statement  about  the  application  of  XML:  
a. XML  must  be  used  to  produce  XML  and  HTML  output.  
b. XML  cannot  specify  or  contain  presentation  information.  
c. XML  is  used  to  describe  hierarchically  organized  information.  
d. XML  performs  the  conversion  of  information  between  different  e-­‐
business  applications.  
8. You  can  name  the  schema  using  the  name  attribute  like  
a. <schema  attribute=”schema1”>  
b. <schema  nameattribute=”schema1”>  
c. <schema  nameattri=”schema1”>  
d. <schema  name=”schema1”>  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   17  


9. How  can  we  make  attributes  have  multiple  values:  
a. <myElement  myAttribute="value1  value2"/>  
b. <myElement  myAttribute="value1"  myAttribute="value2"/>  
c. <myElement  myAttribute="value1,  value2"/>  
d. attributes  cannot  have  multiple  values  
10. XML  uses  the  features  of  
a. HTML  
b. XHTML  
c. VML  
d. SGML  
11. Which  of  the  following  strings  are  a  correct  XML  name?  
a. xmlExtension  
b. xslNewElement  
c. XMLElement#123  
d. All  
 
12. Which  statement  is  true?  
a. XML  documents  must  have  a  root  tag  
b. XML  tags  are  case  sensitive  
c. All  the  statements  are  true  
d. XML  elements  must  be  properly  nested  
13. Comment  in  XML  document  is  given  by  
a. <?-­‐-­‐  -­‐-­‐>  
b. <!-­‐-­‐  -­‐-­‐!>  
c. <!-­‐-­‐  -­‐-­‐>  
d. </-­‐-­‐  -­‐-­‐  >  
14. A  schema  describes  
a. Grammar  
b. Vocabulary  
c. Structure  
d. Data  type  of  XML  document  

UNIT  II  

15. PHP  server  scripts  are  surrounded  by  delimiters,  which?  


a. <?php>...</?>  
b. <script>...</script>  
c. <&>...</&>  
d. <?php...?>  
16. PHP  stands  for  __________  
17. PHP  scripts  are  executed  on  _________  
a. ISP  Computer  
b. Client  Computer  
c. Server  Computer  
d. It  depends  on  PHP  scripts  
18. What  is  the  correct  way  to  add  1  to  the  $count  variable?  
a. ++count  
b. $count  =+1  
c. count++;  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   18  


d. $count++;  
19. Which  of  the  following  attribute  is  needed  for  file  upload  via  form?  
a. enctype='multipart/form-­‐data'  
b. enctype='singlepart/data'  
c. enctype='file'  
d. enctype='form-­‐data/file'  
20. In  PHP  Language  variables  are  case  sensitive  
a. True  
b. False  
c. Depends  on  website  
d. Depends  on  server  
21. How  do  you  write  "Hello  World"  in  PHP  
a. Document.Write("Hello  World");  
b. echo  "Hello  World";  
c. "Hello  World";  
d. Document.Write(‘Hello  World’);  
22. What  is  a  correct  way  to  add  a  comment  in  PHP?  
a. <!-­‐-­‐...-­‐-­‐>  
b. /*...*/  
c. <comment>...</comment>  
d. *\...\*  
23. What  will  be  the  output  of  following  code?  
$a  =  10;  
echo  'Value  of  a  =  $a';  
a. Value  of  a  =  10  
b. Value  of  a  =  $a  
c. Undefined  
d. Syntax  Error  
24. Which  of  the  following  statements  prints  in  PHP?  
a. Out  
b. Write  
c. Echo  
d. Display  
25. All  variables  in  PHP  start  with  which  symbol?  
a. !  
b. &  
c. $  
d. %  
26. Which  one  of  these  variables  has  an  illegal  name?  
a. $myVar  
b. $my_Var  
c. $my-­‐Var  
d. &myVar  
27. Which  of  the  below  statements  is  equivalent  to  $add  +=  $add  ?  
a. $add  =  $add  
b. $add  =  $add  +$add  
c. $add  =  $add  +  1  
d. $add  =  $add  +  $add  +  1  
28. What  will  be  the  output  of  the  following  PHP  code?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   19  


<?php  
$a  =  5;  
$b  =  5;  
echo  ($a  ===  $b);  
        ?>  
a. 5  ===  5  
b. Error  
c. 1  
d. False  
29. What  will  be  the  output  of  the  following  code?  
        <?php    
                 $foo  =  'Bob';                              
   $bar  =  &$foo;                              
   $bar  =  "My  name  is  $bar";      
   echo  $bar;  
   echo  $foo;  
              ?>  
a. Error  
b. My  name  is  BobBob  
c. My  name  is  BobMy  name  is  Bob  
d. My  name  is  Bob  Bob  
30. PHP  files  have  a  default  file  extension  of..  
a. .html  
b. .xml  
c. .php  
d. .ph  
31. What  will  be  the  output  of  the  following  PHP  code  ?  
<?php  
$x  =  5;  
$y  =  10;  
$z  =  "$x  +  $y";  
echo  "$z";  
?>  
a. 15  
b. 10  +  5  
c. $z  
d. $x  +  $y  
32. What  will  be  the  output  of  the  following  PHP  code  ?  
<?php  
$x  =  4;  
$y  =  3  
$z  =  1;  
$z  =  $z  +  $x  +  $y;  
echo  "$z";  
?>  
a. $z  
b. 15  
c. 8  
d. 1  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   20  


33. Which  of  the  below  symbols  is  a  newline  character?  
a. \r  
b. \n  
c. /n  
d. /r  
34. What  will  be  the  output  of  the  following  PHP  code  ?  
<?php  
echo  "Hello  world  </br>  I  am  learning  PHP";  
?>  
a. Hello  world  
b. Hello  world  I  am  learning  PHP  
c. Hello  world  
I  am  learning  PHP  
d. Error  
35. Which  of  the  following  is  used  to  declare  a  constant  in  PHP?  
a. Const  
b. Constant  
c. Define  
d. #pragma  
36. What  will  be  the  output  of  the  following  PHP  code  ?  
<?php  
$i  =  0  
while  ($i  <  3)  
{  
$i++;  
}  
print  $i;  
?>  
a. 2  
b. 3  
c. 0  
d. 1  
37. Which  operator  is  used  to  concatenate  two  strings  in  PHP?  
a. Dot  operator  (.)  
b. Plus  Operator  (+)  
c. Ampersand  Operator  (&)  
d. Dollar  sign  ($)  
38. What  will  be  the  output  of  the  following  PHP  code  ?  
<?php  
do  
{  
       print  "hi";  
}  
while(0);  
print  "hello";  
?>  
a. infinite  loop  
b. hihello  
c. hello  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   21  


d. error  
39. What  will  be  the  output  of  the  following  PHP  code  ?  
<?php  
$colors  =  array("red","green","blue","yellow");    
foreach  ($colors  as  $value)  
{  
     echo  "$value  <br>";  
}  
                 ?>  
a. red  
             green  
blue  
yellow  
b. red  
c. no  output  
d. error  
40. Which  of  the  conditional  statements  is/are  supported  by  PHP?  
i)  if  statements  
ii)  if-­‐else  statements  
iii)  if-­‐elseif  statements  
iv)  switch  statements  
a. Only  i)  
b. i),  ii)  and  iv)  
c. ii),  iii)  and  iv)  
d. All  of  the  mentioned.  
41. What  will  be  the  output  of  the  following  PHP  code?  
 
 <?php  
    $a  =  "Hello";  
$a  .=  "World";  
echo  "$a";  
                           ?>  
a. Hello  
b. true  
c. false  
d. HelloWorld  
42. What  will  be  the  output  of  the  following  PHP  code?  
 
       <?php  
          $a  =  15;  
          $b  =  15;  
          echo  ($a  ===  $b);  
         ?>  
a. 15  ===  15  
b. Error  
c. 1  
d. False  
43. What  will  be  the  output  of  the  following  PHP  code?  
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   22  


       <?php  
         $user  =  array("Apple",  "Ball",  "Sugar",  "Green");  
          for  ($x=0;  $x  <  count($user);  $x++)  {  
                  if  ($user[$x]  ==  "Sugar")  continue;  
                          printf  ($user[$x]);    
          }  
         ?>  
a. AppleBall  
b. AppleBallGreen  
c. SugarGreen  
d. Sugar  
44. Which  of  the  following  is/are  the  right  way  to  declare  a  method?  
i)  function  functionName()  {  function  body  }  
ii)  scope  function  functionName()  {  function  body  }  
iii)  method  methodName()  {  method  body  }  
iv)  scope  method  methodName()  {  method  body  }  
a. Only  ii)  
b. Only  iv)  
c. i)  and  ii)  
d. iii)  and  iv)  
45. What  will  be  the  output  of  the  following  php  code?  
           <?php  
       $num    =  1;  
       $num1  =  2;  
       print  $num  .  "+".  $num1;  
                         ?>  
 
 
UNIT  III  
 
46. What  will  be  the  output  of  the  following  PHP  code?  
 
   <?php  
       $color  =  "carbon";  
       $var  =  $color[2];  
       echo  "$var";  
       ?>  
a.  a  
b. Error  
c. $var  
d. r  
47. PHP’s  numerically  indexed  array  begins  with  position  __.  
a. 1  
b. 2  
c. 0  
d. -­‐1  
48. How  do  you  create  an  array  in  PHP?  
a. $cars  =  "Volvo",  "BMW",  "Toyota";  
b. $cars  =  array["Volvo",  "BMW",  "Toyota"];  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   23  


c. $cars  =  array("Volvo",  "BMW",  "Toyota");  
d. $cars  =  ‘Volvo’,  ‘BMW’,  ‘Toyota’;  
49. How  do  you  get  information  from  a  form  that  is  submitted  using  the  "get"  
method?  
a. Request.QueryString;  
b. Request.Form;  
c. $_GET[];  
d. &_GET[];  
50. When  you  use  the  $_GET  variable  to  collect  data,  the  data  is  visible  to..  
a. none  
b. only  you  
c. everyone  
d. selected  few  
51. When  you  use  the  $_POST  variable  to  collect  data,  the  data  is  visible  to..  
a. none  
b. only  you  
c. everyone  
d. selected  few  
52. What  will  be  the  output  of  the  following  PHP  code?  
      <?php  
    $fruits  =  array  ("apple",  "orange",  "banana");  
echo  (next($fruits));    
echo  (next($fruits));  
 ?>  
a. orangebanana  
b. appleorange  
c. orangeorange  
d. appleapple  
e. None  of  the  above  
53. Which  function  can  be  used  to  move  the  pointer  to  the  previous  array  
position?  
a. last()  
b. before()  
c. prev()  
d. previous()  
54. Which  one  of  the  following  statements  should  be  used  to  include  a  file?  
a. #include  ‘filename’;  
b. include  ‘filename’;  
c. @include  ‘filename’;  
d. #include  ;  
55. Which  variable  is  used  to  collect  form  data  sent  with  both  the  GET  and  
POST  methods?  
a. $BOTH  
b. $_BOTH  
c. $REQUEST  
d. $_REQUEST  
56. Which  of  the  following  will  not  combine  strings  $s1  and  $s2  into  a  single  
string?  
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   24  


a. $s1  +  $s2  
b. “{$s1}{$s2}"  
c. $s1.$s2  
d. implode('  ',  array($s1,$s2))  
57. Given  a  comma-­‐separated  list  of  values  in  a  string,  which  function  from  
the  given  list  can  create  an  array  of  each  individual  value  with  a  single  
call?  
a. strstr()  
b. extract()  
c. explode()  
d. strtok()  
58. strlen()  returns  the  length  of  the  string  on  success  and  .  .  .  .  if  the  string  is  
empty.  
a. -­‐1  
b. NULL  
c. Garbage  value  
d. 0  
59. Which  of  the  following  function  checks  if  a  specified  value  exists  in  an  
array?  
a. extract()  
b. key()  
c. get()  
d. in_array()  
60. What  will  the  following  script  output?  
 
<?php  
$array  =  array  (1,  2,  3,  5,  8,  13,  21,  34,  55);  
$sum  =  0;  
for  ($i  =  0;  $i  <  5;  $i++)  {  
$sum  +=  $array[$array[$i]];  
}  
echo  $sum;  
 ?>  
a. 78  
b. 19  
c. 5  
d. 0  
61. It  is  always  necessary  to  use  parentheses  with  the  print  function.  
a.  True  
b. False  
62. Which  of  the  following  function  returns  the  sum  of  the  values  in  an  array?  
a. array_sum()  
b. array_splice()  
c. array_udiff()  
d. array_udiff_assoc()  
63. What  functions  count  elements  in  an  array?  
a. count    
b. Sizeof  
c. Array_Count  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   25  


d. Count_array  
 

UNIT  IV  

64. Which  one  of  the  following  keyword  is  used  to  inherit  subclass  from  a  
superclass?  
a. extends  
b. implement  
c. inherit  
d. include  
65. Fill  in  the  blank  with  the  best  option.  An  Object  is  a/an  ___  of  a  class.  
a. type  
b. prototype  
c. instance  
d. object  
66. Which  one  of  the  following  property  scopes  is  not  supported  by  PHP?  
a. friendly  
b. final  
c. public  
d. static  
67. Which  keyword  precedes  a  method  name?  
a. method  
b. function  
c. Implement  
d. Extends  
68. PHP  recognizes  constructors  by  the  name.  
a. classname()  
b. _construct()  
c. function  _construct()  
d. function  _  _construct()  
69. In  PHP,  a  constructor  is  a  special  kind  of    
a. Class  
b. Method  
c. Object  
d. Variable  
70. Which  one  of  the  following  is  not  a  valid  class  name?  
a. ShopProduct  
b. Shopproduct  
c. Shopproduct1  
d. 1shopproduct  
71. Which  one  of  the  following  is  the  right  way  to  invoke  a  method?  
a. $object-­‐>methodName();  
b. object-­‐>methodName();  
c. object::methodName();  
d. $object::methodName();  
72. Which  keyword  is  used  to  refer  to  properties  or  methods  within  the  class  
itself?  
a. private  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   26  


b. public  
c. protected  
d. $this  
73. Which  one  of  the  following  can  be  used  to  instantiate  an  object  in  PHP  
assuming  class  name  to  be  Foo?  
a. $obj  =  new  $foo;  
b. $obj  =  new  foo;  
c. $obj  =  new  foo  ();  
d. obj  =  new  foo  ();  
74. How  would  you  store  order  number  (34)  in  an  'OrderCookie'?  
a. setcookie('OrderCookie',34);  
b. makeCookie('OrderCookie',34);  
c. Cookie('OrderCookie',34);  
d. OrderCookie(34);  
75. Which  one  of  the  following  function  is  used  to  start  a  session?  
a. start_session()  
b. session_start()  
c. session_begin()  
d. begin_session()  
76. When  you  want  to  store  user  data  in  a  session  use  the  .  .  .  .  array.  
a. $_SESSION  
b. SYS_SESSION  
c. $SESSION  
d. $_SESSIONS  
77. session_destroy()  erases  all  session  variable.  
a. True  
b. False  
78. Which  of  the  following  is  used  to  check  if  session  variable  is  already  set  or  
not  in  PHP?  
a. session_start()  function  
b. $_SESSION[]  
c. isset()  function  
d. session_destroy()  function  
 
 
UNIT  V  

79. The  -­‐-­‐-­‐-­‐  statement  is  used  to  delete  a  table  


a. DROP  TABLE  
b. DLELETE  TABLE  
c. DEL  TABLE  
d. REMOVE  TABLE  
80. Use  the  -­‐-­‐-­‐-­‐  to  delete  the  data  inside  the  table,  and  not  the  table  itself?  
a. DROP  TABLE  
b. TRUNCATE  TABLE  
c. DELETE  TABLE  
d. REMOVE  TABLE  
81. Which  one  of  the  following  statements  is  used  to  create  a  table?  
a. CREATE  TABLE  table_name  (column_name  column_type);  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   27  


b. CREATE  table_name  (column_type  column_name);  
c. CREATE  table_name  (column_name  column_type);  
d. CREATE  TABLE  table_name  (column_type  column_name);  
82. Which  one  of  the  following  method  is  used  to  retrieve  the  number  of  rows  
affected  by  an  INSERT,  UPDATE,  or  DELETE  query?  
a. num_rows()  
b. affected_rows()  
c. changed_rows()  
d. new_rows()  
83. Which  one  of  the  following  methods  can  be  used  to  diagnose  and  display  
information  about  a  MySQL  connection  error?  
a. connect_errno()  
b. connect_error()  
c. mysqli_connect_errno()  
d. mysqli_connect_error()  
84. What  does  SQL  stand  for?  
85. The  updated  MySQL  extension  released  with  PHP  5  is  typically  referred  to  
as.  
a. MySQL  
b. mysql  
c. mysqli  
d. mysqlyDf  
86. Which  of  the  methods  are  used  to  manage  result  sets  using  both  
associative  and  indexed  arrays?  
a. get_array()  and  get_row()  
b. get_array()  and  get_column()  
c. fetch_array()  and  fetch_row()  
d. fetch_array()  and  fetch_column()  
87. Which  of  the  following  is  not  an  SQL  aggregate  function?  
a. AVG  
b. SUM  
c. TOT  
d. MAX  
 

SECTION  B    SHORT  ANSWER  QUESTION  (2  MARKS)  

UNIT  -­‐  1    

1. What  is  XML?  


2. Define  DTD  (Document  Type  definition).  
3. What  is  XSL?  
4. What  is  XML  Namespace?  
5. What  is  XPath?  
6. List  the  rules  to  be  followed  by  an  XML  document  
7. Explain  DTD  and  Schema  (XML).  
8. What  is  a  CDATA  section  in  XML?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   28  


UNIT  II  

9. How  to  embed  PHP  in  HTML?  


10. How  to  start  and  end  PHP  script  in  an  HTML  page?  
11. How  to  add  single  line  and  multi  line  comments  in  PHP?  
12. How  to  declare  variables  in  PHP?  
13. How  to  define  constants  in  PHP?  
14. What  is  the  use  of  %  operator  in  PHP?  
15. What  is  the  difference  between  ++$a  (pre-­‐increment)  and  $a++  (post-­‐
increment)  operators?  
16. What  is  the  difference  between  -­‐-­‐$a  (pre-­‐decrement)  and  $a-­‐-­‐  (post-­‐
decrement)  operators?  
17. What  is  the  difference  between  ==  and===  operators?  
18. Explain  syntax  of  ternary  conditional  operator.  
19. Write  syntax  of  if-­‐else  statement.  
20. Write  syntax  of  switch  statement.  
21. Differentiate  between  do-­‐while  and  while  statements.  
22. What  is  the  use  of  break  statement?  
23. What  is  the  use  of  continue  statement?  
24. How  to  create  an  array  in  PHP?  
25. Explain  type  casting  in  PHP.  
26. How  to  declare  and  use  constants  in  PHP?  
27. What  are  the  arithmetic  operators  in  PHP?  
28. Explain  logical  operators  in  PHP.  
29. Write  an  example  for  do-­‐while  loop.  
30. What  is  the  use  of  echo  statement?  
31. What  is  the  use  of  print  statement?  
32. What  is  the  use  of  include()  function?  
33. Explain  default  function  parameter.  
34. What  is  the  use  of  return  keyword?  
35. How  to  include  a  file  in  PHP?  
36. How  do  you  define  a  constant?  
37. How  to  write  comments  in  PHP?  
38. How  to  display  value  of  a  variable?  
39. What  are  different  variable  scopes?  
40. What  is  the  use  of  global  keyword?  
41. What  is  an  integer  variable?  
42. What  is  a  double  variable?  
43. What  is  the  use  of  Boolean?  
44. What  is  the  use  of  elseif  statement?  
45.  What  is  the  difference  between  constant  and  variable?  
46. What  is  an  operator?  
47. What  is  meant  by  client  side  scripting?  
48. What  is  meant  by  server-­‐side  scripting?  
49. How  can  you  include  PHP  script  stored  in  separate  files  into  your  HTML  
code?  
50. What  is  the  use  of  static  keyword?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   29  


UNIT  III  

51. What  is  an  array?  


52. Explain  the  purpose  of  array()  construct  in  PHP?  
53. How  are  array  elements  accessed  in  PHP?  
54. How  are  multidimensional  arrays  created  in  PHP?  
55. What  is  numeric  array?  
56. Write  a  note  on  get  method.  
57. Write  a  note  on  post  method.  
58. What  is  the  use  of  $_REQUEST.  
59. Explain  difference  between  POST  and  GET.  
60. What  is  a  string?  
61. Write  different  string  escape  sequences.  
62. How  to  concatenate  two  strings?  
63. What  is  the  use  of  substr()  function?  
64. Explain  strlen()  function.  
65. How  to  use  strpos  function?  
66. How  to  use  str_replace()  function?  
67. What  is  the  use  of  strstr()  function?  
68. What  is  the  use  of  strcmp()  function?  
69. How  to  declare  an  array  in  php?  
70. What  is  use  of  count()  function  in  php  ?  
71. How  to  create  a  function?  
72. What  is  a  default  parameter  of  a  function?  
73. Explain  the  purpose  of  HTML  GET  method?  
74. Explain  the  purpose  of  HTML  POST  method?  
75. Explain  the  purpose  of  superglobal  array  $_GET[]  
76. Explain  the  purpose  of  superglobal  array  $_POST  
77. How  to  find  the  length  of  a  string?  
78. What  is  the  use  of  isset()  in  php?  
79. What  is  mean  by  an  associative  array?  

UNIT  IV  

80. What  is  a  cookie?  


81. What  is  a  class?  
82. Explain  the  purpose  of  the  superglobal  array  $_COOKIE[]  
83. Explain  the  purpose  of  the  superglobal  array  $_SESSION[]  
84. How  are  class  members  accessed  in  PHP?  
85. How  are  constructor  defined  in  PHP?  
86. How  are  destructor  defined  in  PHP?  
87. How  can  you  inherit  properties  of  a  parent  class  in  PHP?  
88. Write  the  syntax  of  class  in  PHP  fs  
89. How  to  set  cookies  in  PHP?  
90. How  to  Retrieve  a  Cookie  Value?  
91. How  to  create  a  session?    
92. What  is  the  importance  of  "action"  attribute  in  a  html  form?  
93. How  to  set  a  value  in  session?    
94. How  to  remove  data  from  a  session?  
95. How  stop  the  execution  of  a  php  scrip  ?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   30  


96. What  is  the  use  of  header()  function  in  php  ?  
97. What  is  the  use  of  explode()  function  ?  
98. How  to  redirect  a  page  in  php?  
99. What  is  the  meaning  of  a  final  class?  
100. What  is  the  meaning  of  final  method?  
101. Define  Object-­‐Oriented  Methodology  
102. What  is  the  use  of  extends  keyword?  
103. What  is  a  static  data  member?  
104. What  is  an  interface?  
105. How  to  delete  a  session?  
106. What  is  an  object?  
107. What  is  a  class?  
108. What  is  member  variable?  
109. What  is  member  function?  
110. What  is  inheritance?  
111. What  is  parent  class?  
112. What  is  child  class?  
113. What  is  polymorphism?  
114. What  is  overriding?  
115. What  is  overloading?  
116. What  is  encapsulation?  
117. What  is  the  use  of  new  operator?  

UNIT  V  

118. Explain  select  SQL  query.  


119. Explain  insert  SQL  query.  
120. Explain  Update  SQL  query.  
121. Explain  Delete  SQL  query.  
122. What  is  the  truncate  MySQL  query?  
123. What  is  the  use  of  DROP  Table  query?  
124. What  is  the  difference  between  truncate  and  drop  MySQL  queries?    
125. How  to  close  a  database  connection?  
126. Differentiate  between  MySQL  data  types  char  and  varchar.  
127. Explain  the  purpose  of    varchar  data  type  in  MySQL.  
128. What  are  the  parameters  of  mysqli_connect()  function?  
129. What  are  the  parameters  of  mysqli_query()  function?  
130. Explain  the  purpose  of  FROM  clause  in  SQL  SELECT  command.  
131. Explain  the  purpose  of  the  SQL  DROP  TABLE  command  
132. Explain  the  purpose  of  the  ORDER  BY  clause  in  SQL  SELECT  command.  
133. How  can  you  insert  data  onto  a    MySQL  database  using  PHP?  
134. How  can  you  update  data  in  a  MySQL  database  using  PHP?  
135. How  can  you  delete  data  from  MySQL  database  using  PHP?  
 
 
SECTION  C  SHORT  ESSAY  (  4  MARKS)      

UNIT  I    

1. How  to  read  from  XML  file  using  PHP?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   31  


2. Write  a  note  on  XML  document  structure.  
3. How  to  write  to  XML  file?  
4. What  is  XML  Document  Type  Definition?  
 

UNIT  II  

5. Write  a  note  on  data  types  available  in  PHP.  


6. Write  a  note  on  comparison  operators  available  in  PHP.  
7. How  to  declare  and  use  array  in  PHP?  
8. How  to  define  and  use  functions  in  PHP?  
9. Explain  if-­‐else  in  PHP.  With  example.  
10. Explain  switch  statement  with  example.  
11. Write  short  note  on  loop  statements  available  in  PHP.  
12. Explain  the  syntax  and  usage  of  the    for    control  structure  in  PHP.  Give  
suitable  example.  
13. Write  a  note  on  logical  operators  available  in  PHP.  
14. Explain  for  and  foreach  loops.  
15. Write  short  note  on  arithmetic  operators.  
16. Write  short  note  on  logical  operators.  
17. Write  short  note  on  increment  and  decrement  operator.  
18. Write  short  note  on  comparison  operators.  
19. Write  short  note  on  assignment  operators.  
20. Write  short  note  on  conditional  operator.  
21. Write  short  note  on  if-­‐else  statement.  
22. Write  short  note  on  switch  statement.  
23. Write  short  note  on  for  loop.  
24. Write  a  short  note  on  while  loop  statement.  
25. Differentiate  between  do-­‐while  and  while  loop  statements.  
26. Explain  conditional  operator  with  example.  
27. Compare  break  and  continue  statements.  Explain  with  example.  
28. What  are  the  rules  to  name  a  variable  in  PHP?  
29. Compare  break  and  continue  statements.  
 

UNIT  III  

30. What  are  the  different  type  of  arrays  available  in  PHP?  
31. What  is  associative  array?  
32. What  is  multidimensional  array?  
33.  Explain  different  parameter  passing  mechanism  with  example.  
34. How  to  set  default  parameters  for  a  function?  
35. How  to  concatenate  strings  in  PHP?  Explain  with  example.  
36. Explain  implode  and  explode  functions.  
37. Explain  require  and  include  functions  
38. What  is  the  difference  between  actual  and  formal  parameter?  
 
UNIT  IV  

39. How  to  crate  a  cookie  using  PHP?  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   32  


40. How  to  set  and  get  values  of  cookie?  How  to  remove  a  cookie?  
41. What  is  a  session?  How  to  set  values  to  session  variables?  
42. What  is  a  constructor?  Write  example.  
43. What  is  the  use  of  destructor?  How  to  write  destructors  in  PHP?  
44. What  is  an  object?  How  to  create  an  object?  
45. Explain  inheritance  with  example.  
46. Write  note  on  access  specifiers.  
47. What  is  the  use  of  session?  
48. How  to  declare  a  class?  How  to  create  an  object?  
49.  How  to  define  member  function?  How  to  call  a  member  function?  
50. What  are  the  different  methods  to  create  a  constructor?  
51. What  are  the  uses  of  a  constructor?  Explain  the  syntax  of  constructor  
function.  
52. What  is  the  use  of  inheritance?  How  to  implement  inheritance  in  PHP.  
53.  Explain  public,  private  and  protected  in  object  oriented  programming.  
54. How  to  call  parent  constructor?  Explain  with  example.  
 
 
UNIT  V  

55. Write  and  explain  functions  used  to  communicate  with  MySQL  database.  
56. Write  a  short  note  on  SQL  data  types.  
57. Explain    mysqli_connect()  and  mysqli_query()  functions.  
58. Describe  SQL  SELECT  command.  
59. Explain  syntax  of  SQL  insert  command.  
60. How  to  setup  connection  to  MySQL  database?  
61. How  to  create  a  mysql  connection?  
62. How  to  execute  an  sql  query?    
63. How  to  fetch  results  from  an  sql  query  execution?  
 

SECTION  D  ESSAY  (15  MARKS)      

UNIT-­‐1  

1. Explain  how  to  read  from  XML  and  how  to  write  data  to  XML  using  PHP.  
2. Explain  XML  document  structure  with  example?  

UNIT  II  

3. Explain  different  data  types  available  in  PHP  with  example.  


4. Write  an  essay  on  operators  in  PHP.  Explain  with  example.  
5. Explain  different  control  structures  in  PHP.  
 

UNIT  III  

6. Explain  string  functions  available  in  PHP  with  example.  


7. Write  and  explain  PHP  function  to  check  whether  a  given  number  is  
prime  or  not.    

B.Voc  Software  Technology.  Semester  II  Question  Bank.   33  


8. Write  PHP  function  to  
a. Print  first  10  even  numbers  
b. Print  odd  numbers  upto  100.  
c. Print  first  prime  numbers  upto  100.  
9. Explain    
a. Different  ways  to  return  values  from  function.  Write  examples.  
b. Actual  parameter  and  formal  parameter  
UNIT  IV  

10. Explain  features  of  object  oriented  programming  with  example.  


11. Explain  advantages  of  Object  Oriented  Programming  with  example.  
12. Write  an  essay  on  header,  session  and  cookie  in  PHP.  
13. Write  PHP  program  to  create  login  page.  
 
UNIT  V  

14. Explain  the  following  functions  


a. mysqli_fetch_array()  
b. mysqli_fetch_row()    
c. mysqli_fetch_assoc()  
15. Write  SQL  code  to  
a. Create  student  table  
b. Insert  five  values  to  the  above  table  
c. Delete  a  row  from  the  table.  
16. Explain  steps  to  connect  and  read  data  from  MySQL  database.  
17. Write  a  note  on  following  SQL  commands,  explain  with  example  
a. CREATE    
b. INSERT    
c. DELETE    
d. UPDATE    
e. DROP  

 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   34  


B.Voc  Software  Technology  
Model  Question  Paper  
SDC2ST06  Web  Technologies,  PHP  and  MySQL  

Hours:  3  Hours                 Total:  80    Marks  

PART  A  
Answer  All  Questions  (1*10  =10Marks)  
 
35. What  does  XML  stand  for?  
a. eXtra  Modern  Link  
b. eXtensible  Markup  Language  
c. Example  Markup  Language  
d. X-­‐Markup  Language  
36. XML  uses  the  features  of  
a. HTML  
b. XHTML  
c. VML  
d. SGML  
37. What  is  the  correct  way  to  add  1  to  the  $count  variable?  
a. ++count  
b. $count  =+1  
c. count++;  
d. $count++;  
38. Which  one  of  these  variables  has  an  illegal  name?  
a. $myVar  
b. $my_Var  
c. $my-­‐Var  
d. &myVar  
39. How  do  you  create  an  array  in  PHP?  
a. $cars  =  "Volvo",  "BMW",  "Toyota";  
b. $cars  =  array["Volvo",  "BMW",  "Toyota"];  
c. $cars  =  array("Volvo",  "BMW",  "Toyota");  
d. $cars  =  ‘Volvo’,  ‘BMW’,  ‘Toyota’;  
40. Which  one  of  the  following  statements  should  be  used  to  include  a  file?  
a. #include  ‘filename’;  
b. include  ‘filename’;  
c. @include  ‘filename’;  
d. #include  ;  
41. Which  one  of  the  following  is  the  right  way  to  invoke  a  method?  
a. $object-­‐>methodName();  
b. object-­‐>methodName();  
c. object::methodName();  
d. $object::methodName();  
42. session_destroy()  erases  all  session  variable.  
a. True  
b. False  
43. Use  the  -­‐-­‐-­‐-­‐  to  delete  the  data  inside  the  table,  and  not  the  table  itself?  
a. DROP  TABLE  
b. TRUNCATE  TABLE  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   35  


c. DELETE  TABLE  
d. REMOVE  TABLE  
44. Which  of  the  following  is  not  an  SQL  aggregate  function?  
a. AVG  
b. SUM  
c. TOT  
d. MAX  
PART  B  
Answer  Any  8  Questions  (2*8  =16Marks)  
 
45. What  is  XML?  
46. Explain  DTD  and  Schema  (XML).  
47. How  to  declare  variables  in  PHP?  
48. What  is  the  difference  between  ==  and===  operators?  
49. What  is  the  use  of  static  keyword?  
50. Explain  the  purpose  of  array()  construct  in  PHP?  
51. Explain  difference  between  POST  and  GET.  
52. Explain  strlen()  function.  
53. What  is  a  cookie?  
54. How  are  constructor  defined  in  PHP?  
55. How  to  create  a  session?    
56. Explain  insert  SQL  query.  

PART  C  
Answer  Any  6  Questions  (4*6  =24Marks)  
 
57. How  to  read  from  XML  file  using  PHP?  
58. Write  a  note  on  data  types  available  in  PHP.  
59. What  are  the  rules  to  name  a  variable  in  PHP?  
60. What  is  the  difference  between  actual  and  formal  parameter?  
61. How  to  concatenate  strings  in  PHP?  Explain  with  example.  
62. What  is  a  session?  How  to  set  values  to  session  variables?  
63. How  to  declare  a  class?  How  to  create  an  object?  
64. Write  and  explain  functions  used  to  communicate  with  MySQL  database  
 
 
PART  D  
Answer  Any  2  Questions  (15*2  =30Marks)  
65. Write  an  essay  on  operators  in  PHP.  Explain  with  example.  
66. Write  PHP  program  to  create  login  page.  
67. Write  PHP  function  to  
a. Print  first  10  even  numbers  
b. Print  odd  numbers  upto  100.  
c. Print  first  prime  numbers  upto  100.  
68. Write  a  note  on  following  SQL  commands,  explain  with  example  
a. CREATE    
b. INSERT    
c. DELETE    
d. UPDATE    
e. DROP  

B.Voc  Software  Technology.  Semester  II  Question  Bank.   36  


 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Programme : B.Voc in Software Technology
Semester : 2nd
Course Code : SDC2ST07
Course Name : Lab2: PHP and MySQL

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   37  


SDC2ST07  Lab2:  PHP  and  MySQL  
 
PHP  and  MySQL  LAB  Questions  
 
XML  
1. Write  a  PHP  program  to  read  and  display  the  contents  of  XML  file.  
2. Write  a  PHP  program  to  write  data  to  XML  file.  
3. Write  a  program  to  create  an  XML  file  and  store  student  details.  
4. Create  a  program  to  populate  content  of  XML  file  to  dropdown  list.  
5. Create  a  visiting  card  xml  file  and  display  them  using  CSS  and  HTML  
 
PHP  
Simple  programs  
 
6. Write  a  PHP  program  to  find  area  of  a  rectangle.  
7. Write  a  PHP  program  to  find  area  of  a  triangle  
8. Write  a  PHP  program  to  find  circumference  of  a  circle  
9. Write  a  PHP  program  to  find  area  of  a  circle  
10. Write  a  PHP  program  to  find  circumference  of  a  rectangle.  
11. Write  a  PHP  program  to  check  whether  a  given  number  is  odd  or  not.  
12. Write  a  PHP  program  to  check  whether  a  given  number  is  even  or  not.  
13. Write  a  PHP  program  to  check  whether  a  given  number  is  prime  or  not.  
14. Write  a  PHP  program  to  check  whether  a  given  number  is  strange  or  not.  
15. Create  a  program  to  display  whether  a  given  number  is  perfect,  abundant  
or  deficient  
 
 
Operators  and  Control  Structures  
 
16. Write  a  PHP  program  to  print  even  numbers  in  a  rage.  
17. Write  a  PHP  program  to  display  odd  numbers  in  a  range.  
18. Write  a  PHP  program  to  display  prime  numbers  in  a  range.  
19. Write  a  PHP  program  to  print  strange  numbers  in  a  range  
20. Write  a  PHP  program  to  print  Fibonacci  numbers  in  a  range.  
21. Write  a  PHP  script  to  print  first  n  prime  numbers.  
22. Write  a  PHP  program  to  print  first  n  strange  numbers.  
23. Write  a  PHP  program  to  print  first  n  Fibonacci  numbers.  
24. Write  a  PHP  program  to  print  first  n  even  numbers.  
25. Write  a  PHP  program  to  print  first  n  odd  numbers.  
26. Write  a  PHP  program  to  print  first  n  natural  numbers.  
27. Write  a  PHP  program  to  display  root  of  a  quadratic  equation  by  accepting  
coefficients.    
28. Write  a  PHP  program  to  demonstrate  continue  statement.  
29. Write  a  PHP  program  to  demonstrate  switch  control  statement.  
30. Write  a  PHP  program  to  demonstrate  break  statement.  
31. Write  a  PHP  function  to  print  whole  numbers  in  a  range    
32. Write  a  PHP  program  to  display  elements  in  an  array  using  foreach  loop.  
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   38  


 
Array  
 
33. Write  a  PHP  program  to  display  elements  in  an  array  in  ascending  order.  
34. Write  a  PHP  program  to  display  elements  in  an  array  in  descending  order.  
35. Write  a  PHP  program  to  display  elements  in  an  array.  
36.  Write  a  PHP  program  to  find  largest  number  in  an  array.  
37. Write  a  PHP  program  to  find  smallest  number  in  an  array.  
38. Write  a  PHP  program  to  check  whether  a  given  number  present  in  array.  
39. Write  a  function  to  search  an  element  in  array  using  linear  search  
 
 
String  Functions  
40. Write  a  PHP  program  to  concatenate  two  strings.  
41. Write  a  PHP  program  to  demonstrate  any  five  string  functions  
42. Write  a  PHP  program  to  compare  two  strings.  
 
 
Session,  Cookie  and  Login  
43. Write  a  PHP  program  to  demonstrate  session  
44. Write  a  PHP  program  to  demonstrate  the  use  of  Cookie  
45. Write  program  to  create  login  form  using  session  
46. Create  a  login  form  and  logout  page  
47. Create  a  HTML  form  and  post  its  values  to  another  page  using  PHP  
 
Object  Oriented  Concept  
48. Write  a  PHP  program  to  demonstrate  class  and  object.  
49. Write  a  PHP  program  to  demonstrate  constructor    
50. Write  a  PHP  program  to  demonstrate  destructor    
51. Write  a  PHP  program  to  demonstrate  inheritance  
52. Write  a  PHP  program  to  demonstrate  function  overriding  
 
 
Database  
53. Write  a  program  to  store  student  details  to  MySQL  database  
54. Write  a  program  to  display  student  details  from  MySQL  table.  
55. Write  a  program  to  update  student  details  to  MySQL  table  
56. Write  a  program  to  delete  a  student  details  from  database  
57. Write  a  PHP  program  to  populate  dropdown  (select)  box  with  data  from  
MySQL  table  
58. Create  a  bookshop  table  and  perform  CRUD  operations  on  it  using  PHP  
59. Create  a  library  management  system  using  MySQL  and  PHP.  (CRUD  
operations).  
60. Create  a  hospital  management  system  using  PHP  and  MySQL  
61. Write  a  program  to  populate  content  of  student  table  to  HTML  form  
 
 
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   39  


B.Voc  Software  Technology  
Model  Question  Paper  
SDC2ST07  Lab2:  PHP  and  MySQL  
Hours:  3  Hours                 Total:  80  Marks  

 
1. Write  a  PHP  program  to  read  and  display  the  contents  of  XML  file.  
2. Write  a  PHP  program  to  find  area  of  a  circle  
3. Write  a  PHP  program  to  check  whether  a  given  number  is  prime  or  not.  
4. Write  a  PHP  function  to  print  whole  numbers  in  a  range    
5. Write  a  PHP  program  to  print  first  n  Fibonacci  numbers.  
6. Write  a  PHP  program  to  display  elements  in  an  array  using  foreach  loop.  
7. Write  a  PHP  program  to  find  largest  number  in  an  array.  
8. Write  a  PHP  program  to  demonstrate  any  five  string  functions  
9. Write  a  PHP  program  to  demonstrate  the  use  of  Cookie  
 
10. Write  program  to  create  login  form  using  session  
11. Write  a  PHP  program  to  demonstrate  class  and  object.  
12. Write  a  PHP  program  to  demonstrate  constructor  
13. Write  a  program  to  store  student  details  to  MySQL  database  
14. Write  a  program  to  display  student  details  from  MySQL  table.  
15. Write  a  program  to  update  student  details  to  MySQL  table  
16. Create  a  bookshop  table  and  perform  CRUD  operations  on  it  using  PHP  
17. Create  a  library  management  system  using  MySQL  and  PHP.  (CRUD  
operations).  
18. Create  a  hospital  management  system  using  PHP  and  MySQL  
 
 

B.Voc  Software  Technology.  Semester  II  Question  Bank.   40  

You might also like