Model question papers1



DIGITAL ELECTRONICS

Time- 3 hours                                                                                                               Full Marks- 70

(GROUP-A)
(Multiple Choice Type Questions)
  1. Choose the correct alternatives of the following (any ten):                             10 X 1 = 10
a) The NAND gate output will be low if the two inputs are
                (A) 00                        (B) 01
                (C) 10                     (D) 11
b) The decimal equivalent of hex number 1A53 is
                (A) 6793               (B) 6739
                (C) 6973               (D) 6379
c) The number of control lines for a 8 – to – 1 multiplexer is
                (A) 2                      (B) 3
                (C) 4                      (D) 5
d) How many Flip-Flops are required for mod–16 counter?
                (A) 5                      (B) 6
                (C) 3                       (D) 4
e) EPROM contents can be erased by exposing it to
                (A) Ultraviolet rays.        (B) Infrared rays.
                (C) Burst of microwaves.    (D) Intense heat radiations.
f) The Gray code for decimal number 6 is equivalent to
                (A) 1100           (B) 1001
                (C) 0101               (D) 0110
g) The output of a logic gate is 1 when all its inputs are at logic 0. the gate is either
                (A) a NAND or an EX-OR    (B) an OR or an EX-NOR
                (C) an AND or an EX-OR     (D) a NOR or an EX-NOR
h) Data can be changed from special code to temporal code by using
                (A) Shift registers             (B) counters
                (C) Combinational circuits  (D) A/D converters.
i) When simplified with Boolean Algebra (x + y)(x + z) simplifies to
                (A) x                      (B) x + x(y + z)
                (C) x(1 + yz)                   (D) x + yz
j) The gates required to build a half adder are
                (A) EX-OR gate and NOR gate    (B) EX-OR gate and OR gate
                (C) EX-OR gate and AND gate     (D) Four NAND gates.
k)  Which of the following is the fastest logic
                (A) TTL                 (B) ECL
                (C) CMOS                 (D) LSI
l) Which of the memory is volatile memory
                (A) ROM           (B) RAM
                (C) PROM                (D) EEPROM



(GROUP-B)
(Short Answer Type Questions)
Answer any three of the following
Answer the following questions (any three)                                                                              3 x 5=15
  1.  a) Convert the octal number 7401 to Binary.                                                2
 b) Find the hex sum of (93) 16+(DE)16                                         3
  1.  a) What is the Gray equivalent of (25)10                                      2
 b) Explain the Race Around Condition in Flip – Flop?             3
  1. Draw the truth table and logic circuit of a Full – Subtractor. Using Karnaugh map find out the expression for difference (d) and borrow (B).                              5
  2. a) Design a J – K master slave Flip – Flop with circuit diagram and give the truth table.            3
b) Define Flip – Flop and its propagation delay.                                                              2
  1. a) Prove that the multiplexer is a universal logic module.                                 2
b) Use 4 – to – 1 MUX and other necessary logic gate to design a Full – Subtractor.  3
  1. a) Draw a half – adder circuit and describe its operation.            2
b) Design a 4 bit up – down counter.                                              3

 (GROUP-C)
(Long Answer Type Questions)
Answer any three of the following
Answer the following questions (any three)                                                                              3 x 15=45
  1. a) Apply K – map to obtain form for the function:                     5
F(A,B.C.D)=Σ(0,4,5,7,8,9,13,15)
d(A,B,C,D)=Σ(1,2,6,10)
            b) Design a 8 to 1 multiplexer by using the four variable functions given by
F (A, B, C, D)=Σm(0,1,3,4,8,9,15)                             5
c) Convert the decimal number 82.67 to its binary, hexadecimal and octal equivalents.  5

  1. a) Prove the following Boolean identities.
(i) XY + YZ + Y’ Z = XY + Z                               2
(ii)A.B+A’.B+A’.B’=A’+ B                                                  2
b) Represents the decimal number 27 in i) BCD code, ii) Octal code, iii) Gray code.  3
c) What do you mean by a sequential circuit?                        2
d) What are synchronous and asynchronous sequential circuits?                      2
e) Explain the functionality of D – Flip – Flop. Give the truth table, state diagram.  4

  1. a) Explain the concept of parity checking.                               2
