2018 model question papers for BCA,CST,MCA and & B.Tech students

JAVA PROGRAMMING

TIME –3 HOURS                                                                                      FULL MARKS: 70


           
Group – A
                                                                       
  1. I. Answer any ten Questions:                                                                                10 X 1 = 10
                                                               i.      What's the difference between constructors and other methods?
                                                             ii.      What does Object Oriented Programming mean?
                                                            iii.      What is a Class?
                                                           iv.      What is an Instance?
                                                             v.      What is a Static member class?
                                                           vi.      What is finalize () method?
                                                          vii.      What is the difference between Array and vector?
                                                        viii.      What is the difference between this () and super ()?
                                                           ix.      What is a daemon thread?
                                                             x.      What is the basic difference between string and stringBuffer object?
                                                           xi.      What is the purpose of Void class?
                                                          xii.      What is an Interface?
                                                        xiii.      What is a super / base class?
                                                        xiv.      What is an exception?
                                                         xv.      What is serialization?
                                                        xvi.      What is casting?
                                                      xvii.      What is thread priority?
                                                     xviii.      What is the full form of AWT?
                                                        xix.      What is package?
                                                         xx.      How to implement multiple inheritance concepts in Java?

II. Answer any five Questions:                                                                                     5 X 2 = 10
i)                    What are the types of Exceptions in Java?
ii)                   What's the difference between an interface and an abstract class?
iii)                  What's the difference between the methods sleep () and wait ()?
iv)                 What is meant by abstraction?
v)                  What are Encapsulation, Inheritance and Polymorphism?
vi)                 What are different types of access modifiers (Access specifies)?
vii)               What is method overloading and method overriding?
viii)              What is Garbage Collection and how to call it explicitly?
ix)                 What are inner class and anonymous class?
x)                  What are the methods provided by the object class?
xi)                 What is Remote Applet and Local Applet?
xii)               What are the advantages of using exception handling?
xiii)              What are three ways in which a thread can enter the waiting state?
xiv)             Can a super class object reference a subclass object? Explain.

Group – B
            Answer any five questions:                                                                                             10 X 5 = 50

  1.   a) What are wrapper classes? How can they used to convert a data of primitive type to object type?  
    b)  How to create a package? Describe with an example                                    2+3+5
  1.   a) Write short notes about life cycle of an applet.             
 b) Write short notes on different string handling.                                                                     5 +  5
  1.  a) What is multithreading?  Explain the advantage of multithread programs.      
 b) Write short notes on JVM.                                                               2+3+ 5
  1. a) What is AWT? Differentiate between component class and container class?                         
b) Write a GUI program in Java that will have two buttons – RED & 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.                                                                2+3+  5                
  1.  a) Write a small applet program that takes two inputs as integers and there are 4 buttons that implement addition, subtraction, multiplication and division.                                     
      b)What is the need of synchronized block? Illustrate with an example.              5+5

  1. a) Show by writing a complete code along with the output how multiple inheritances is implemented in java.                                                                                                                                                     
   b) Write a small database program in Java that insert, update & delete data in the student table.
(The format of table-   student (roll, name))                                                                   5 +   5
  1. a) Write a program in Java that stores information in the array and then sort the array.                       5
      b)  Write a program in Java for 2 – D matrix multiplication                                                   5  +              5
  1. a) What is constructor? Explain with example constructor overloading?               
b)  Describe with example compile time polymorphism and run time polymorphism.            5 +  5
  1. a)  Write a Java program reverse of a String and check String is palindrome or not.                 
      b) What do you mean by command line argument? Describe with example                  5 + 5
  1. a) What are the difference between Java application & Java applet?                                                           
b)  Write a Java Program to implement Stack Data Structure (push and pop operation).            5 +  5
  1. a) What is JVM? Why java is called “PLATFORM INDEPENDENT LANGUAGE”                       
      b) What is encapsulation? Explain how encapsulation provides modularity and information hiding?
                                                                                                                                                                 5 + 5


           


................................................................................................................................................
DIGITAL ELECTRONICS
(SEMESTER-1)
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
(SEMESTER-3)
Time- 3 hours                                                                                                                               Full Marks- 70

(GROUP-A)
(Multiple Choice Type Questions)
  1. Choose the correct alternatives of the following:                                                          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 thes

m) Which is a Perspective Anomaly?
a)      Cavalier
b)      Oblique
c)      Vanishing point
d)      None of thes
n) If P0, P1, P2 be the control points ( in sequential ordering ) then the Baizer curve must pass through
a)      P0 and P1
b)      P1 and P2
c)      P2 and P0
d)      Points close to P0, P1 and P2
o) ‘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


(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? How do you solve the problem of aspect ratio while performing window – to – viewport transformations?
  4. Use series of transformations in matrix form (translation, scaling, translation) to derive the window – to – viewport – mapping relationships.
  5. Obtain standard prospective projection onto the xy-plain.
  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. Why do we need a DNS system when we can directly use an IP address?

(GROUP-C)
(Long Answer Type Questions)
Answer any three of the following
3 x 15=45
  1.  
a)      An organization is granted the block 211.17.180.0/24. 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)     What is the dotted decimal notation in IPv4 addressing? What is the number of bytes in an IPv4 address represented in dotted decimal notation?               2+1=3
c)      List the classes in classful addressing and define the application of each class (unicast, multicast, broadcast, or reserve).       4
  1.  
a)      Define and describe the difference between OSI Layers and 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

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

WINDOWS PROGRAMMING
Time – 3 Hours                                                                                                             Full Marks- 70
(Group A)
1. Choose the correct alternatives for the following (Any Ten):   10 x1 = 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 :                       5X 3 = 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.
.................................................................................................................................


No comments:

Post a Comment