RTU 2016 Question Paper Semester IV Electrical Engineering Computer Programming II – Text
Read the full text of this question paper below — useful to quickly search, copy and reference the content online without downloading the PDF.
📄 View text version (4 pages)
Page 1
ll
nI lL:i:,;r{
TotalNoofPages: I
N 4E2LLz
t{
F{ B.Tech. IV-Sem (Back) Examl June-July 2016
N Electrical Engineering
frl 4EE4(O) Computer Programming-Il
+
Time: 3 Hours Maximum Marks: 80
Min. Passing Marks (Main & Back): 26
Min. Passing Marks (OId Back): 24
Instructions to Candidate s : -
Attempt any ftve questions, selecting one question from each unit. All
Questions carry equal marks. Schematic diagrams must be shown
wherever necessary. Any data you feel missing suitably be assumed and
stated clearly.
Units of quantities used,/ calculated must be stated clearly.
Use of following supporting material is permitted during examination.
(Mentioned in form No.205 )
2.
UNIT.I
Q.1 Explain the following commands of Unix:- [Syntax with explanation + an
examplel. [2x8=16]
(a) Cat
(b) LS
(c) BC
(d) Touch
(e) Banner
(0 U limit
(e) wc
(h) Pg
l4E21L2l Page 1 of4 [11801
Page 2
G + an
commands of Unix:- [syntax with exPlanation
Explain the following
Q.1
examPlel.
(a)
(b) Who
(c) GreP
v
(d) Sort
(e) Cal
odd
(e) du
(h) lP
UNIT-II
the following oPerations in VI editor'
are used for performing
Q.2 Which commands [2x8=161
exPlain:-.
(a) To move uP one line' \J
O) To move down one line
(c) Delete a line
shel]
(d) Abandon the editor & return to
(e) Undo the last command
(f; Screen Scrolling
(g) Deleting & changing Text
(h) Moving Block
t11801
PageZ of.4
14E2LL21
Page 3
OR
Q.2 Which commands are used for performing the following operations in VI editor,
explain:-
(a) String replacement
(b) Display terminal serting
(c) Break a line if it is two long
(d) Shifting a block of code in left
(e) Spell checking
(0 Page break
(g) Delete all comment lines
(h) Double spacing between lines
Q'3 (a) How JAVA is different from C++? List the advantages of JAVA in comparison
with C++?
tgl
(b) what are the various data types used in JAVA? Explain in brief.
t8l
OR
Q.3 (a) Write short notes on:- [2x4=8]
(i) JAVA byte code
(ii) JAVA Virtual machine
(b) What are applets in JAVA? How they are used? What are their advanrages?
tgl
Q'4 (a) Explain Bitwise & Bit shift operators in JAVA using suitable examples. tgl
(b) What are the various branching statements supported by JAVA. Give appropriate
examples also.
t8l
l4E2LLzl Page 3 of4
[11801
Page 4
OR
Q.4 (a) Explain Equality, Relational and conditional operators in JAVA using suitable
examples. t8l
(b) Explain the while and do - while statements in JAVA using a program.
Differentiate between these two statements. t8l
UNIT.V
Q.5 (a) What are packages? How they are defined in JAVA. Explain using an example
importing a JAVA Package. t8l
(b) How interfaces are defined and impleinented in JAVA. t8l
OR
Q.5 Write short notes on the followings: - l4x4=l6l
(a) Applets in JAVA
(b) Awt tools & controls
(c) Mouse & keyboard interfaces
(d) String handling
14821.L21 Page 4 of 4 [1180]