b) Represents (-1101011) in Floating Point Representation for a 32 – bit CPU.      2
c) What is a Decoder? Compare a decoder and a demultiplexer with suitable block diagrams.                                                                                                      4
d) Draw the logic diagram of 4-bit odd parity checker using EX-NOR gates and explain its
operation with the help of Truth table.                                                                           3
e) Distinguish between ROM, PROM, EPROM, and EEPROM.                             4

  1. Answer any three:                                                                                      5 x 3 =15
a)     4 bit up – down counter
b)     Shift Register
c)      Encoders
d)     Parallel Binary adder
e)     Logic gates

...............................................................................................................................................



GRAPHICS & INTERNET

Time- 3 hours                                                                                                                 Full Marks- 70

(GROUP-A)
(Multiple Choice Type Questions)
  1. Choose the correct alternatives of the following (any ten):                                          10 X 1 = 10
a)      We use the term for running a Java applet  window is…
i)        javac filename.java
ii)  applet filename.java
iii) appletviewer filename.html
iv) appletviewer  filename.java
b)     In clipping we use
i) Window port                       ii) View port
iii) both                                  iv) None of these
c)      If your mail address is w@x.y.z.com then the domain name is
i) com ii) x.y.z.com
iii) w iv) None of these
d)     If  P0, P1, P2 be the control points (in sequential ordering) then the Baizer curve must through
i)   P0 and P1 ii)  P1 and P2
iii) P2 and P0 iv) Points close to P0, P1, and P2
e)      What is the full form of URL….
i)    Uniform Resource Locator ii) Undefined Resource Locator
iii)  Uniform Resource List iv) None of these
f)       How to define a point (x,y) of computer graphics by C-Language
i)  setpixel(x,y) ii)  putpixel(x,y,1)
iii) getpixel(x,y) iv)  None of these
g)      The polynomial function P(t) of degree 3 define that
i) it is a quadratic plane curve                     ii) a straight line
iii) a cubic space curve              iv) a quadratic space curve
h)      The protocol used in conjunction with SMTP to hold mail for host is
i) POP ii) FTP
iii) PPP iv) Both i) and ii)
i)        Which is the Perspective anomaly?
i)   Cavalier ii)  Oblique
iii) Vanishing point iv)  None of these
j)       An aspect ratio ¾ means that
i)        a vertical line plotted with 3 points has the same length as a horizontal line plotted with 4 points.
ii)  a horizontal vertical line plotted with 3 points has the same length as a
vertical  line plotted with 4 points.
iii) Both i) and ii)
iv) None of these
k)     How many blocks are reserved for private addressing in Class B?
i) 16 ii) 25
iii) 28 iv) None of these
                   l)  Expressing positions in homogeneous co-ordinate is advantageous because
a)      It represents all geometric transformation equations as matrix multiplication
b)      2D and 3D representations of transformations become identical
c)      both (a) and (b)
d)      none of these

                m) Which is a Perspective Anomaly?
a)      Cavalier
b)      Oblique
c)      Vanishing point
d)      None of these
              n) ‘H’ in HTTP stands for ‘hypertext’ because
a)      HTTP needs rapid jumps from one document to another
b)      Unlike SMTP, HTTP messages are interpreted by HTTP browser
c)      Textual documents are manipulated through scripting language and sent using SMTP
d)      None of these
   o) In homogenous coordinate representation ( 4, 2, 0 ) represents a point
a) lying at infinity                         b) at ( 4, 2 )
c) at ( 4, 2 ) and at ( 2, 1 )                       d) none of these.





