0% found this document useful (0 votes)
3 views4 pages

CS-356 Oct14

The document is an examination paper for Computer Science courses, specifically focusing on Programming in C and Java Programming. It includes instructions for candidates, a set of questions that students must answer, and guidelines regarding the format of the answers. The questions cover various topics related to programming concepts, data types, and object-oriented principles.

Uploaded by

laita nikam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

CS-356 Oct14

The document is an examination paper for Computer Science courses, specifically focusing on Programming in C and Java Programming. It includes instructions for candidates, a set of questions that students must answer, and guidelines regarding the format of the answers. The questions cover various topics related to programming concepts, data types, and object-oriented principles.

Uploaded by

laita nikam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

!

Oc*-nt\ ot{FTr - tog tfil


Seat Number

liltililffiilflililtil]il]
*O94?*

' COMPUTER SCIENCE : UG-CS-356


(A) Programming in "C" (88246)
(B) Java Programming - I @sz47l
P. Pages:4

(A) ProSramming in"C"


(35246)
Time : Two Hours Max. Marks :40

, lnstructions to Candidates :
1. Do not write anything on question paper except Seat No.
2. Answer sheet should be written with black ink only. Graph or
diagram should be drawn With the same pen being used for
writing paper or black HB pencil.
3. Students should note, no supplement will be provided
4. All questions are compulsory.
5. Figure to right indicate marks.
1. Attempt any eight of following.

i) Which of following is an 8-byte !nteger.


a) Char b) Long c) Short d) byte
ii) Which of the following is not an integer -
a) char b) long c) integer d) byte
iii) Which of the following is the correct output of following code.
int [,, ] a = new int [3, 2, 3]
console write line (a . length)
a) 20 b)4
iv) Which of the following are the coriect ways to increment the
value of variable a by 1
1) ++a++ 2) a+=1 3) a=a+1 4) a=+1
a) 2.3 b) 2.4 c) 3.5 d) 4.5
v) Which of the following in not arithmatic operator in C#.
'c) I
a)** b)+ d) o/a

6)qqT- 103 I104 P.T.O


ot+Tr - loa l1o4
vi) Which of the following statement is correct.
a) a constructor can be used to set default values.
b) C# provide default constructor.
c) A class can have more than one default constructor.
d) Distractors are used in structure.
vii) How many values should function return.
a)1 b)0 c)2 d)3
viii) Which of following can't occur multiple number of times in a
program.
a) name space b) entry point c) class d) function.
ix) A function can be used in an expression where as subroutine
can not be
a) True b) False

x) Which of the following character ends every C# statement.


a) Period (.) b) colon (:) c) semicolon (;) d)comma (,)
2. Attempt any four of the following : 8
a) What is C#.
b) List data types in C#.
c) Exptain for with example.
d) How nested methods are used in C#.
t] Define class.
3. Attempt any two of following.
a) Explain .Net framework.
b) How ArrayList class is used in C# .net.
c) Write difference between class and structure.
4. a) Attempt any two of following.
i) Explain constructor with example.
ii) How two dimensional arrays are used
iii) Explain decision making statement.
b) Write basic principle of oops. 2
5. Attempt any one of following. I
a) Explain variable size arrays and system array class with
example.
b) Define inheritance. How to implement classical inheritance in
C# .net. Explain.

6tqqT- 1os I 104


6tffir - 103 l1o4

(B) Java Programming - I


(352471
Max. Marks:40
Time : Two Hours

lnstructions to Candidates :
1. Do not write anything on question paper exclPJ Seat No'
2. Answer sheet jnoul6 be written with black ink ority. Graph or

writing Paper or black HB Pencil'


3. Stude-nis should note, no supplement will be provided.
4. All questions are comPulsorY'
5 Figure to right indicate marks'
'1. AttemPt anY eight of following'

a) Which of the following is not a looping statement ?


i) for il) siritcn iiil wnile iv) do-while

b) A class that is inherited is called as a -


i) superclass ii) sub class
iiil subset class iv) relative class
c) which method of class string is used to extract a single
character.
i)CHARAT()ii)ChatAt()iii)CharAtiv)Chatat()
d) Which of the following is not an exception in Java ?
il''"niit'*"ii. exception
iil. ltlull nginter
"*."ption
iiil nrr"Vout of bounds exception iv) logical exception
e) Who lnvented java programming language ?

iiil J"*p. Gosling iv) Bjarne Stroupstrup

f) What is the extension of Java byte code ?


il .i"r, ii) .class iii) 'bc iv) none of these

g)
!' What is the size of an integer in Java language
i) 3 bytes ii) I byteJ iii) 4-bytes iv) 2 bytes
h)
' Two methods can not have the same name in Java'
i) True ii) False

3 P,T.O
61T{r-103/104
otffiT- rtls tfi4
i) Which of the following may be part of ctass defination ?
i) instance variables ' ii) instance methods
iii) constructors iv) AII of these
i) is a name given'to a variable, class or method.
i) constant ii) reference iii) identifier
2. Attempt any four 8

a) What do you mean by JVM ?


b) What is reflection ?
c) Define package.
d) Enlist datatypes supported by J-ava.
e) What is abstract class ? I
I

f) Dejfine stream. i
I

3. Attempt any two. I ,]


i

a) What is constructor ? Explain with an example. I

ri

b) Write a short note on inner class. j

c) Explain output stream class in brief.


i

il

4. a) Attempt any two. 6


:i

il

i)
i

Explain any 3 methods with respect to Gregorian calender.


ii) Discuss lnterface concept in Java.

b) Compulsory question. 2

ListoutthestringmanipulationfunctionsinJava.
5. Attempt any one. 8

a) Explain various features of Java langu'age in detail.


b) What is exception ? Explain exception handling mechanism in
short.

6tqqT-103 t104 4 214 I 1640

You might also like