Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
8 views

bcom-4-sem-ca-programming-in-java-12311-2020

This document is an examination paper for a Programming in Java course, detailing the structure and content of the exam. It includes compulsory and optional questions covering various topics such as class creation, object-oriented features, event handling, and GUI components. The exam consists of multiple sections, with specific instructions on how many questions to attempt and their respective marks.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

bcom-4-sem-ca-programming-in-java-12311-2020

This document is an examination paper for a Programming in Java course, detailing the structure and content of the exam. It includes compulsory and optional questions covering various topics such as class creation, object-oriented features, event handling, and GUI components. The exam consists of multiple sections, with specific instructions on how many questions to attempt and their respective marks.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

https://www.kuonline.

in

Roll No. ............................ Total Pages : 4

BCM/M-20 12311
Programming in Java
Paper - BC(VOC)-405

Time allowed : 3 Hours Maximum Marks : 80

Note : Students are required to attempt five questions in all


by selecting four questions from Section-B and
question No.1 (Section-A) is compulsory.
Nk=kksa dks [k.M&ch ls pkj ç'uksa dk p;u djds lHkh esa ikap
ç'uksa dk ç;kl djuk gksxk vkSj ç'u la[;k 1 ([k.M&,)
vfuok;Z gS A
Section-A ([k.M&,)
1. (i) Write down the syntax to create class and objects.
Also give example. 4
oxZ vkSj vkWCtsDV cukus ds fy, okD;&foU;kl fy•sa A
mnkgj.k Hkh nsa A
(ii) What are the various advantages of using vectors
over array. 4
,sjs ls ctk; oSDVj dk mi;ksx djus ds fofHkUu iQk;ns D;k
gSa A
(iii) Define interfaces. Why we use interfaces. 4
baVjiQsl dks ifjHkkf"kr djsa A ge baVjiQsl dk mi;ksx D;ksa
djrs gSa A
12311/K/420/T P.T.O.
https://www.kuonline.in

(iv) What is difference between java and C++. 4


tkok vkSj C++ esa D;k varj gS A
(v) What are the responsibilities of event listener.
Explain them in brief. 4
bZosaV Jksrk dh ftEesnkfj;k¡ D;k gSa A mUgsa la{ksi esa le>k,a A
Section-B ([k.M&ch)
2. (i) Why java is called object oriented language.
Explain the features of java. 7.5
tkok dks oLrq mUeq• Hkk"kk D;ksa dgk tkrk gS A tkok dh
fo'ks"krk,a crkb, A
(ii) Explain why java is machine independent. 7.5
crkb, fd tkok e'khu Lora=k D;ksa gS A
3. (i) Define copy constructor. Write a program using
copy constructor that reads complex numbers and
copies them in to another. 10
dkWih daLVªDVj dks ifjHkkf"kr djsa A dkWih daLVªDVj dk
mi;ksx djds ,d çksxzke fy•sa tks tfVy la[;kvksa dks
i<+rk gS vkSj mUgsa nwljs esa dkWih djrk gS A
(ii) Define string classes in java. Also explain these
classes with example. 5
tkok esa fLVªax d{kkvksa dks ifjHkkf"kr djsa A mnkgj.k ds lkFk
bu oxks± dks Hkh le>kb, A
4. Explain following GUI components with example :
mnkgj.k ds lkFk GUI ?kVdksa dk o.kZu djsa%
12311/K/420/T 2

https://www.kuonline.in
https://www.kuonline.in

(i) JCheck box


(ii) JPannel
(iii) JTextarea 3×5=15
5. (i) How you can achieve the features of multiple
inheritance in java. Explain multiple inheritance
by giving an example. 7.5
vki tkok esa dbZ mÙkjkf/dkj dh lqfo/kvksa dks dSls çkIr
dj ldrs gSa A ,d mnkgj.k nsdj dbZ mÙkjkf/dkj ds ckjs
esa crk,a A
(ii) Write a program in java to find the largest number
in an array of N numbers. 7.5
,u la[;k dh ,d lj.kh esa lcls cM+h la[;k •kstus ds
fy, tkok esa ,d çksxzke fy•sa A
6. (i) What is the role of event listener in event
handling. Also discuss about java event listeners.
bosaV gSaMfyax esa bosaV Jksrk dh Hkwfedk D;k gS A tkok bosaV
Jksrkvksa ds ckjs esa Hkh ppkZ djsa A 7.5
(ii) Write an Applet to display the mouse cursor
position in that applet window. 7.5
ml ,IysV foaMks esa ekml dlZj dh fLFkfr çnf'kZr djus ds
fy, ,d ,IysV fy•sa A
7 (i) What are the primitive data types in java. Explain
them with example. Also define type conversion.
Why we use type conversion. 9

12311/K/420/T 3 P.T.O.
https://www.kuonline.in

tkok esa vkfne MsVk çdkj D;k gSa A mUgsa mnkgj.k ds lkFk
le>k,a A çdkj :ikarj.k dks Hkh ifjHkkf"kr djsa A ge çdkj
:ikarj.k dk mi;ksx D;ksa djrs gSa A
(ii) Define anonymous inner classes. Explain these
classes with example. 6
vuke vkarfjd oxks± dks ifjHkkf"kr djsa A bu oxks± dks
mnkgj.k lfgr le>kb, A
8 (i) Explain about adapter class with an example. 6
,d mnkgj.k ds lkFk ,MkIVj oxZ ds ckjs esa crk,a A
(ii) Write the subclasses of Jbutton classes. 3
Jbutton oxks± ds mioxZ fy•sa A
(iii) Differentiate grid layout, border layout and flow
layout manager. 6
fxzM ysvkmV] ckWMZj ysvkmV vkSj Ýyks ysvkmV eSustj esa
varj djsa A
9. Write short notes on following : 3×5=15
fuEufyf•r ij NksVs uksV fy•sa%
(i) Font control in java.
tkok esa iQkWUV fu;a=k.k A
(ii) Graphic contexts and graphic objects.
xzkfiQd lanHkZ vkSj xzkfiQd vkWCtsDV A
(iii) Drawing lines and rectangle in java.
tkok esa js•k,¡ vkSj vk;r cukuk
12311/K/420/T 4

You might also like