(GROUP-B)
(Short Answer Type Questions)
Answer any three of the following
3 x 5=15
  1. Define different co-ordinates system in computer graphics.
  2. Write the general form of a scaling with respect to a fixed point P (h, k).
  3. What is aspect ratio? What do you mean by a resolution of a screen ?
  4. Define the difference between classful & classless addressing system.
  5. Define the difference between IPv4 & IPv6. What is address space.
  6. What is an Applet? How will you use java applets in HTML file?
  7. What is the difference between online payment and offline payment for an online purchase?
  8. What is the difference between e-commerce and e-business?
  9. What do you understand by clipping, windowing & view porting?
  10. Find the transformation matrix for reflection of the point P ( x, y ) about the line y = x.
  11. Describe shadow masking with suitable example.
  12. Explain the function of a router.
  13. What is shearing? Explain with example.
  14. State some of the major applications of graphics in real life. Name a few graphics software


(GROUP-C)
(Long Answer Type Questions)
Answer any three of the following
3 x 15=45
  1.  
a)      An organization is granted the block 205.16.37.39/28. The administrator wants to create 32 subnets.        2 x 4 =8
i)        Find the subnet mask.
ii)   Find the number of addresses in each subnet.
iii)  Find the first and last addresses in subnet1.
iv)   Find the first and last addresses in subnet 32.
b)     Suppose an organization is given the block 17.12.40.0/26, which contain 64 addresses. The organization has 3 offices & needs to divide the addresses into 3 subblocks of 32, 16 & 16 address. Design the network of that building. 7
                                   
           
  1.  
a)      Define TCP/IP Layers.              6
b)     Define CLIENT-SERVER Model in networking systems.         3
c)      Define with examples what is masking?         3
d)     Explain different aspects of network security.         3
  1.  
a)      Write Cohen – Sutherland Algorithm.         6
b)     Draw the Beizer curve defined by the control points B0(2,1), B1(3,2), B3(5,0), B4(6,2)                     6
c)      Define difference between raster scan and random scan displays.         3
  1.  
a)     What is the difference between Parallel Projection and Perspective Projection?   4
b)     Write and explain Bresenham’s algorithm for drawing a straight line.   How does it remove the drawbacks of ‘DDA’ algorithm?                                            6
c)      What are the vertical retrace and horizontal retrace?        2
d)     Define condition about a point clipping.        3
  1.  
a)      Magnify the triangle with vertices A(0,0), B(1,1) and C(5,2) to twice its size while keeping C(5,2) fixed.                                 6
b)     Prove that the inverse of the rotation matrix is its transpose.                     6
c)      Define frame buffer.         2
d)     Define the difference between pixmap and bitmap.         1
  1.  
a)      Define eight-way symmetry for circle drawing algorithm.                                    3
b)     Find the mirror image of the triangle ABC about Y = X-axis with the help of matrices (using 450 rotation).                                 5
c)      Write a formula for a translation in homogeneous form.         3
d)     Describe Cathode ray tube.         4
  1. Write short notes (any three): -                                                                               5 x 3 = 15
a)      Shadow masking
b)     Orthographic and oblique projection of an object
c)      Encryption
d)     Session & Cookies
e)      Different component of JavaScript
f)       SMTP
g)      Subnetting
h)      Topologies
i)        E-Banking
j)       What is the meaning in e-commerce 24 x 7 x 365
k)     E-Marketing
l)        E-Payment
m)    DNS
n)      FTP
  1.     a) What pixels will be marked in drawing a circle center (100,90) & radius 10, using 
              Bresenham’s circle algorithm.                                                               6
          b) Calculate the point using DDA algorithm that would be plotted for a line whose end points are    
               (12,10) and (20,20).                                                                        6
          c) What advantages do Bresenham line algorithm have over DDA.                     3         


                ....................................................................................................................................


WINDOWS PROGRAMMING
Time – 3 Hours                                                                                         Full Marks- 70
(Group A)
1. Choose the correct alternatives for the following (Any Ten):   10 x 1 = 10
i) Prefix I is used in Hungarian notation to denote
a) char                                                             b) int
c) BOOL ( int )                                                    d) unsigned int.
ii) To register a new Window class, the function that we call is
a) Register Window( )                                          b) Register Class( )
c) Register Window Class( )                                   d) None of these.
iii) The number of queues in system queue is
a) 1                                                                                b) 2
c) 3                                                                                d) 4.
iv) Get DC( ) is used to obtain
a) a pointer to the device context                         b) a reference to the device context
c) a handle to the device context           d) none of these.
v) In Windows, the largest size of a single segment in the memory is
a) 32 kB                                                       b) 64 kB
c) 128 kB                                                       d) 16 kB.
vi) The DISCARDABLE memory option is always used with which option ?
a) MOVEABLE                                     b) LOADONCALL
c) PRELOAD                                       d) None of these.
vii) Dispatch Message is required to
a) Dispatch a function                                  b) Dispatch a message
c) Dispatch a pointer                                     d) Dispatch a reference.
viii) The main function of Windows Programming is
a) main( )                                                           b) WndProc( )
c) WinMain( )                                       d) none of these.
ix) HWND is a handler of
a) Function                                                        b) Object
c) Window                                                         d) All of these.
x) GDI stands for
a) Graphical Device Interchange            b) Graphical Device Internet
c) Graphical Device Interaction                  d) Graphical Device Interface.

xi) The initial entry point in Windows Program is
a) main( )                       b) WinMain( )   c) WndProc( )             d) None of these.
xii) The control centre of a traditional windows SDK is
a) GetMessage( )                                               b) WinMain( )
c) WndProc( )                                        d) None of these.
xiii) Which message is generated whenever the client area of the window needs to be redrawn ?
a) WM_COMMAND                                     b) WM_CREATE
c) WM_PAINT                                       d) None of these.
xiv) Which one is true ?
a) ReadSector( ) and WriteSector( ) are API functions.
b) ReadSector( ) and WriteSector( ) are not API functions.
c) ReadSector( ) is API function but WriteSector( ) is not API function.
d) WriteSector( ) is API function but ReadSector( ) is not API function.
xv) To change mouse cursor the function is called during processing of WM_MOUSEMOVE message is
a) SetCursor( )                                                 b) ModifyCursor( )
c) EditCursor( )                                     d) None of these.
xvi) DOS uses a Sequential Programming Model, whereas, windows uses
a) Event Driven Programming Model
b) Sequential Programming Model
c) Procedural Programming Model
d) None of these.
xvii) WM_PAINT message is processed when
a) Window is closed                                     b) Window is created
c) Window is destroyed                              d) None of these.
GROUP – B
(Short Answer Type Questions )
Answer any three of the following.                                                                                   3 X 5=15
2. Explain the purpose of MENU.RC                                                                             5
3. Define WNDCLASS structure.                                                                                               5
4. a) How DOS based programming is different than windows based programming ? 4
    b) What is program instance?                                                                                              1
5.  a) What all the header files are included in Windows.h ?                                           2
     b) What is an SDK ?                                                                                                 3
6. Describe MSG structure for Windows Programming.                                                    5
7. What is Clipboard function? Explain any four-clipboard functions.                    1 + 4
8.  What is meant by the windows function CreateWindow( ) ? Discuss with proper syntax.                                                                                                                                                      2 + 3
GROUP – C
(Long Answer Type Questions)
  Answer any three of the following questions.                                                                   3 X 15 = 45
9. a) Write a windows programming code to create a new window class using the class to popup window.                                                                                                                                      9
b) Explain the difference between Indirect of dialog boxes and Dynamic dialog boxes.  6
10. a) What is polymorphism ?
b) What are common dialog boxes?
c) What is resource? Discuss its components.
d) Describe menu creation in a window.                                                                   4 + 4 + 4 +3 =15    
11. a) What are the parameters passed to MessageBox( ) function and what do they signify ?    4
b) What do mean by messages in Windows Programming?                                                       2
c) Describe System queue, Application queue, and Message loop with a diagram.             6
d) What are the types of windows messages? Describe them.                                         3
12. a) What parameters are passed to Winproc( ) function ? Explain them.                    5
      b) What do you mean by window style ? Explain the following
i) WS_OVERLAPPED             ii) WS_CAPTION
iii) WS_SYSMENU                   iv) WS_MAXIMIZEBOX
v) WS_VSCROLL                                                                                2 X5 = 10
13. a) Differentiate between modal and modeless dialog box.
     b) Describe the MessageBox structure with example.
     c) Explain the following code :
While(GetMessage(&msg,0,0,0)
{            TranslateMessage(&msg)
DispatchMessage(&msg)
}                                                                                                4 + 5 + 6 = 15
14. Write the funciton, meaning and parameter of the following:                       5X3 = 15
a) GetMessage( ) ,   b) BeginPaint( )  ,  c) ShowWindow( )   ,  d) GetStockObject( ),
e) DrawText( ).

15. Write short notes on any three of the following:                                                        3X5=15
a) MDI            b) API             c) MFC   d) SDK.





                             Computer Programming



(GROUP - A)
1. Answer the following questions-
            a) What is the full form of IDE?                                                                  
i)                    Integer Development Environment
ii)                  Integrated Development Environment
iii)                Integer Determine Environment
iv)                Integrated Database Environment
b) What is the difference between MsgBox () & InputBox () function?       
i)                    MsgBox () is used for taking input from keyboard & InputBox () is used for display output.
ii)                  MsgBox () is used for displaying error massage and output & InputBox is used for taking input from the user.
iii)                MsgBox () & InputBox () both are used for displaying error message and output.
iv)                MsgBox () & InputBox () both are used for taking input from the keyboard.

c) What is the output of the following code segment?                                   
            Dim s1, s2, s3 As String
            s1=”Have a nice day”
            s2=”nice”
            s3=Instr(1, s1, s2, 1)
            Output is-
i)                    0
ii)                  2
iii)                8
iv)                4
d) What is the output of the following program?                                           
            Private sub Form_Load()
Dim s1, s2 As String
                        s1=”ABCDEF”
                        s2=Left$(s1,4)
                        Text1.text=s2
            End Sub
i)                    Output is: CDEF
ii)                  Output is: ABCD
iii)                Output is: ABEF
iv)                Output is: BCDE
e) What is the purpose of the Friend Keyword?                                          
i)                    To make a procedure in a class available only within the class which it is defined.
ii)                  To make a procedure in a class available to modules outside that class, including modules in other class.
iii)                To make a procedure in a class available to modules outsides that class, but within the same application.
iv)                To make a procedure in a class available to in-process component.
f) What is the full form of ODBC?                                                                
i)                    Open Database Connectivity
ii)                  Open Data type Connectivity
iii)                Open Database Collections
iv)                Open Data type Collections
g) Which statements are true-?                                                                       
a)      Multiple items are selected by the Option Button.
b)      Multiple items are selected by the Check Box.
c)      Both are true.
d)     None of the above.
h)Which statements are true-?                                                                       
a)      A Combo Box combines the features of a List Box & a Text Box.
b)      A List Box combines the features of a Combo Box & a Text Box.
c)      Both are true.
d)     None of the above
.i) Which control not displayed at the time of running a project?                  [E]                   a) Text Box,                            b) Option Button,                                                       c) Timer control,                      d) Command button
j) Visual Basic programming as a…..                                                             
            a) Event driven programming.
            b) Object oriented programming
            c) Structure programming
            d) Assembly level programming.
(GROUP - B)
2. Answer any three questions-
a) What is the difference between MDI & SDI? What is the limitation of SDI?  5
b) What is dynamic array? How to declare it? What is the purpose of Preserve   keyword?                                                                                             5 
c) Illustrate with an example, the difference between ‘Call by value’ and ‘Call by reference’?                                                                                                   5   
d) Write a selection sort function for sorting of n elements.                     5    
e) What is an event? What is an event procedure? What is an Event Driven Programming?                                                                                                        5 
f) What is the purpose of each of the following common dialog control methods-
             ShowOpen, ShowSave, ShowPrint, ShowFont, ShowColor                    5  [M]                                   


(GROUP - C)
3. Answer any three questions-
        a) i)Write a select case statement in VB with an example.                             3 
ii) How many data types available in VB?                                                 2 
iii) Describe with an example how to declare a user defined data types?  6 
iv)What is the difference between local variable & global variable?           2 
v) What is the timer?                                                                                    2 
       b) i) Write a binary function for searching a particular elements.                  4  
            ii) What is control array? Describe with an example how to create a
     control array?                                                                                       4  
iii)What is keyboard access character? How is an access character associated with a menu item?                                                                                              3   
iv) What is a difference between a drop-down menu & a pop-up menu? 4 
     c) i) What is the difference between EOF () and BOF().                                 2  
         ii) Write shorts notes about OLEDB.                                                           3  
         iii) What do you mean by Module? Define Form module and Standard
   module.                                                                                                   5  
         iv) Define Let, Set and Get methods.                                                          5  
   d) i) Describe the data file associated with each of the following statements.      
a)      Open “demo.dat” For Input As #3                                2 
b)      Open FileName For Output As #5                                2
c)      Open “c:\myfiles\student.dat” For Binary As #2          2
      ii) What is the purpose of the With block? What advantages are provided by
            its use?                                                                                                                     4
      iii) Write a VB program which display factorial of n numbers.                         5
            (writing code, design form & add appropriate control on the form)
    e) Write short notes on any five of the following-                                3x5
            i) Random access of a file.                                                      
            ii) Left$, Right$ and Mid$                                                     
            iii) DAO                                                                                 
            iv) Load, show and Hiding of a form.                                   
            v)  ADO                                                                                  
            vi) Difference between Option button & Check Box.           
            vii) Difference between a module & a procedure                   
            viii) Difference between labels & text box                             



.............................................................................................................................................



COMPUTER PROGRAMMING

Group A
(Multiple Choice Question)

1. Answer any ten of the following questions:                                             10 x 1 =10
i)                    A module is a
a) Form wizard                                    b) Query wizard           
c) Program to print data                          d) Set of functions
ii)                  A / An ………. is a combination of code and data that can be created as a unit
a) Object                                                  b) Class
c) Procedure                                                d) Function
iii)                 VB variables are ………… by default
a) String                                                b) Integer
c) Short                                                d) Variant
iv)                Class module have two events ……… and …………
a) Initialize, terminate                                    b) Create, initialize
c) Terminate, end                                    d) Create, terminate
v)                  Which control has no event?
a) Command Button                                    b) Label
c) Line Control                                    d) Timer
vi)                To detect the undefined variable, the statement is
a) Option Base                                                b) Option Explicit
c) Option compare text                        d) None of these 
vii)                What is the size of the variant data type?
a) 1024            b) 255                        c) 256                        d) None of these
viii)             ADO is a / an
a) method            b) object model            c) inbuilt function            d) all of these
ix)                The …………. control is used to print data in a form
a) Shape            b) Data                        c) Line                        d) None of these 
x)                  “Preserve” statement is usually associated with the statement
a) With                        b) Dim                        c) Redim            d) None of these
xi)                Worst case complexity of binary search is
a) O ( log n)                        b) O ( n log n )              c) O(n*n)            d) none of these

Group – B
(Short Answer Type Questions)
Answer any three of the following

2.Write a VB code to deduce square root of a number. The code must specifically mention the real imaginary roots.                                                                                                                                        5
3. Explain the difference between Step Into and Step Over. Define the term ‘validation’. When is it application.                                                                                                                                         3+1+1
4. Distinguish between the following:                                                                                        2.5 x 2=5
a)      Image and Picture box
b)      Radio Button and Check Button
5.What is the difference between a sub – procedure and a function procedure? What is property procedure?
                                                                                                                                                            3 + 2                                       


Group – C
(Long Answer Type Questions)

Answer any three of the following


  1. a) What is the difference between fixed size array and dynamic array? Explain with example for the each type of array. Why is the keyword “Preserve” used in dynamic array declarations?           6
b) Write a code that takes a number and display the sum of the digits in number.                       5
c)      What is the use of Hex(), Oct(), Hex$(),Oct$(), method in VB.                                             4
  1. a) What do you mean by array? Discuss different types of arrays.                                       2 + 4
b) What is collection? How is collection different from an array?                                        2 + 2
c) Write a VB program to implements Fibonacy series.  
  1. Write the difference between the following (any three)                                             3 x 5 =15
a)      InputBox and MsgBox
b)     List box and Combo Box
c)      Option Buttons and Check Box
d)     Class and Object
e)      Public function and Private function
  1. a) Write a select case statement in VB with an example.                                                         4              
b) Create a menu driven program under main menu (Arithmetic) operation, submenu – add, subtract and exit.                                                                                                                              5
c) Write a program to sort a list of student name alphabetically.                                       6



.....................................................................................................................

                            JAVA QUESTION 

Group – A
1.                                                                                                                     1 X 10=10
i)                    Which of the following is not true about an interface?
a)     It can be partially implemented by a class
b)      It can be implemented by an interface
c)      It can be implemented by several classes
d)     A particular class can implement several interfaces
ii)                   Which of the following is used as a part of method signature in java?
a) throw      b) throws      c) try        d) finally
iii)                  Dynamic method dispatcher is useful for
a)     resolving method overriding
b)     resolving multiple inheritance anomaly
c)      resolving multilevel inheritance anomaly
d)     none of these 
iv)                 Return  type of class, constructor is
a) int      b) void          c) class type itself      d) none of these 
v)                  Which  access modifier is used to restrict the methods scope to itself and still allow other classes to subclass that class?
a)      private                        b) final                        c) protected                        d) finally
vi)                 An interface can define only
a) abstract class      b) final field      c) abstract method      d) abstract method and final field
vii)               JVM is
a)      A java package
b)     A java compiler
c)      A system software
d)     A java interface 
viii)              Size of Unicode is
a)      2 bits                        b) 8bits            c) 16 bits            d) 15 bits
ix)                   Delegation model is associated with
a)      Exception Handling                        b) Garbage collection
b)     AWT                                                d) Event Handling
x)                  The method used in Java which waits for the thread to die is
a)      wait()                        b)destroy()            c) die()                        d) join

Group – B                                                                                                        5 X 3 =15
2. What is threading? Explain how you can synchronize multiple threads in Java?
3. What are local applet and remote applet? How do applets differ from application program?
4.Write a short on Life Cycle of an applet.
5.What are the main differences between Java and C++
6. What is stack trace? What is the checked and unchecked exception describe with proper example.




Group – C                                                                                                                    15 X 3 =45
  1. a) Write a program that takes a file name and a search string from the user. If the search string occurs in the file, then it counts the number of occurrences of the string. (Assume that search pattern can exist more than two times in a line).
b) Write a program that stores information in the array and then sort the array
c) How does Java garbage collector work?                        8+4+3 
  1. a) What is the difference between method overloading and method overriding?
b) Write a GUI program in Java that will have two buttons viz., RED and GREEN. If user clicks on RED button the background of the GUI will be painted in red or if user clicks on GREEN button the background of the GUI will be painted green.
c) What is AWT? Differentiate between component class and container class.  3 +10+2  
  1. a) Write a program that calculate area of circle, area of triangle, area of square using multiple inheritance where figure is name of the interface which can implement the area () method.
b) Write a program displays a small-animated text in the form (implemented with thread).
c) What are wrapper classes? How can they be used to convert a data of primitive type to object type?
                                                                                                                                    6+6+1+2
  1. a) Discuss the lifecycle of thread.
b) What do you mean thread priority?
c) Write a program that take inputs from two textboxes and using three buttons
i)          calculate the addition of two numbers
ii)        calculates the subtraction of two numbers
iii)       calculates the multiplication of two numbers.                            4+2+9
  1.  Write short notes(Any three)
a)      Inheritance implemented in java with example
b)      Create two packages share data between them (with example)
c)      Write a program to draw a circle in a Form (Using Applet)
d) Write a program in java to explain how different priorities can be assigned to different threads.


No comments:

Post a Comment