0% found this document useful (0 votes)
16 views

CSC101 1

Csc101 pdf

Uploaded by

r5mc4tck7r
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)
16 views

CSC101 1

Csc101 pdf

Uploaded by

r5mc4tck7r
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/ 63

CSC 101

PAS T
QUESTIONS

for
UNIZK
S TUDENT S

ELDORADO TECH - 07032894728


. 1, ,
711'
l
MWJCWD
11111-11172"I _'I'WMSTUMW-MR:
11m
\lkAlVJDIAZIC VEUNIVERSITY-A
De a'rtment of Com-uter Science. CSC 101 Exa 1112111
201 essionLAnswerAll the Ouestion Time: 50 mins .1.N
' l. A computer thatméasures valuesis called
discrete
computer. A. micro B. local 1C. digital D '
1 HYbrid:\
analog. z -..E
2-, _ FIOWChart
1s ina__form.4451.131;i
bystepinstructure
tastep .-

al
. B statementC.
machineD. h1ghlevelE none.
3. Exampleofamulu-usercomputer1s 'A. mainframe B. micro
C robot D. artificial E. hybrid
. 4. (11110),isequivalenttoi__ indecimalA. 40B. 15 D 18
.. 30C.
E. 75.
5. (101111100)?=(X). .W11atisX? A. 475 B. 574 C. 445 13.25
. E. 446- -
'
.6; .. An example of an unconditional statement in BASIC lS aA .-
.FOR-TO-NEXTB. GOTO C. FlowchartD. WHILE E. END
17... is an example of an outppt device. A. floppy disk B_
printer C. keyboard D. scanper ECD.
8. is a type of system soiiware: A. operating system B.
.- machinelangilage C.ob_jectcode D.source codeE. none.
9.f ' Thethreecommon devices
o1itput are:A.1nonitor,
printer, B.
speak
joystick, mouse,keyboard C VCD, CD, Floppy disk,
' D.Gold,
silver, ironE. none.
10. _'_is themostpopularinput
device. A. scannerB.joystick C.
- keyboard D. VCD E. speaker
l-L , Theoctal
equivalent A. 43.42B.43.
of(100111.1011),13____ '
55
C 47.54 D 47.55 E 55.47 . .
12 1
f A. .
.. ' R
'
B r
i ' _
" 1 TheactuaiRe .
. . " .
Presentanon of B A. +C

.. ' -
v. Thiss -
14'Data 18 m b 1
A-
sS'mbol
0%?thD called
11013
8513c33mg
! 08mm
C /
isnst decision E. branChing .
'. aref§d intothe computerv186
mftmns
\ :w:gg
M imymui - i D.
.sA outputB. processingC. input
nitI
storach none
INPUT H
I]

,
10 1F>50 GOTO50 . . a
*
p=300H . ' .
$3. aoTO -
50 60 .A
- .0.. '
50)
£0 . P=l500+400*(H-
60 PRINTP,H
70 END
Usetheaboveprogramtoanswerquestion15-20 -
[fH60whatisthevalueofP A. 4500 B. 4000 C. 5500
1) 5000 E. none.
Whichline indicates the uncondil: onal transfer of control? A. 10
3.20 C30 D40 EH50
[fH= 40, what 18thevalue of P/ -A.~10,000 B. [2, 000 C. 9000 D. 4*
7000B. None
_Whichline indicates the output statement? A. ' IO B. 20 C. 60 D. 70
E. 40. -
Underwhatconditionwill line 50 be executed? A. H<50 B.H<30'
C.H<20 D. H>50 E. H=10.
.
-
.
the term permanent is oRen associated with; A. A LU B. Control
Cunit C.printer D.keyboard E.secondarystorage.
Which ofthe following is an invalid output statemem? A. Average '
B.Average% C.Average$ D.34Averagev E.AVG. ;
ABASIC
variable withasuffix
name 3represent
i variable. 7 t
A. integer B. Real C. String D.Subscripted E.none.
c

To declare an array and its size statement is used in BASIC.


A. LET B REM C.D1M D. DEF E. EQU.
K= (A02 + M- N"2)' Is an example of_ in BASIC. A. BASIC
Expression B. BASIC statement C. BASIC action D. BASIC
language E. none. '
One of the characteristicbf RAM 15that it is a m'emory A.
Permanent B. Durable C. Static D. Volatile E versatile.
Small high speed memory units used for storing intermediate results
are 7 A. flip flop B. control unit C. registers D. ALU E.
'
none.

Whatgate.hasits outputas logic 0 if and only if the inputs to the


gateare in the same state? A. EXOR B. EXNOR C. NAND D
AND E.OR.

.40-
«I.! mmmm.mm 1m
gmmmm
The oldest known mechanical am 1'0:compuung is:
8
A. Annlyiic
Engnm Punchchard C. Abacus D. Napier Bones E. Wcavmg
boom
. 29. (BF6)16-(),givcs: A.(|0|llll|0110) a.(IIoIoI)
C.(l00100||) D.(l0|0|0|0) E.none.
30. The ['5 complement of (01011), is __ A. IIOOO B. 10100 C. ..
llOll D.000ll| E.none.
. Evaluate the expressions in 31-35 .
3|. (I6).+(7).: A.23 8.24 C.25 D.32 E42.
32. (ABC)..+(BC)..-()..: A887 13.878 c.1388 D. B77 13.none.
33. (IIOI).+(IIII2)2-( ),: A. 1101 B_110|1I c I_IIoo D. 10101
.
E. lllll.
34. (385)..- ()..:A.249 3.429 c.924 D449 5.654.
35. (440),+(24),-( )SzA. 123 B. 321 C. 213 D. 112 E. None.
36. "ABCD"Isca|1eda_consIanl A. Integer 3. Real C. string
D. double E. None.
precision
37. Whatmake5134 182 an invalidintegeris: A.Toolong B.Too
shon C.?Iesenceofcommac) D.Absenceperiod (.) E.Nonc.
38. A computer is basically an electronic devices which can respond 16
A.Commands B.Stimulus C.order D.heal E.None.
Ir' Translates translate the A.
39, prognm into object codes.
Source 8. machine C. assembler D. compiler E. None
40. Allexcept one is notan Input deVIce A keyboard 3. Scanner C.
mouse D. speaker E. joystick.

Sn, yesled Solulion: to (In CSC 101 20H Session For Nan Students .
Mr. Ohms.
LC Digital 2.A Pictorial 3.A Mainframe
.
4B

Working:
(l'IIO).-Ix2'+lx2+lx2'+l x2"+0x2'-30 ->B
5.8 Working:
£5121; First weconverttobase 10. i..e
(lOlllIl00)-|x2'+ox2 +lx2 + lx2+1x2 +Ix2+Ix2+ Ix2 +0x2
'
Step 2;
We convert380,.to basé
8.

-41-
i.e. 380
8 47R4
8 5 R0
5 R0 :.sso..,-(s74), ->B

6.3 GOTO 7.B Printer 8.A Operallnsszm


9.A' Monitor, printer, speaker
MC Keyboard
1 LC Working,- _
IOOlll.l0H
acre
= '
W
10.
.. _
,wcgrou:;lh(e)<:igitsinl03andlhcn
(lOOlll.l0H),=(l00|ll.lOlIOO),
(100),=lx2+0x2'+0x2'-4
(lll),=lx2'+lx2'+0x2°-7
(lOl),=lx2'+0x2'+ lx2'-S
(lOO),=lx2'+0x2'+0x2'-4
:.(lOOlll.l0|l),=(47.§4).->C
A.B l3.D Decision I4.C Input
Working;
30 P=300H (1)
so P= 1500+400 (H-SO) (2)
But since H= 60 > 50
We Substitute the value ofinlo equation (2)
i.e P=1500+400(60-50)
= [500+400 IO = ISOO+4000 .5500.>(c)
16D 40
.3 Working;
H=40,since 40<50, wcuse P=300H
=300x40=12000=>B l8.C 60 I9.D H>50
_20.E Secondary storage
21.0 Reason:
Option D is regard as invalid variable , because 11does not sun
' with any ofthe 26 English alphabets.
22.0 Stringvariable 23.C DIM 24.E None
25.1; Volatile 26.A Flipnop 27A EX-OR
28C Abacus

-42-

v...

0 wwMW ma
mm m TOME NW11
. 29A Working, 1.5.?!
Using shortcut»; we Just ,gonven e
(Bf6),,=(},
basc2.Butrcmembcr.B- '11,F 15.!-
rintegerto
Solet'sgo
2 11 2 .15. 2 5
'. 2
2 5R! ' .2 ,:ZR] 3R0
'2 2R0' . 2 -3R1 2 1R]
2 1R0. ..' 2 11111-4; L .. OR!
. .
OR! OR} I
$0011). -=(111'1), =(no),.=(00
u(BFe),,'=(101111110110),=>(A)
30.B Working; 1),,its1scomplementns
(0101 '=>B
(10100)2
31. C Working,-
1' 6;
- .
.+ 7, ..
'
(2 5):. =>C

3-9 .3 Working,
, ABC.,+BC,, = A B c 10 n 12
,3
+ B c 1112., -
Ii- . = (378).. =>B.
f? "(1"1"'-7'8)
s, 33.C Working; _ .
g (1101),+(1m),= 1101, .
' ' ' ' '
+ l l l 1Ir -
'
(11 100), thus, the correctoption is C
34. (None) .
85), = ( )I6is; 16 3 85
Working, ,(3
.. 16, 24R!
16 1R8
0R1
. =.(181)=(None)
35A %rking; (44), +(24), = 4 4;
' + 2 . 45
-' _ .
. _ _ (I 2 3), =>A
- ..37C Presenceofcomma
36.C String _

'
, -43-

' mm*'~u"
mar; 1 .

CF
' W- ,
11-1111/11
.11."1111111111111
39.A Source
'11-'111'
40.0 .
38A Commangg Speaker _'
NNAMDIAZIKIWE UNIVERSITYAWKA. ..1.
of Computer Science. First Semester Diploma
Department
Examination 2011/2012 Session CSC 101 -Introduction to Computer ,_

*
Scienceand Procrammmg xThursday March29,2012.
Instructions: '
(11) Attempt allQueshons _
Shade the CorrectAnswers Only (1:) TimeAllowed: 50 Mins-
(b)

2_
1.' arefunctions
These of Operating
Systefn
sharing resources C. memory
E.program1nteract1on
A.Filling
except? B
management D. program execution

............... -is not an example of an operatingsystem? A. UNIX '


1.
$.
'B.CMPA C.MVS DWXENX EMVS
3. All of these are found on the Visual Basic. NET IDE excep't A.
Form Designer B. Solution Explorer.
WindowsExplorer E. Toolbox. -
C. Code Window D .§
3
(r
4,
(101111100)1 ,-?whatisX?A.
=>(X)&.,= 334D.754 .
474B.234CT
E. 634. .
1

21
5_ / What isthe23complement
of (11001100),?. B.:
A. 11001100 9.

1
00110011 C. 00110100 D. 100111011 E. noneofthcabove. ' i. r

6. ? A.
An advantageof supercomputerover others is ............... a
Purchase Cos't B. Processing power C. D %'
Portability E. Allofthe above .maintainability
7. Theterm V sual 1nVisualBasic.NET 1efersto the abilityto create
what classofappl1cat1o1is'?A Command 11ne B. Graph1calUser
Interface C.message boxes D.Console E.InputB_oxes. _
8. ' The main functicm of the is .............. ? A.
computermcmory
memorizingof past events B. conversionof pr'og'ram C. .
conversionlsthage of data D. translationof languages E. storage
' ofdataand 1nstruct1ons '
9. EBCDIC1sanacronym thatstands for ..........-..............?A.
ExtensionBinary Coded Decimal Interchange Code
. - B. Extens1bleB1naryCoded DecimalInterchangeCode
BinaryCodedDecimalInformationCode
. C.E11tended
D. ExtendedBinary Coded Decimal Information Cdde
E.Extensible
BinaryCoded Denary Interchange_Code

444-
"I 1'11111811117313
-MTOCW.SC1MJ 911101013
010101 One
Durable
characteristics
D. Static
0 RAM
E. Versatile.
IS 7 A.Voiat1le B. permanent C.
'
Boolean Algebra was invented by ........
.1? A.Be1'nard Boole B.
Charles Boole C. Kevin Boole D. George Boole E. Thomas Boole.
What gate has its output as a logic 1 1f and only 1f1he inputs to the
gate are all' 1n the same state? A. Ex-NOR B AND C. OR D. Ex-
OR E. NAND.
- 101 and B=100 are
IfA inputs to a logic gate and C=101, is the
output What type of gate is represented? A. ExNOR B. AND C.
. OR D Ex-OR E. NAND.
One of the following doesnot applyto a digital computer?A.
' Speed B Accuracy C. Reliability D Versatility E performance.
The oldest known mechanical aid for computation is ? A.
Analytical engine B Difference engine- -C. Abacus D.Napie1-
Bones E.Weav1ngloom
16. Robotics' 13technologies of ,....,, ........ computer generation? ,
A.First B.second C.third D.fourth E.f1fth. 1
17. A storage device used with the computer, made of thin plastic and
macnetically
D 4 éoated is called? A. Hard disk B. Floppy disk C.
magneticdrum .D.Diskdrive E.CD-ROM
18. Visual Basic. NET is a programming language development by
........ 7 A. sun Microsystems B.Apple1nc C.Orac1e1nternationa1
D. Microso& E. IBM
19. .... Is notarmmber system? A. duodecimal B.hexadecimai C. .
octdecimal D. denary E. decimal.
20. One of the foilowing1s not a nonvoiatiie memory.A.1-1ard d1sk B
CD -ROM C. Flash memory D.RandomAccessMem01y E. None
oftheabove.
21. VDU stands for ......... 9 A. VisuaiDispiay Utility B. VirtuaiDi'spiay
Unit C. visual Display Unit DV1suai D1o1tai Umt E. Visuai
Diagnostic Unit.
'
22. coordinates arid controls the performance of vanous hardware
and software components that make up the computer system. A.
centroi unit B. controls unit C.coord1nates umt D1
coordinates/control unit 13.coordinatirig unit.
23..~ Truth table shows the various states of input to logic variabies and
thecorresponding
statusof the A. true state B. truth state C. output
D. statusstate E. input.

-45- ~
" com.
IoI-III
mmoc scm'
IIIIIIIIIII-iiom
24 . Analytical Engine was a dengg conceived by ......... ? A HeImaII
HolleI It B CharlesBabbageC. Alan Turing D. John Napier E
--rJoseph Jacuard.
-__
i
'4

The special feature of third generation computers was that they


2'31 were built with ..... as switching element A. TIansistors B.
Thermionic valves C. Integrated circuits -D. All of the above E.
None of the above. .
26. Anothername forHighLevelLanguageis. .......... ?A. Man Made B.
General purpose C. high executable D. Machine Compliant E.
Human Convertible.
' of theset?A.'ANSI B.
Isnota member
27. Oneof thefollowing'
EBCDIC CASCIA D.ASCII B. Unicode.
28. The pictorial representationof an algorithm' Is .........
a
chaxtB. FlowchartC. Diagramchart D. Algorithm chart E. Allof
- the above
£1:3
' ' Use the program below and answer Question29- 32
i I.. Dim nameAs String
'
'1. 2. Dim currentyearAs Integer=2012 -
, 3. Dimyearof BirthAsInteger
l" 4. Dim ageAs Integer
5. Dim msgstringAs String
I nputBox(Please enter your year of bIrth")
name=
l. 7.
6.
yearOfBirth= InputBox ( Please enter your year of bIrth")
I ~ -' re=ctrrrentYear- -yearOfBirth .
8. \
a-a
l
9. msgString= Hi & name 85, you are & age & years old.
LI
'
Iu \ .sgBox(msgString)

1; 29 In theprogram except A. msgString B.


Thefollowmgarevanables
iii
I MsgBox C. age D. currentYear E. name.
W lIichofthese variables was initialized with a value on declaration.
11
PL
l
1
.30
.
A.msgString B.InputBox Cage D.curre'ntYear E.name.
3i. The inputsin lines 6 and 7 are .................... ifthe output is Chinelo,
1

_
16'! A. Chineio, 2012 B Jennifer, 16 C 1996, Jennifer D.
.;i Jennifei,_2012 E. Jennifer,-
How thevariable
does agegetitsvalues?
A Computation
and
assignment B. input from the keyboard C. it has no value D.
initialization after declaration E. read from file.
(35),x(5),=(X),whatisX? A.367 B.22I c. 327 D. 227 E.

s...:.._-::.. . -45-
1'1
111111
01011111111 11111111
1111111
@1qu measures
computei
,,,,,,,
34. ete
disci values?
A.Mic1~o
B,
5 ¢

E Discrete .r.
.r.
(1.Hybrid D Digital
below
Usethe'diagram answer 35,36and37
questions
"vi, tivi

g . m

'
'71:)
3_5. What
logic isrepresented
gate by
g? B.NAND
A.AND C0R
,D NORDE.
Buffer
crate
Whatlogica isrepresented
m?A.ANDB.NAND
C.OR
1)
~NOR E. Buffer ,
37. The diagramaboveISan exampleof ...... circuit. A. integrated
B ConsecratedC. convertedD. compactedE.Noneof theabove
'938.
Ali there are common form controls 1nVisulBasic. NET e'xcep:
........... ? A: Label B. TextBox C. Button D. all above E. none

39. .............
Acts asbothinputstorage
deviceA. PrinterB. Scanner
C. WedCam D. Keyboard E. Floppy.
"
I 40. Small high speed memory units used for storing of intermediate
resultsare..........? A. Flip flops B.Controlun1t C. RegisterD.
MainmemoryE.Noneoftheabove ..
41. Which of these is not an application progr_am.A. Macromedia
flash B. MySQLC. MS- Word D. MS- Linux E. Pagemaker.
42. The advantages(s)of high level languageas good programming
to machinelanguage
ascompared
language A. it is
13/ are.............
tedious to write B. it is not machinedependentC. It 15not time
-
consuming D. a, b, andcabove E. bandc above.,
,. 4'43. Thecentralprocessing is madeupof
unit (CPU)of thecomputer
D.5 EH6
A.2 B3 C4

"
subunits.
\ '
.44. isasingle
............ user system?
operating C.
B.CPM
' A.UNIX
CMPA D. SVMS E Noneof theabove.
£15. .The hexadecimal equivalent of(110011001010),is ....? A. CCA

__/ 46.
B. CAD C 1A7
(A2+M*N.2)/SQR(2)
A.isualBasic
D. ZEF
isanexample ?
E. DDB.
oi ........
VisualBasicExpression B. VisualBasicStatement
EquationD. VisualBasic C
E Noneof the
.

Language

i -47-
e . I., I111. mm:w -
11110115110013-
above . .
An exampleofrepetition constructis .......? A.1F B.1F-THEN (
_ 47* D. GOTO E. FOR.NEXT: . .r.
" CASE
Oneof theseis aninvalid name
variable A yeaerBiI-tII;
{3
E 4" c~ year_ Dyear-of-birth
birth
YEAROFBIRTH of_
QI' E. yearofbirth 7W!"
49 A combination
of anAND gateandaninveIter
is equIvalent
to
0 ExOR BAND C.NANDD,BufferE.AND1.
gate7A.
One of the following is not true about algorithm. A. It must héve a
50 finesetB.it must haveaninitialaction C It must haveaunique
ted to eachaction D. it mustbe efficient andeffective E. It
successor
'e.
mustaIways
haveasolutIontoaproblem
. . .
DI M ,1.
lg CSC
SWERST02012101
FORDIPLOMA- OHMS.
BYMR.
Filling 2.C MVS _ l. .
I - ' f' . . .. a 1,..31
3'0 . Windowsexplorer - . I. - ;.
'4..D.I. Working: '
GIven1011111002, . -. 1 - -
wegroup
Here, the
numbeI-s
Into of3and
b10cks thén
convert
each
fobaselO. - _
i.e.1011x21+0x2+1x2=5
' ~' ' - .
'2111=_1x2"°+1x2+1x2=7 '1?
, 100_=1x2+0x2+0x2" "_4._
. . . =(574). ~.; f-
:.(10111I1-100)z =>D . . '1
5C Warkmg » _ I . .- 1
\_
. Given(11001100),. - 3», ; .13 _~ g
Step1:1scOmplemént= ,
00110011 231:? y; _ I
Step2: 1.6.
AddltotheleastSIonIfIcantdIoIt 00110011
1: I
. . . . . . | , . oonmopac
5 -
.53 ProcessmgPower ' ; _ ' 5. 15.:
j _ ,
7.B., GraphicalUserInterface .. . I ' ~_' .:. . . '
8.13 Storageof dataandinstruction ,
I

9D Extended Binary Decimal


Coded., InterchaII'gé
Code
'
10A VoIatiIe' . . I _(EBCDIC
5.
-
_vru,
MD GeorgeBoole '_' . , '_ . . \
"
12.A ExNor : _ V -. j. -_ I -
I3.C' ORgate_'

-48
mu N;y0rklng¬ BU UUHJ JiuLUm
B C . *3-
A
l 1 l .
' 0': ..
0 . 0 _,
I 5.?"'
I
the
Hence correct the the
above,
1: (ha;
anSWer
ls
gate. ' Optiiafirigné
table
. . OR

-_
J43 Performance §.1134}
.

a
. L
l5.C._Abacus

'
"

' ' 21.C


22.A
16.5 ' Fifth
17.3 Floppydisk " ,
18D Microsoft
19C. Octdecimal-
20.D-
-",;Visual
-

RandomAccess
Memory.
Unit
'
Control Unit
Display
.
-
AH
-

'23. C , Output
24.B ChargeBabbagé _ ' "-2

'
.25.C- IntegratedCircuits i
26.B' :GeneralPurpose _
27.E gUnicode ' -
'
28.B- Flowchart
29.B ~MsgBox :1.
30.D . Currentyear
31.E .Jennifer,l996 1
32.(-) .
. 33.B Working: - -
' ' 3 '
.' 5's E's .
x 5, . - --
(2 2 1); ."T>B-'

34.0- Digital_.
35.3
36..E' Buffer '
NAND'
»' "- -
. 37.A IntegratedCircuit . . ,
38.E' Noneofth'eébove ."
* - -'.'
.:
2 1-
-_
.

~
. s.

~ :1- "-3"- : -
-'
1; '
'
. v,
*

m.

H
39.E-:Floppy.
_40.A Flip flop

" _--
-49-
1111
%115111
100111116110
111111111
42 E BandC ~. . 1
43.B 3 441) " ' ' '
45A br/ring: D . . .
. 9
Given(110011001010)1
Here,wesimplygroupthedigitsintoblocksof 4 andthenconvert
eachtobaselo . o.
ie1100"1x.2\"1x2"'0(24'0"2=12=C
- .
11001x2"+1x2+Ox2'+ox2°=12=C
8+0+2+o=19=A
1010=1x2+0x2+1x2'+'0x2°=
=CCA =>A.
:.-(110011001010),
'
V15ua1 BasicExpression . -
5 -* z -
46A .
FOR-TO-NEXT - r. -
47.E ' '1'
"
43D . Year- Of- Bitth
49. NOR Gate,Bonusnoanswe1
50.13 1tmusta1wayshaveé solutiop to a problem.

'
.....
RegistrationNumben .......Department................................. I
i "T NNANIDIAZIKIWEUWRSITY, AWKA. DEPARTMENT. OF
Examination 2011/2012
' COMPUTER SCIENCE. First Semester
(SC 101{NTRODUCTION'TO CONIPUTER SCIENCE
Session:
ANDPROGRAMJVHNG FridayMarch 23, 2012.
1.; Instructions: (A). Attempt 311 Questions and Shade the Correct
Answers Only,- T1meA11owed: 50 Mins. '
GroupA:
1. All of these are found on thc VisualBasic. NET IDE except A.
Explorer C. Code W111dow D.
Form Designe1jB So1ut1'on
v-v-p.
(101111100)1
.2.
Wmdows Explorer E.T001box
474 234C.334 D 574
=>(119,=?what1sX?A.
P.
E.634.-1
31' B. .
A.11001100
WhatistheZscompIcmentofUmOl100)]?
00110011 C. 00110100 D. 100111011 E noneoftheabove.
4. An advantageof. supercomputerover others is ......
Purchase
Cost B.Process1'ng D
powerC.111ainta1'nability
E A11oft11eabove.
Po1tab111ty
5. ThetennVisual 1nV1sua11Bas1'c.
NET refersto theability to create .
A Co1ffmand11ne
whatclassofapp11cat1ons2 B.Graphica1User

250-
. . ?*-1.25
I 1 WWW 11101111
molMTOAMSC/WD'
Interface C. message boxes D Console E. InputBoxeS.
6. The main function. of the computer memory is .....5.,......? A
memorizingofpasteventsrB conversion of program C. conversio
1. lstorage of data D. translation of languages E. storage of data and
instructions.
The two main types of computer memory are ........ ? A. RAM and
ROM B Floppy
memory disk
and DiskCMajonand
Hard Minor
memory D. FlashDisk and Hard Disk E. Primary and secondary
memory. ,
Onecharacteristics of RAM 1s? A Volatile PermanentC,
. Durable D. Static E. Versatile B.
' Boolean was
Algebra invented 7 A.Ber11ard
by...... B
Booie
.CharlesBooléC.Kevin Boole-B Thomas
D.-George '
Boolé. _ Boole
What
gate has itsoutput
asalogic
1if and
only 1ftheinputs
tothe
are allinthe samestate? A
gate B. AND C. OR D.
ExNOR EX~'
OR B NAND.
- ' IfA=101andB=IOO toalogicgateandC=101,
areinputs isthe
ohtput.Whattypeof gateis represented?A. EXNOR B. AND C
OR D_.Ex-ORE.NAND. '_
One of the fpllojaving does not apply to a digital computer? A.
Speed B. Accuracy C. Reliability D. Versatility E. performance.
. -. The oldest known mechanical aid for computation is ?A. Analytical
engine B. Differenceengine C. Abacus D. Napier Bones
E
Wcavingloom. .
Robotics15technologiesof ...............computergeneration?
A. First B. second C. third D. fourth '.E fifth. .'
. 15. A storagedeviceusedwith the computer,made of thin plasticand
-
magnetically coated 15 called? A. Hard disk B. Diskette ;.C.
magneticdrum D. Diskdrive E. CD-ROW
16. l-Visual Basic. NET is a programming language development
by
-' ........? A. sun
MicrosystemsB. Apple Inc C. OracleInternational
Microsoft E. IBM.
' D".
IfAand
Bare toanExclusiveOR
inputs theoutput
gate, .7
is..........
A. A+B BAQ B C. At B D.A.B E..A+B.
'The data meant for future use are stored in .........?' A. Main memory
'.
memoryE
B. Minor Memory C Major memory D. Secondary
Primarymemory 1...

-51-
1.11!11111111111-
1111-1111010 11111g
of the
l9. One followingisnotanon-volatiie
memory.A. HarddiskB.
I ROM
1CD- C.Flash D.RandomAccess
memory E.None
Memory
.1 .- l ofthe
above. -n
b 20. VDU for........
stands ?.AVisualDispiayB.VirtualDiSplay
Utility
. Unit C VisualDisplay.Unit D. VisualDigitalUnit B..Visual
' _. DiagnosticUnit.
hardware
of various
21._ andcontrolstheperformance
.......coordinates
andsonare components that make up computersystem.A. -_
the
controlunitB.controls unitC.coordinates_D.,
'unit
# B.
coordinates/controlunit unit.
coordinating
22. Truthtableshowsthevariousstatesof 1nput and _ .
to logicvariables
'- statusofthe A. truestateB truthstateC.output '
thecorresponding
D. statusstate E input.- .

k. 24'.
23. Analytical wasadevice
Engine conceived
by
HolleritB. ChariesBabbageC.AlanTuringD JohnNapier E.
Joseph Jacuard. .

-L". p
'
Thespecial
feature
of third
generation wasthatthey
computers
were built with ..... as switchingelement A. Transistors B. 1
valves C. Integratedcircuits..D ,of above E.
.Thermionic ' All the
None of the above.

25: Another
' '. B. name
forHigh
Level 7 A.ManMade
IS..........
Language
General C. purpose executable
high D.Machine E
Compliant
Human Convertible. ~
One of the following 15 not a member 'of the set? A. ANSI B.
EBCDIC C. ASCIA D. ASCII E. Unicode.
27. The pictorial representation of an algorithm 15
. chartD.
chartB.FlowchartC Diagram chart E.
the above.
Algorithm Aliofq
I Use the program below and answer Question29-32
I. DimnameAs
String '
2. DimcurrentYearAsInteger=2012 - "
' - - .- ' -
3. ' .. DimyearofBirthAsInteger . 1
.3
a-\~ ..
1 '
4 DimageAsIhteger , 4 . . ,

S String
DimmsgstringAs
6 name=Inp'utBox(Please enteryouryearof b1rth)
In putBox ( Please enteryogiyear of b11th)
yearOfBirth=
=currentYear-
38e~ -yearOtB
irth
Hi & name8:, you are & age& yearsold.
mSgString=

:52-
[0
{mm M ~sIlnjvsvnm
mm-MTow MsgBox(msgSu-ing)
B. ' ',
variabiesin
28. ThefoHowingm-e thebrogragn A.msgString
except
' -
MsgBox c.gge D.currentYear E.nam§. .
39. ; Which of thesevariableswas initiahzedWlth a value on
'5 declaration.
A.msgStringB.InputBox Chage E.
D.cun'entYear
'
'
. Ifthe
30.
name.
istheoutput then
oftheprogram, m
.
theInputs
.
. '

figure'above
7 are? A. 1996 B. Jennifer,16
lines6 and Chinelo, C.1996,
3 - Jennifer D.Jennifer,2012 E.Jennifer,l996. .
Exercise

Hi Iannifcnyouué 16yam dd

31. _ Whichof thelinesin theprogramaboveproduces


theoutputfxgiu'e A.
' '
above A.1ine7 B.1ine8 C. line9 D.line 10 E.line 11.
, How does.the variable age get its 'values? A. Computation and
.32.
assignment B. input from the keyboard C. it has no value D.
initialization alier declaration - '
E. read from file .
33. (35),x(5),=(X),what is X? A.367 B.221C.327D.227 5.357.
34. A computer that measures discrete values is called A. (n)
....... .............computer. A.Micro
: B.Analog
, C.Hybrid IlDlgital
_E_.Dzscrete.' . .
Usethediagram
helowansWer 36and37._
questions'35,

g
m

a . .
,35.
. ' Whatlogxl'cgateis'ré
presentedb ' yg? A.AN D B. NAND
'
., NORE.Bum=r- . t CQR-D'
.
36.. _ 'Whatlogicgateis representedIm. 9 A.

. 2-31}: above
diagram isanexample
of ....... cifcuit.A.integrate
. C.
.1 onsecratgd conyerted D. compacted B.None ofthe above.
'
_ -53-.
UH»
-

1(1111
N...

(110111111110C0'111C11111
1111111111
1101011
.All there are common form controls'In VisulBasic. NET except
2

3. above. .,.
39: ............. -Acts as both input and storage device A. Printer B.
Scanner C. Wed Cam D. Keyboard E. Floppy' Wm;
40. Small highspeedmemoryunitsusedfor storingof intermediate
results are ...........
. Main memory E. Noneqfthe above. ,
'
1'4]. program.A Macromediafiash
Whichoftheseisnotanapplication
B MySQL C MS- Word D. MS- Linus E. Pagemaker. _
42. . The advantages(s)of high. !evel language as good programming .
languageas comparedto machine language Is / are ............. A it is
i .tediousto write B it is not machinedependent'C. It Is not time' -
. ' . consumingD. a,b, andcabove E. bandc aboye.
43.
' ' The central processingunit (CPU) of the computer is made up of
........... subunits. A.2B.3 C.4 D.5..E6
44. ............ is asingle user operating system? A. UNIX B. CPM C.
v CMPA D. SVMS E. Nonéoftheabove. .
45. The hexadecimal éqllivaientofU 100l100101.0),is ....? A. CCA B.-
'
..1 CAD C. lA7 D.ZEF E.DDB. .-
46. . is anexample of ........ ? "
(A_2+M*N2)/SQR(2)
'
A.Visua1Basic Expression B VisualBasic Statement C.
. VisualBasic Equation D. VisuaiBasic Language 13.None of the
above
'
.47. An example ofrepetition constructis ....... 7 A.IF B.IF-THEN C.
. CASE D. GOTO B. FOR- NEXT.
48. One of these is ah ini/alid va'riable name A. yearOfBirth B.
YEAROFBIRTH C year_ of_ birth D. year-of birth E. yearof
_ birth va
49. A combination of an AND gate and an inverter is equivalent 'to ......
.gate?A.ExlOR B.AND C_.NAND, D. Buffer E.ANDI.
50. One of the following is not true aboutalgorithm. A, It must have a
fine set B. it must have an initial action C. It must have a unique
successori6 each action D. it must be efficient and effective E. It
mustaiwayshavea solutiontoa problem.
E
1
(1111 MMMMM'M
MM MMMMMM
MMMMMMMMM
311? 1w;
GroupA. _'
o1uz1122_ 7"
H" 1
1,..+.rw
LD - Windows
Explorer'
n»! «I_
ll
13
2D - .
-Working:
Given: 1=>(X).1% W3group
(101111100) 1nto P,_
thenllfrlbers
blocksof3,andthen tobase10.1.1:
weconverteach
'
+0x2+1x2°:5
(101),=1xz
(111),1x2 +1x2 +1x2 =71 .
+0x2'-+0x2°=4
(100L"1x2 (101111100)
=(§74M
. 31C Working:
' . .
Step1: 1 scomplement=001~10011.'
Step 1tothe
2:Add lpast .~:
s1g111f10a111
fi1g1t.1e. ~
00110011
+" ..1\.-_'"
. . . ,' '(00110100)1
4.8~ -Processi11g
Power - . ' ' '
5.B Graphical.)
Userinterface
(GUI).
6.E -Storageofdataandinstructions. ' "
' ~
7.E -Primaryandsecondarymemory '. _ . ,
- '
8.A -Volatile 1
' . . '.. 1 1 . _.
9.D VGeorgeBoole .' . . _' ' 1 3 .
' - " '
10.A Ex-NOR . 2
11.3 ¥ANDgate
12.E -Pcrformance ,--.«- 5
- 13.C .-Abacus ' '
, ~ ~. _ . -
'14.E '-F111h . ' '_ '-_
.. '_ f'
15.3 ~Diskette« ..
MD > -Microsofc '.
--
17.13 ~A¬BB ..
l8.D -Seconda1rymen10ry . .
19.D ' l . '
-RandomAccessmemory
200 -Visual 1"
DisplayUnit
21.A -ControlUnit
22.C -Output . . .
23.8 ' ., , . . . t. .
24A -ChafleSBabbage' .
-Transistors .. _ ' _ _;
, .. .
-.. x."
,.

- -
~ss-.-
J
I h l ' ' '- "
! 25g A'L
It-Gegegflimpg ' ._1,..
10111Wffy111-
26:5 Unicode _ '
27.8 -Flouwchart
. - . - ' ' ~
,- 28.3 MsgBox .,
29.D- ~Currentyear - .' 3
30.3 . Jennifer, I996:
31D :Linelo - 1 ' - :
.' *
.,1-.. .
32D _. Initialisation
33.13
-Working.-_~
aairdécla'ftff
, .35. ' ~1-.-'-"' '
; x "5, .' ... . .
W=>B ~« :3 . "r
"
34.!) -Digital 13'
' ' '
35.13 -
.-NANDgaté
36.5 '-Butfer
'
w... '37.A -Integtatedcircuita
38.13 -Noneoftheabove
39.E '
'1. -Floppy _
40.'A '-
,3 ~Flipflops
41.D' ~MS- Linus '
' . -~
. 42E ' --BandCabove
" '. 3:"
43.8 -3 3 " '
, _ - .
44.B .-Numberisnegative 3.-:"-,". -
45A.
'
-Seelectu1-enote
(GetSerious). ) -. =131
46.A --VisualBasicExpression. .3 ..g: _.
47.13' -1011 To NEXT _- , 4 g .
' '- -' ' " ,- -
48D Year-of-birth ', 7! '
49.(-) NORG_ate
50.E haveasolutlontoaproblem
-Itmustalv_vays . ".:--. .. -

.9:-
NNAMDI AZIKIW E UNIVERSI'I Y, AWKA
MDEPARTMENT OF COMPUTER SCIENCE: FIRST 313mm
EXAMINATION 2012/2013 SESSION: CSC lOl-INTRODUC'IION
T0 COMPUTER SCIENCE AND PROGRAMMING THURSDAY
MARCH 21, 2013. TYPE A :< .-.'< .
INSTRUCTIONS: ANSWER ALL QUESTIONS, SHADE TYPE
ON YOUR OMR AND THE CORRECT ANSWERS ONLY; TIME
I 1?!
_ ALLOWED 50 MINS.
_1.
' VisualBasic.
NETisa(n)......... A.
prograrnminglanguage"
-code- driven B. logic-driven C event -dr1ven D. foxm- driven
E. all of the above.
is a single user operating system? A. UNIX B. CPM
...............

C CMPA D. SVMS 'E: None


. VisualBasic.
NET
enables ofGU1
.......... A.'MAD
applications?
B.DAR. CADRDRAD-ENAD.. -
'
. EBCDIC1s an acronym that stands for ................. .'
.......... ?
A. Extension Binary Coded Decimal Interchange Code. =
, B. Extensible
Binary Coded Decimal Interchange Code.
C. Extended Binafy Coded Decimal Information Code.
D. Extended Binary Coded Decimal Interchange Code.
B. Extensible Binary Coded Denary Interchange Code.
What is the number of bits that can convey 512 possible
'combinations ofinformation? A.10 B8 C9 D7 E. 6.
All of theseaie foundon theVisualBasioNET IDE except A.
Form Designer B. Solution Explorer C. Code Window D
Windows Explorer E Toolbox
.......13not an exampleof a hardwareport? A. PS/2 B.LPT1
C USB -D VGA E. AGP

(110011100),>(,19,=?w11atisX? A 474 B 234.


c. 334 D
"
574 E..634
'
What1s the 25 complement of (11001100)z ? A. 11001100 B.
00110011' C. 00110100. D. 100111011 E. noneoftheabove.
10. An advantage of supercomputer ov_erothers is ..... ? A. Purchase
Power C. Maintainability D Portability E.
Cost B. Processing
. All of the above.

'57;
'
.......... .. nuuulvum-IHIIIIHM uummu 1111 1

ll. The main function of the computer memory1s ....? A memo:


of past events B. conversion of program C. conversion/storage
data 'D. translation a_flanguages E. storage of data and mstmctions
12. The two main typeSfoilcbmputer memory are ......
ROMmemory B. Floppy disk and Hard Disk C. Major and Mmot
m'emoryD. FlashDisk anldHard Disk E. Primary andSecondary
:~
memory.
13. One 1nROM
ofinfomiation
characteristics IS? A.Volatile
B.
Permanent C. Durable D. non-Static E. Versatile:
14. Boolean Algebra was invented by ......
B Charles Boole C Kevin Boole D George Boole E. Thomas
Boole.
15. 1 What gate has its output as a logic 0 1f only if the mputs to the gate
are all 1nthesamestate? Ex-NOR B.AND C. OR D. Ex-OR
B. NAND.
A
l6. IfA= 101 and B =100 are inputs to a logic gate and C =10! is the
output. What type of gate 15represented? A. Ex- NOR B AND C.
OR D. Ex- OR.- E. NAND.
I One of the following does not apply to a digital computer ? A.
Speed C.Reliability
B.Accuracy D.Versatility
E.Pcrfor_mancc.
The oldest known mechanical aid for computation is '.7 A.
-Analytical en_gineB. Differencecngine C Abacus D Napier
Bones E.Weav1ngloom
l9. Robotics 13technologiesof computer genemtion? A. First B.
Second C. Third D. Fourth E. Fifth.
[0. A storagedevice used with the computer,made of thin plastic and
coated is called ? A. Hard disk B Diskette C.
' magnetically
Magneticdrum D Diskdrive B CD ROM.
1.: VisuaIBasic. NET is a programming language developed by
............ A. Sun Microsystems B. Arple Inc C. Oracle
Intem'ttional D Microsoft E. IBM.
12. ? A. CodeWindow B
A m theabovediagramrepresents
ExplorerC.Form ViewD.Control
Toolbox
E Prp
window. Design
23. . B 111
the diagram aboverepresents?
A Code Window B. Solution
93
«>_ C.Form
Explorer ControlToolbox
DesignView E Propemes
Window.D.
24. Basic
Viggal wasfirst 1n........
released ?A.1971 c.1916"
B.1981
D.1991 E. 1985.
25. Oneofthefollowing18notanon-volatile A. Hard disk B.
memory.
'CD-ROM C. D.RandomAccess E.None
Memory
ofthe above. Flashmemory
26. . ..... and
controls
Coordinates the
performance hardware
ofyarious
1 andsoftware thatmakeup-
components systemA
thecomputer
unit
Coni.olunitB cont1olsunit C. coon'inates '_ -
" E. coo.dinatingunit.
D.coord1nates/controlumt
-
..27. Truthtableshowsthevariousstatesof inputto logic variables and
of the A.t1uestateB. truthstate C output
thecon-espondingstatus
'
state. E.
D. statu input
23. Analytical Engine was a devicc.conceived by ...... ? A. Herman
Hollen't E. CharlesBabbage C. Alan Turing D. John Napier E.
JosephJacuardw
29. feature
Thespecial ofsecond
generation wasthatthey -
computers
. were bmlt with as switching element A. Transistors B.
Thermionic
valvesC Integrated
circuitsD. All of theaboveE
None of the above. , .
30. name
Another ferHighLevelLanguage
is....? A. ManMade~B.
GeneralpurposeC. High execdtable D. Machine compliant E.
Human Convert1ble
31. not a member of the set. A. ANSI
One of the following' 1_s B.
'
'EBCDIC. C ASCIA D. ASCII E. Unicode.
32. of an algorithmis .? A. Pictorialchan
Thepictorialrepresentation
B. FlowchartC. Diagram chart D. Algon'thm chart E. all of the
above. -
(A5).x(9).,= X?A.5DCB.34AC.SBAD BSD
(119;,Whatis
' E.SCD
........ measures
Computer 1alucs?A. MicroB.Analo
discrete
E.Discrete.
C.HybridD.Digitz_11

-591
l

.0 I diagram .eowtoanswer
l'.|-|" Illlll!l.Ull'H NHI-
"' "" l-t'IMH

Usethe
IA
36and
_ 35,
question 37.
m

,I

What isrepresented
gate
log1c byg?A.EX-OR
.B.NANDC.OR
35.
D. EX-NOR E. AND. .
16.
. -
B.NAND
Whatlog1cgateisreprcsentedbym
A.
EXOR C.0R
D.EX-NOR E. AND. «.1.
37. The
diagram ismanufactured
above' as.....
? A transistors
B.
diodes C. Integrated circuits D. AandB only E.A,B,andConly.
38. All these are common form contrpls in VisualBasic. NET
except. ..?A.Labe1B:TextBoxC:Bi1ttonD. allaboveE.none
above.
39. .....Acts as both 1nput and Storage device. A Printer B. Scanner C.
Wed Cam D. Keyboard E. Floppy
40-. Small high speed memory units used for storing of inte1mediate
resultsare.......? A. FlipflopsB.Co'ntrolunit
C. D.Main
memory E. None of the above. Register
41. Which of these 15 not an application program? A. Macromedia
flash B. MySQL C. MS- Word D.MS-L111ux E. PageMaker.
.42. The advantage(s) of high level language as good programming
-
language as compared to machine language is/are ..... A. It is
tedious to write B. It is'not machine dependent C: It is not time
' consuming D. A, B, andCabove E. BandCabove.
43. IDE is an acronym that stands for ..............? A. Integrated
Deve10pmentEmvironment B. IntegralDevelopment
Environment C. Incorporated Development Emvironment D.
Integrated Denegration Environment E. Integrated Development
Environment
The presence of extra digit 1n 2s complement operation method
signifies......? A. Error in operation B. numberis negative C
4'5.
. B.CAD C. 1A7 -D.2EF E.DDA.
46.
(A"2+M*N"2)/SQR(2)isancxamplq
91.11."?
-50-
s
I I II I 'I l

A.W1'sualBasxc xpress1on B. V1sualBasu: Statement C


LanguageE. Noneofthc
szualBasic Equatié'n D VisualBasic
above.
47. An example of repe£1t1on
construct is ......7 A. If B. IF-THEN C.
CASE D. GOTO E. FOR-NEXT
43. A yearOtBirth
Oncofthese1s/an1nval1dvariablename
B. YEAROFBIRTH birth
D year-of-
C.yea1'_of_b1'rth
E. yearofbirth.
49. . Acombination of an AND gate and an inverter is equivalent to ......
gate? A. ExOR B. AND C. NAND D.Buffe1' E. AND.
, 50. One of the following 15not true about algorithm. A It musthave a
fme set. B. It must have an 1n1t1al
act1on C.Itmusthaveaun1que
successor to each action D. It must be efficient and effective E. It
must always have a solution to a problem. -. -

Answers to 2013 CSC 101- BYOHMS: TYPEA.


-Event-d1'iven 2. A UNIX. 3. D RAD
-ExtendedBinary CodedDecimalInterchange
Code
'. Answer= 9 (EBCDIC)
Working:
From the relation, 2= 512
=>2"= 2: n= 9.
thus, the number of bits is 9 => C
"6D -Windows Explorer 7.13 AGP
3.13 Answer é (634)a
Working:
Given (110011100), => 00..
-
I Here, we group the numbers into blocks of 3, and then we
convert each to base. 10. i.e. -
. +1x2'+0x2°=6, (011),=0x2+1x2'+1x2'=3
(110),=1x2:
+0x2 +0x2° 4.
(100),=1x2
therefore, (110011100),-= (634). => B
9.c Answer= (00110100)z
Working:
'-Step1: 1'5c0111plementof(11001100),=
(00110011),
Step2: Add 1 to the result of the 1s complement Le.

-61-
NH 1 11111'
M WWI " W
'.111'1.11..-'.u.1111111
W
.- 00110011
+' 1 .
I

(00110100), =>c . 4 ; .
-
E
1]..
power Storage
1.013 Processing of dataand tions
10:33:" '3
memory 13-B Perma_
andSecondary
12. E Primary
_-14.D GeorgeBoole15A Ex-NOR 16-B AND Diskette _
C
18. 1913
Abacus 20
Fifth. 536 View ._..._
17. E
quformance'
M13FG§6R¬2«D~ .23C Fgm}
ControHoolbox A 'etrol D sign
217D
26 U1
24.D 199125.DRandom Memory
Access C9?..
Output28.B Charles
Babbage29.A
Flowcart
. 27.C
30.B 31E Unicode.32.BTransistfo
GeneralPurpose
33E Answer =.(5CD).6
_ Working:
Given A 5"s .= 10 '
.511
-. x 9.6 X 9I6
(s 12 13)

ihus, (5 12 13).. =(5CD).6 =>E


341D -D1'gital35.B NAND 36.(-) 37.C Integratedcircuits
38,E None of the above 39.E F loppy 40. A Flip F lops
41.D '-MS- Linux 42.E B ar1dC above
43A IntegratedDevelopmentEnvironment 44.B Number 13negative
~
45.13
' Answer=DDA.Hm/1mg wenoticed
G1ven(110111011010),, that in
base2. we
(11011101010)2
So, simply group the digits into blocks of 4 and then
convert each to base 10.
Le. 1101 = le + 11121
+ 0x2'+1x2° = 13= D
1101=1x2+1x2 + 0x2'+1x2°=13=D
1010- 1x2J+ 0x21+1x2'+ 0x2"= 10= A
DDA => E. '
:.(110111011010),=
46.A -VisualBasicExp1ession '
47.E - -FOR NEXT
, 48D -Year-of-birtl1
49.(-)
50.E - It mustalways
havga sol11tion
to a problem
'
~62-
v NNAMDI AZIKIWE UNIVERbl 1 1, AW M
DEPARTMENT OF COMPUTER SCIEN CE F IRST SEMESTER
EXAMINATION 2013/2014SESSION:CSC lOl-INTRODUCTION
TO COMPUTERSCIENCE AND PROGRAMNIING: Exam Date:
May05,2014.
Monday 50mins.
TimeIAllowed:
Time:3.00pm:
Instructions: - .
Attemptall Questions @133
(11). ,
i251".
Usethe diagram belgw to answer the next 4 questions:
h. a
- .- , .. «
11,... START, _

--
inputage

~ .. Is. '
Y"
l8 .- .4 . DisplaxYoucanvote!"
gagg=
"
\ N \
difference (18 - age ' '
a ,

+"more
QM] difference togo!.
years

STOP f
.
l. Theflowchart
above
1sdesigned a.area0?cifcles
to determine
b. perimeter of rectangles .c. eligible voters d. sum of values
e. average of numbers
2. If anage what
of25isgiven willbetheoutput?
a.Youcanvote!
b. You cannot vote! c. 7 more years to go d---7 more years to go

" 3. ' e. None of the above


avariable
ofthe,following1s
'O_ne 1ntheflowchart
a counterb.
age 0. side d. area e.per1meter
4. . Whichsectionof theflowchartcontainstheen'orthataffectthe
expectedoutput7a. Input sect1on b outputsection c._1
processingsection d. decision section e. no error
5. Who built the machine that was used to break the German
Wartimecodesa. Herman Hollerith b. Alan Turing _c. Charles

-63-:
Whig Flowers.5.John
D. TohI'my VonNeuman.

AB+ AB+ ACovonthat


Whatisthevalueof theexpression
A-I,B-o,c1..AAB RAE CW 1310 -
The ENIAGdesigners developedanothermachinecalle' .
A. Colossus B. 'Iuring Machine C. Manchester
Mark 1 D.
Whirlwind E. UNIVAC l.
The programminglanguagePascalwascreatedbyI. John Von
Neuman B. Robert Noyce C. Maurice Wilkes D. Niklaus
Wirth B. JohnKemeuy.
Fuzzy Logic was developedby A. Loni Zadeh B. Bill Gates
C. John Atansoff D. GeorgeBoole B. JohnMeCanhy.
III which University was the BlueWaterSupercompu:rreleased
in 2012? A. Nnamdi Azikjwe University B. Harvarl University
C. University of Illunois D. ImperialCollege B. Jambridge.
The project by the US Department of Defence that on'ginated the
Internet In the 1970' s is A. UNIVAC B. ARPANET C. TelI et
D. ENIAC B. International Network.
(X). ) 235 D. 243
10110110. What Is X?A. 312 B 266 C.
E. 234.
of (11001101),
Find the equivalentof the 1's complement
A. 110010B. 11001110C. 13.no :of
D:00110001
00110011
the above.
The era that was markedby integratedcircuitsandreductionIn
size A. 1stGeneration B. 2nd Generation C. 3 " generation
. D. 4th Generation E. none of the above.
Convert BEDE to binaryA. 1110001101011011
3.1111001110001100 01011111010101101
D. 1011111011011110 E.1010010010010101
The hexadecimalequivalentof 11001110111011,is ? A. CCAF
B. BCAD C. D4A7 D. AQEF 13.33813.
Convert 5B1,. to BaselOA. 1512 B. 1678 C. 1457 D172?
13.1334.
An extra digit In subtractionusing2s complementoperation
'method signifies one of the following. A. Invalid operation
B. negative result C. positive result D. spillovertesuit

-64-
11.511:
:11111'111111111111-
1.-11111111111415.1112]'.-
move.
E, nqne of the
3~19. . In performing the operation110.001,- 10.11,,the 1s
complementof the subtrahendwill be A. 0101.110,
"
B. 101.001,
. C. 0101.111, D. 001.01, E. 1001.010,
" 7" 20. Convert 45.125" to octalA. 55.1I B. 55.01I @551. D.
55.101, 'E. 45\.125..
211? FEED, BED equals A. F3, B. BEED C.,FEB.5 D. FED
E. F300,. ._
22. . The octal equivalentof (84.,- 100100,)isA. 64 B. 36 48
D. 60 E. 75
C.
23. One of 1=ses was part of the team that designed the ENIAC A.
Alan Turing B. John P Eckert C.11 _. Atanasoff D. John Von
'
Neuman E. Jay W Forrester
-_24. Booleari algebra was developedby A. Kelvin Boole B. George
Boolean C. JohnKemeny. D. GeorgeBoole B. JohnBull.
..

'
1._Usethediagrambelowto answerthe_
next4questions.

_p
.q

'61;
m

.ED'
below
ofthelogicgates
Which appeared above
inthediagram
25. .
A.BUFFER B.NAND C.X-NOR -D.OR EINVERTER
26. - -Whatwill be theoutputof theNORgatein thediagram?A. ETC;
:B M C p+q D 13(p+q) E peq
275 -Theinput variable(s)1nthe diagraminclude(s)A. only p B 0111"
.'' pandq C. onlypandq D. p,q,pandq E onlys
28. 'Theoutputof theAND gateis an input to which gateA. OR
B. INVERTER _C.EX--OR D. NOR E.NAND
i

-65-
In {111111.1111.2,-:11. 111
1/ 1-11111111
29. What 15the resutofA(B+CD)+1 given thatA=1, B= 0 .3
D= O E. B+CD
30. IfA= 101 and B- 100 are inputs to a logic gate and C '- 101, is
the output. What type of gate is represented?. A. OR B. AND

ll C. ExNCR D. Ex- OR B NAND


Consider p= 0011 and q= 0101,..what1s the value of (p q)?
:I A. 0001 B; 0011 C. 0101 D. 1100 E. 1000
32. Which logic gate does AEDB represent?A. NAND B. EXOR
C. EX-NOR OR E.1NVERTER.
D.
.
33. ____&_. toDeMorgan
Accordin A. (B+ C)Isequivalent
snJJe to
A.A+(B.C) B.A. (3+0) C.A+B. c D. (A+B .-c

I E. (11+ 13. C) -
An outlme of the step-by-stcp approach to solving a problem IS .
'34.' referred to as A. a flowchart B. a module C. an algonthm D
'a documentation E. a program.

belowandanswer
Usethepseudocode the,next3 quastlons
u.

1 Algorithm Start 1_.u

2 Get thelengthvalueinto .
3 length.
Get the width value into width
*
4. perimeter + (length + width) 2
5.
'
area (1ength * width
- 6.
Display perimeter .
7 Display area
8 Algonthm stop

35. The psegdocodeabove is designedto compute the areas and


B. circlesC.squaresD rhomb1
ofA rectangles
périmeters '
E. parallelograms.
36. Whicn of the threecontrol structure is/are shown 1n the pseudo
I code above? A sequence and selection B. selection only C.
::iteration D.sequence
andsequence only E.1terat1on
only
one of the following is NOT a variable in thc,pse11docodc

766-
'
11.-mnmw .11mm .11 111111.11
1.11. ~
A. length B. input C.widt11_.D area B. perimeter
38. In algorithm design, the focus on how the program should wmk
dealswiththeA. variabledeclaration B. functional specification
cggbnccpt mlysis D. primary duty E.architect'ura1design 12.:
39_.. The use of one selection or repetition constructinside another is ,
referred
tobasA.doubling infusion 1'F'ing- nesting
E.concate.1ation.
B. C. D.
of an algorithm"13A.Pictoria1 chart
Thepictorial representation
411.
B FlowchartC Diagram chart D. Algorithm chart E. Logic
chart.
twomain
The ofcomputer
categories areA RAMand
1.:emory
41. and Hard disk C.Prima1"y and
ROM memory B Floppy 1113!
secondary Diukand E Majorand
memory_D.F1ash
Minor memory. BardDisk
42.
' One characteristics
major ofRAM it isA.StaticB
isthat
Permanent C Durable D Versatile E. Volatile.-
43. - One 01:11: following 1snot a non-volatile memory. RAM B.
'
CD-ROM C. flashmemory D. memorycard E. none of the
' above.
One .15
ofthesesNOTafimctiohal
unitofthecomputer
system
A. controlunit B. input unit C. processing unit D. memory .

' unit E. output unit.


. When was theAnalytic
C. 1937 D.1737
Engine A.1847B.1747
developed
13.1837 .
of (110011001010),1s ?-.A QCA
The hexadecimalequ1vale11t
'
B.CAD C.1A7 D.2EF E.DDB
'47. A tersenatural languagedesc'ription of an algorithm 1s referred to
'
asA.aflowchartB.amoduleC.ana1gorith1n a
E a .D'
pseudocode program.
48. I'he selection
ofone
use orrepetition
coilstruct
inside 15
another
B.infusionC.
toasAd'oubling
referred w
D.
E. concatenation.
nesting pairir
49. The 1nflowcharts
symbol
parallelogram A.adecision
1epresents
B. aprocessC.anite1ation D.input/output E. termination.
. One of theseis not an exampleof a web browserA. Internet-
. _B.IntemetExplorer
C Firefox
Mc-zilla
E.Safari
D.Opera

~67-
V
rsm2014CSC101.1For UntzikStudents-
e 1;,-M, Ohm m_

i; section
5.
B
Degsiop 3
B
£2;:Agc
A1an
Eli 'ble Voters 2. A You can

-
.3

Working. . _ . .-
6.D
G1venAB+AB +AC 12.5..
WhereA= 1,B= 0de= .
1-'
. thus,AB= A.B=l.=0 -.
. AB= O(FromANDtruth
AB1-.1=1(From
AND truth '
AC=A.C=11=1
table)tabl'e)
' (FromANDtruth
AB +AB +AC= AB+ (ABtable); 0 +
:therefore,
=0+l= +AC) (1+1)?
.- _ l(FromORtruthtable)=>D-- . .
7E UNIVACI 8.D NiklausWirth 9.A Lothadeh
C University
10. ofI111n01s
. =
11.13ARPANET
12B. Workingr ,
Giving
00,-)10110110
_ ,
" "l; 7 ' _:'
Where
10110110: thenumbqs
,Now,weg10up
=0101101102
_: '
into blocks of 3 and then convert each to base 10 1.e .'
"
010= 0x2w+1x2 +0x2° =;2 110,=1x2-'1:-1x2 +0x2°=6
'
- 13.A
110=1x2+' _1x2
Working:
Ox? 6; L;10110110
=266
='>B
"
'
" Given(11001101)1 1n'1s complement
, Generally,
change every 1 s to zero and every 0s _to 1;'
=_110010
=>A
We -
Oper_ation,
. ~ , f
A
' i r. * ..-
.i.
thereforez
(11001.101),=
1' h 00110010
- 14.C 3rd Generation 1 . - ..
"'15.D Working:
- I ; Given BEDE,; -) binary
(base2)
1 First,weconvertto basedecimal1e - ,.
'' Bxl6J+Ex16 +Dxl6+Ex16°
BEDE,,= ..
=4886219
Next,we divide 2 1.
e
by . . .
48862.9

r ':

......s

.
_ _
-68- .5 l;_
.48862 51

Lng
24431110
12215111
.115"
6107R1
3053111

NNN
1526Rl
.763R0 -
381R1 . .,
190111 .
95110
47111 -
23111
11111.
5111. -

- - '
1110 .
-~ =1011111011011110,
0111
'
therefore,BEDEm-1011111011011110 =>D
..16 E _Working:
Given wegro11p
,Asusua1,
11001110111011, the
numbers
into
2 ' blocks of 4 and then convert each Ito base 10;
- Butnotethat11001110111011',=001100111
0011, '0x2 + 0x2z + 1x2I + 1x2°= 3 '.
'.
0011 =0x2 + 01121
+1x2.+1x2°= 3
. 1011=1x2+0x2+1x2'+1x2=11=B
1011,=1x2 + 01121
+1x2'+1x2'=11.= B
.. 11001110111011$333353.
" .3,. . .-t'1
.
17.C Working;
Given 5B1s > Base 10
1.1:5131,,=
5x16+me' + ='>c
1457
-.18C Pos1t1've
., 1x16°=
result '
19.(-)Working:G1'Ven
110. - 10.11,,1116
001,
its1s
therefore, - 00,s111:-1ahend13
Icomplgment01. =>(-)
-69-
-IIIWIHIH ,I .'
. 0,A Working:11LIII II VIll . ' I I
d
Givén 45 .125" (X). .
The wholenumberpart (45)'1sdivided
by the base8 and the
remainder bewmes the answer,while the decimal
part (0 124) i'
' ' multipliedby .6 base8
'
andthecarryoverto integershouldbe
written as the answer. ' -
'
Now, lets go! .
Jatr-
J

. 8 45 .1 . and 8x0.125=1.0=1
. 8 5R: '- .
' .8xo.o='o.o=o
.. , .ORS =10=1
-
. , =55' .,
theanswer=
therefore, '
21.15 Working: . (55.10...),=>A
.
GivenFEED, BED,;ButB=1'l, D= 13,B=1'-'.,F=15
thus, we have 15 14 14 1315
- - ' -
, 11 14 '13.,
-3 15 3 o o- j=F300..=>E

221; Working:
~ Given -100100,'
84,. ,First,convert
we_ tobase
100100 10
' 1:: 100100 =1x25+0x2 +0x2 +0x2°=
-36,.
II: vs, 84.,- 36,0 48,. +1x2z+l0x2'
..
prt, we divide 48,0by81.e ; ' ;

8. 48"
_ 8 6R0
OR 6 .
. = 60 => D
PEckert24.
23.8-J0hn Boole25E INVERTER
D George '
, '25.C p+q 27.D 28.CEX-OR
' ' 29.C Working: , p,q,pand'q
GivenA.(B+C.D)+l;WhereA=1B0,C=1,D=0
"thus,
Wehave;1. (0+0)+1=1.(0
(O+1.0)+1=.1
o+1=1=>c
30A .ORgate '.

.7701,
WIWL-Ilmn
1141
11111-11
J'lHH
WW
31E ng :Whetep'i
(p.q); Ia
0011;~>p~11008ndq::.0101
q
E1"'91ng
0;tfterq/ore,(p-.
en

.q)=10001¬I-, l,

nauL-a-u' _
. .
x

'Pq(Pq)" Law"?
'12,,

0
1
1 okc
CSOH ..
1,5
Answer=lOCC'=>E-.,
_

-
32.13
.EX-OR ('3) 34.0Analront1n
3.13A'.(13-. ' -'
35A .-Rectangles1'3we
;Forarectangle ..
(3) wea=basc(w1dth)xhe1ght(16ngth) haye;:' "a- .'- .

(b) Perimeter= 2(l+b) '


36D Sequeme
only3.7B Input 38.A Variable
deélaration
39.11 Nesting 4013 Flchhart 41 c Primary and Sewndary
42.13 43.A 44.A Unit
11513- $311710? Vc11atile.
i I .R-AM Control
"' -. H ' l
4§.C Working: A
-' ~
'_ G1ven(110011001010),1e'.- "M.
-1100=1x2,+1x2+0x2'+0x2°=12=C
..- 1100 I
=1x2+1x2'.+0x2'+0x2°=12=C:
1010 =1x2.+0x2. +1x'2' +0x2°'10A
-
therefore,
47.DApseudo (110011001010)-
=CCA=>A I .
code Nestin
50A .. 48C -g 491')
Input/Outppf
Inter11et

.
-7'1;
.-u. ...u1| H H 11!
ll

11; W m- "1-.
In I

3.
Time:
2015.
00pm
Apnr . ll
Time
50m
NNAMDIA 1 [WE UNIVERSITY,AWKA

10th
SCIENCE:
OFCOMPUTER
pARTMENT FIRSTSEMESTER
SESSION:
20l4/2015
PMINATION CSC HON
lOl-INTRODUC 1:
ExamDate:
SCIENCEANDPROGRAMMING:
T0 COMPUTER
(a).Attemptall Questionsandshadethecorrect
InstIUCtions:
only:
1mswer Name: No:------
---Reg ----- Department:
Two common coding systemsare? a. EBCDIC andASCII b.
1.. ASCIIandBENSCII- c. EBICIDCaiidASCII d .BASICand
e EBCDIC '
EBCDIC andACSH
The first addingmachinewasfoundedin1642ADby?21.Charles
b AlanTuringcBlaisePascail~
d.Abraham
Lincoln '
Babbage
e. Early men
ISa-----generation

k1
TheENIAC b.Second
computer2@l-irst
. 0. Sixth e Third
d(Fcurth
-------- directs and coordinatesoperationsin computer?a

c. ALU
b,ThcControl
Registers
---------
'
Unit c.Inputdevices(1.Humans
isnotfu.ction
ofthecomputer? b.Processing r$
'-
tn
a/Input
.
0 Output @Memory 6. Storage .
oneofthefollowing
Which isnotanauxiliary
storage?
@Hard
'
disk b, Floppy Disk c. DVD ROM (1.FlashDrive 6.
Memory card
-------is not an input device?a Keyboard b. Touchscrccii c.
-
Mouse d, Sensors 6. Card reader
One of the following 15not a part of the computerkeyboard? a.
keys b.Cursorc.CAPSlock .d Space
Function bar 6.
Shift
key .
Ananalog- to- converter
digital (ADC) translates-----
waves
digital measuringcomputer can process?a. Video b. Lightintéy'
,._
Sound d X--rays 6Radio
10. OMR means?a OpticalMedia Request b.0ptica1Ma1k
'
Reader
c.Open
MarkReader
d Open
media e.
Request
Optical Method Reader
11. is?a Read
ROM Open b Volatile
Mcmbry ofmetal
c.niade
b. Not usedby computer QNone of theabove

'
-72-
. 1 1111...11111.-
:11 .11,111111111.
111.1 '
1121-111
Iris
recognition is
system atype a.
01'?Biometricb.
input
output c.D1gIIalou1putdDigital Biometnc
Biometric
Biometriccomputer
.6
----isnotacomputer?Thermometerw
b'. oven
Microwave
c. SamsungSS drcagtachometer 1:.Analog Television
One 15NOTanumber
ofthese system?
a:BinaryWenary
- c.0cta1 d.Decima1 e.1-1exadecimal
$.14
15 'c10101,d.10011
1 I e. 110001,
11001b.10011,
25,.=?inBinary?a.
1 16 . 101011,
?1nbaac 10a 43.. b. 32,. c. 47;. d. 53, 13.34,,
" 17. 705= ?inbase2a. 101000101, b. 111000101, 0. 101010101,
les :- d. 11110010011, 1:.01011000101,
1111'1"310115315 230
-?..a.1234.. c4D2..
1111323.. d P 5D2==
19; =?, 1327 b.1325 1237 :CZ-s
1011010111, a.- c. $1528, e. 7324
20. ZBB.=?,211010111011, c.010111001,
-b1010110011,
d.1011110011,
0.1010100011,

1
21. Z= 1.2"! What1sthevalueof Z 11'the 1nputsareX= 0011' and
1000b.0011..c0101 .d.0001 e'.0010
Y= 0101?a.
22. NAND gate b. OR gate. 0.
The figurebclowrepresents?a.
' XNORgatee.NORgate
XORgate'11.
Q).
23. If theinputs X= 0101andY= 0011aremadeto.thelogic gaie'
a.0101 b. c. d. 1010 e.
abovewhatwi11Zbe?
' '' - 0110 1001
1000
2A. 23complement
The number
ofthe8bitbinary 15.?
00001110,
11.
111010010, c.01010011,(1.11111001,
b.11110010,
e. 110010011,
that~(X.Y)=-'X + 'Y1s?3, Idempotent rule
-2s.' . therulewhichstates
rule c. Involutionrule d. Simplif1cation rule
b. Absorption e.
DeMorgan' S 11119.
26. Whichof 1hese1s a problemsolvingtechnique?a.f10wchart-
balgorithm c Pseudocode d. a, b andc e. none of a b & c
27. Whichof theseis nota flowchartsymbol?a.Ova1 b Square
1:.Diamondd.para_11e10gmim
e. circle
28. Acomputerprogram represented1npicture format 13called a?

.73..
h ' ll N"H .1 MNL J. VII .H'nlM ,Softwarc
. .. a.Code
homo c-Algqrithm
29.' OOPLimplies?pObjecthgcntcd Vl°w°iagdLaengu
1' b.0penOriented c.0135.
Programmmg J Programng
Prograrélgmt
'
Linksd. 6 openObject
'_
ObjectOriented-PgrsonalL_anguage ,
ELI...
PersonalLapguage ~
30
, VB.NET Pro rams are bre'atedwith the use 0 fa softwaretOOI
called
an?a.Igntegrated
data'Environrnent zbIntegratiiivol
DevelopmentEnvironment c.-Imegrated
d. InterpretedDevelopment 6. Interpre Data _
Developmertled
Environment
Environment ~ , ', ' -
.
31. TheVB.NETstafement:
DimOBIAsIntegeris?aA declaration
b. OpenStatementc. Beginning d. Remark,
' ' Statement
' '
e.Keywordstatement
32. ----- is_agroupof related . H_, -,~ j:-
files,suchascodeandImages(hilt
makeup a programin VB.NET? a. Fdrm b. Window
~ ' Qypioj CCt
d. Product or Event .. - . .
Usingthefigurebelowanswerquestions
33 to 37

33.

34.

35.

36.
' ~I: nllh wmm- l Iml 35
tft nu HIM .u! 4.1!.
exploml', d. Cu ne Explore e none of the above
The part labelledaE is? a. Prgpexties Page b. Properties
g

3 H.
Windows c. Properties form d. Solution Window e. none
Which one of these'15not a VB. NET event? a. button b.
c.mouse focusd.timerse.mouse clicks 'H
Nkeystroke§ andUndggm.
Which pairis a featureof OOPL?a. Encapsulation
b.Procedures
capsulation andPolymorphism c. Encapsulatioh
andPolymorphisme
d. Undercapsulation
andPolymorphism
All of the above
40. ISusedby VB. NET for decision
Whichone'ofthefollowing'
a. 60 T0 b.1F-THEN-ELSE c. BRANCH d. EXIT
making?
e. JUMP
4|. One of theseis an invalid variable name for a VB. NET program?
a. yearOfBinh b.YEAROFBIRT1-1 q. year_ of_ birth_ __
-birth e. yearotbirth
(L year-of-
42. of extradigit.in Zscomplementoperationmethod . __
Thepresence
signifies? 8. Error" tn operation b. number is negative c.
numberis positive d. All of the above e. None of the above _
43. Whichof the following is not an Application software? a. MS
Windows b.-MS Access e. PageMaker d. MS Excel e.
Photoshop
All theseare common form controls in VisualBasic. NET except
---? 8. Label b. TextBox c. Button d. radio button e. TV
button
45. computer measmesdiscrete value? a. Micro b. Analog
c. Hybrid d. Digital e. Dicrete
-- is not an example of a hardware port? a. PS/Z b. LPTl
0 USB d. VGA e. CPU
47. VB.NET is a(n)--dn'ven PrJgramming language? a. Code
b. Mouse c. Event e. Method e. Logic -
48. The Joystickis an example of-u-device? a. Writing b. Input
c. Outputd.pointing
device e. Joyousdevice
49. A combinationof an AND gate and r verter is equivalent to --
gatc?a. Ex-OR b. AND c. NAND- d. Buffer. e. NOR
50. IF-THEN-ELSEisa w-Programmingstructure?a. Selection
b.Repetitionc. Iteration d. Choosing.e. Looping
-
g

-75.
m I I1"55.1.1-mn'7llllllIII'UUHI'1",]
0 m"
WW,0qu 1 S 101ForUnikSIudm -K h
ASCII 2.
BCDICand 5D C Blaise
Pascal3 A First
6.A
Thecontrolunit Memory Hard disk 7 D Season
9.C Sound
(\urSor
Markreader
optical MarkRecognition).
(orOptical TheOMR1:
of gettinginformationfromhuman
theprocess beingsby
markson a
recognizing document.OMR15a scaunc. Cm reads
on areas
marks SPCCifiC of the page None
11.15 of the above
computer13.A Thermometer
14.B ' .
Biometric De'r1ary-
25m) 00,, thus,we have "
Working:Ob_serve
25 . » - "
12R1"..',"«: -

NNNNNN
6R0 :.--.- ' '..:."":
3R0.'.--.- - -:-,-:
1 R1 '. -
'
.0 RI '
therefor'e, 25,,- 11001 =>A.

16A: Working:Given 101011 -> (X),. , thus,we have:


101011= lx2+ 0x2 +1x2 + 1x2+ 1x2'+ 1x2=43..=>A
Given705,,weconvert705,to base10.i.e
v.

Working:
705 7x8 + 0x8'+ 5x8"=448 + 0 + S=
= -453..
.
Next, we convert453..to base2. i.e.wehave ,-

2 453
2 226R1
2 113R0
2 56 R1
2 28RO
2 14R0
2 7
7R0
2 3R1 . . .
-_ '
2 1R1 ~_ . l g
2 0R1 _ r
=
1110001012=>B ,

-76-
*__

3 111-11
:1 .111
1111;st .111.1.-.
$211,121,th 11111111
11., g
' 3"
6%,, 1234..= 16 3" 1234 '
:6 .6;
M
16 77R2
16 . -
411131
R4 >c
. 4132 4132,,
Working
Here,we groupthenumbersintoblocksof 3, andthenconyert
'
. eachtobase101e1011010111,500101101011,
'
41: rhus,001,=0x2-°+0x2'+1x2 =1 9.
(32:, .1 -o11,=0x2'+1x2'+1x2°=3;111,=1x2'+1x2'+1x2'=7'
base '
Working:First, we convert to 10;

.3: i.e2BB,.=2xi6+Bx16'+Bx16°=699nI
Now tobasc21._.-e « .,
weconvert
. 2 699 _ ~_
g. 2349111
2 174111 "
33:
q!
4 ..

4 2 ,87R0
§ 2 '43R1
, 2' 21111 e
1' ~2 ~10Rl

g "2 5R0
; 2 2 R1
'
2 - 1 R0 ,
0 R1 =1010111011,=>A'
'-

Y=
0011,=0101; =1?Y-Applythé
ButZ=
21AWorking:Gi'ven;x=
wehave. r- - .
ANDgar;formular,
'
x Y x Y z=x.Y
O .O l 1 __1
O 1 1 0 0.
0 .4 ~' -
1 0 ,0 l
..1 l . 0 0 -0 =>A
.zAnswer=1000

:22,DXNOR
gate
' ..11.1.-:1 .1111
'11-.1/11111 11.
11111.11- w
23_C Working:
Given X = 0101, Y = 0011; Apply JOQOR& OR gates,we have
4 , 3711'
Lvuii"

XY2?><.Y 17.x XY+'. ,


0,9 1 1 o o o 1 ,g-
, 1 o o 1 o 1 1 o
o 1 1 o 1, o 1 o
1 1 o o o o o 1

24.3 %rking.-G1'ven 00001110,, its 1 s complement


11110001,
+ 1
11110010, =>B

s11116
25.E DeMorgan 26.D a,bandc 27.(-) 28.D Flowchart
2911 Object Onentcd Programming Language
Integrated Development Environment 31. A A declaration
32.C Project 33. E Form Designer 34. C Toolbox
35.13 Solution Explorer 36. E None" 37 13 Properties Windows
38D Timers
39.C Encapsulation& Polymorphism. Other features of OOPL are
Inheritance,Data Hiding, Overloading & Reusability
40.3 IF-THENELSE 41 .D Year-of-birth. In VB.NET, the hyphen is
not allowed 42.3 Number is negative '43.A MS Wmdows
44.15 TV button 45D Digital 46.15 CPU 47.C Event
48. B Input. The Joy stick is an input device that allows the user to
control a characteror machine in a computer program -
49.C NAND 50.A Selection 1

-78-'
1 71 1..) :1. ~
11111211.;
u 7101.111
VNANH)IAZ-r l C VB UNIVERSITY, AWICA
DEPARTMEN T OF COMPUTER SCIEN CE: FIRST SEMESTER
EXAMINATION 2015/2016SESSION; CSC 101-INTRODU CTION
TO COMPUTER SCIENCE AND PROGRANINHNG THURSDAY
SaturdayJuly 23, 2016. CEP
erall Questions
(g)Answ
IVSTRUCTIONS' Shadethecorrect
Answer: sheet:
ontheOMB (b).TIME. .50MINS.
ALLOWED:
1. NET' ISa(n)
VisualBasic. programming language? a.
b.10gic-drivenc. eventdriven d. form-driven
code-dnven
e. :11of the above
No commoncodingsystemsare found m computer systemare
?a. EBCDIC and ASCII b. ASCII and BASIC
c.EBICIDCandASCII d_.
ABSIC andEBCDIC e. EBDCICand
'-
ASCII.
is a singleuseropeiating system?a. U\IX b. CPM
c. CMPA d SVMS e. None. _
is the number of bits that can convey 512 possible
combinations'ofinformation7a. 10 b. 8 o. 9 d. 7 e. 6-
is not found on the VisualBasic. NET IDE? a. Form
Designerb SolutionExplore c. Code Window d. Windows \

Explorer e. Toolbox
isnotanexample
ofahardware3..PS/2
port? b.LPTl
c. USB d. VGA 3. AGP
a 474 b. 234_c.
(110011100),§(X),=?WhatisX? 334
d. 574 e. 634
WhatISthe 2 s compiementofU1001100),? 21.11001100
b..00110011c 00110100 d. 100111011 e. none oftheabove
An advantage puter over others 18
of supercom ...?

a Purchase power c._Maintainability


Cost b. Processing
4:.A11of the above.
d.Por1abiiity
M. .. ' t
. k . - .-

f16wc11art
The 3ymboi 1<
1ab¢1¢d
iepiééenté b Daemon
a.Process
'
-79-
11111111111111
.111111111 I 111111-
111 11:11.11
1:Terminald.np11t/Output e. Pageconnector
Thetwémaintypesof computer
memoryare~ . 7
a.RAM andROM memory b FloppydiskandHarddisk
c. Major and Minor memow d.F1ash diskand harddisk
e Primaryand Secdndary memory
is the characteristics
of information1nROM? a.V01a111e
b.Permanent c. D111ab1ed. Non-Static e. Versatile
. .Boolean - ? a.Bema1dB001: 1
, 13. Algeb1awas inventedby
b.Charles
Boolec.Kevin", Boolee Thomas
Booled.George
O

Boole. , '. -
14. Robotics
18 of computei
technologies afirst
Eenerat1on?
1).second c. third (1 foun11.e 111111 _
15. What hasitsoutput
gate asalogic to
0ifandonlyiftheinputs
thegatesmeall in thesame AND_c: OR
a:Ex-NOR 13:
state?
d. Ex-_OR e. NAND
16. IfA - 101 and B- 100 me inputsto a logic gate and C-" 101, is
theoutput.Whattype of gateisrepresented?
a. Ex-NOR b. AND ,
1:.OR (1.Ex-OR e. NAND "
'
17. doesnotapplyto a digitalcomputer?
Oneof thefollowing
._ 11Speedb. Accuracyc. Reliabiiityd.
VersatilitygPerformance-
18: ' is theoldestknownmechanical
aid for computation?
b Difference
Analyticalengiue engine1: Abacus 5!.Napier
'
Bones e. Weavingloom. :
19. A storage usedwiththecon1p11ter,u1ade
device of thinplastic;
& ,;
magneticallycoated'1sca11ed?
a.1-1arddisk 1).Diskette
c. Magneticdrum d. Disk drive e. CD- ROM .
NET1sa programming
VisualBasic. languagedeve1opedby_ 7:
a. Sun Microsystems b.App1111c c ' '
' Oracleinternationai
d. Microsoft e. IBM
If A and B are inputsto an ExclusiveOR gate, the output is_-__ ?

a.A+B b.A®B-x. AB e.A+B


c.AiB (1.
except'___ 7 3..Integrated
The listeditemshaverelationships
circuit b Thermionicvalve 0. Diode d VaCuumtubes e. None
b 1981
V1s11a1Bas1cwas1"1streleased111__,__,_.__?a1971
c. 1975 d. 1991 e. 1985 '

.30.
H 1 M. -m: M V m1!- 1 n.
24. One ofthe following1i; _nota non-volatilememory.a Hard d1sk
b. CD- ROM c. Flashmemory d, Random Access Memory
' 9. None of the above

25. Analytical Engine was a device conceived by 7 a. Herman


.Hollerit 1:. Charles Babbage c. Alan Turing d. John Napier
'
e. Joseph Jacuard
'
26. coordinates theperformance
andcontrors ofIvarious
hardware
andsoftware thatmakeupthecomputer
components
system.'a. Control unit b. Controls unit c. Coordinates unit
d.Coordinates/Controlunit e. Coordinating unit.
27. Truth table shows the various states of input to logic variables
and the corresponding statusof the a. true state b, truth state
c. output d. status state e. input
. '28. Thespecialfeatureof second
generation wasthatthey
computers
as stitching element. a.Transistors ,
Iwere built with
.b; Thermionic valves c. Integrated circuitS' d. All of the above
e.None of the above
'2'9.' Anothername for High Level Languageis ? a man made
b. General purpose 0. High executable d.Machine compliant .
e. Human Copvertible
'
30. enables
_VisualBasic.1NET of GUI applicahons
a.
MADI
b.DAR c.ADR d..RAD e.NAD
31. . a. ANISII b. EBCDIC
1sIa standardencodingscheme? I

'
c. ASCI d ACSII e Umcoda
32. of an algorithmis
The pictorialrepresentation .? a. Pictorial
chart d.Algorithmchart
chart b.Flowchart c.Diagra1n
. c. All of the above.
33. r 1s SDCb.34Ac.ISBAd.BISD
X721
(A5),,x(9),.(X).,
e. 5CD
34. __computer measuresdiscretevalues? a. Micro b Analog
1:.Hybrid d. Digital e. Discrete

Usethediagram
toanswer 35,36and37
questions
m
, ii iii 11! M.- "!£11111'11111'-111"111111
35. What logicgate 15representedby 2? a. EX-OR b. NANDL OR
4}? d. EX- NOR e AND
36. What logicacats is representedby m?_a. EX- OR b. NAND
1: OR d. EXNOR e. AND
37. The diagramis manufacturedas ? a. transistors b. diodes
c. integiagedcircuits d. a and b only e. a, b and 0 only
38. All these are common form cdntrols in VisualBasic. NET except
?a. Label b. TextBox c. Button d. all of the above
e. none ofthe above
39. actsas both input and storage device a Printer b. Scanner
Web Cam d. Keyboarde.Floppy
'c.
40. Small high speed memory unitsused for storing of intermediate '
results are ?a. flip flops b.controlun1t c.
d. main memory 6. none of the above -- register
'.
41. Which of these 15not an application'progiam? a.Macromedia , .
flash b. MySQL 1:. MS- Word d. MS-Linux e. Pagemaker 1'

42. of highlevel languageasgoodprogramming


The advantage(s)
language as compared to machine language is/are
a. It 15tedious to write b. It 15not machine dependent c. It 15not
d. a,b andc above3.b andc above
time.consuming
43. IDE IS an acronym that standsfor ? a. Integrated _ ,
Development Environment b Integrated Development
Environment 'c. Inco1porafed Development Environment
d.I11tegratedDegeneration Environment e. Integrated
Development Environment
method
The presenceof extra digit 1n2 s complementOperation
s1gn1fes ? a. Error in operationb. number 15negative
c. number is positive d all of the above e. none of the above
Thehexeidecimai'equivalentof(110]l1011010)2 is ? .
a CCA b. CAD c. 1A7 d.2EF e.DDA .'
.(AAZ+ M*N"2)/SQR(2)
isanexample
of - ? a. VisualBasic
Expression b. VisualBasicStatement c. VisuaiBasicEquatmn
d. VisualBasic Language e. None of the above
' '
An example of 1epetition constructIS ?IF b.1F-THEN
47:
c. .CASE d. GOTO 3.8 FORNEXT
48. One of these 15an invalid variable name a. yearOfBirth
b. YEAROFBJRTH c. year_of_b1rth d.year-of--_birth

-82;'
'11111 m . .111I11 - 1111I111111'I'111111111i
.mmu
'
e.yearotbirth ..
w; 1:111,
ate'15theequivalent
of acombination
of an11mm
AND b.ANDcNAND
1311.011
gatéstra. a Buffer
e1%?
50: . . One
ofthefollowing
13nottrueabout
algorithm
set b. It
11.1tmusthaD e
f mte musthaveaninitial actiori 00 musthavea
uniquesuccessor
to eachaction d It mustbeéfflcientand
effective e. It must always have a solution to a problem.
. 11-in
to20I6UnizikCSC101 CEP- BvMr071m.
Answers
VB .NET1sanevent-diivenprogramming.1
l-C . Event-driven.
. language,
meaningwith VB.NET,you canwrite programs
(of 1
instructions) that are triggered when an event occurs or a user
~,performsany actions.Examplesof event-driven activities are
clicks(mohse
Mouse focus), keyboard_
Windowresizing,
presses,branch operations, message110111other programs etc '
2.A . , . . .
' EBCDIC and ASCII 3.A UNIX
4.C
' Working:Fromtherelation,2"=512=2,=>h11'= 9
therefore, the number of bits 139 => C
- -
5.D , Windows Explorers 6. (--)
'
' . Working: Given (110011100)z> (X), , Here, we group the digits
7.13.
intoblocksof 3 andthenconverteachto base101.e .
110= 1x2 + 1.x2+0x2°=6- 011 =0x21+ 1112' + 1x2°=3
-
100,= 1121+0112'+0x2°= 4; .; (110011100); 634 => 5.
-
Observe(11001100),
.8.C- Wbrking:
Step1:.lscompleme11t=00110011
001l O011
2:
.Step 1tothe
least51on1f'cantd1g1t1e
.
Add +___._.\_._.L
001101110.
-
.
nabili 10.BDecision 1
?IDE 3nd
ary
Ema 12
Memory
Secondary BPehnanent
l3.D Boole (-)
l4.EFifth
15.
16.B ANDgate George
'
' 17.EWarformance. .,-
18.C pacus .
V

5 0M.-
- 1 H"tut
Diskette "i:
*11WWH1il-
1H1
19.i3
Microsoii . 9 15
20p
A93 ' ;.
21.13
Noneof theabove
221-: 23.D 1991 _ . . .
24.5 None of the a of
non-volanle '
include
meinory
merizve-
read-only OM) FlaSh
ERxamples memmY:Ferroelectric
RAM
if - (F-
-RAM) mest (e
tryy magneticcqmputer devices
storage (e.g '
harddisks, and
Skof
floppy?! magnetic dscs
tape),0ptica151
early s'cor;S
computer
E 1s
es suchas
paper 'and
tape punched
'1 Optic
Jcards. Cirxitthods, '1
Babbage '
251B Charles , a
.26.A.ControlUnit'.. ' '
. . 4
27.C Output -
28.A Transistors I l 1'! i i I i
Purpose_ .
29.B General 5I ,'5 ' t
30D RAD(Rapid
Application
Development
LB BBCDIC.
3- Coded
(Extended
Binary Code)Is
DecimalInterchange
an eightbit character encoding used mainly on IBM mainframe
andIBM midrange computer operating It canrepresent ,
systems.
1/. 256 characters.Other differenttypesof codingschemesareBCD, ' ,
. ASCII,UnicodeOptionB 15Correct. _. .I 51 .. '
32.8 Flowchart _ _ . NT

"
33.E Working:Given A 5,, = -~ 10 .56
'1
X 916 X 915
13)
(5
=>E
(51213)1a=(5CD)16
thus, ' 1
, 34D Digital ,
35.13 SAND _. .1
'36.A EX-OR 1
Circuits
37.C Integrated
38.5 None ofthe above -~
- . . .'
39.5 Floppy : , '
40.A FlipHops . 1'" . "
3- - -
411x
) ~_
42E BandCabove_ 3'
\
[HM .111
.1111-111' 11111111
1.11 q, .
.. Development
I 431* Integrated
is
Env1rongnent
(IDE)
44.8 Number negative
45.13 DDA
46.A VisualBasicExpression
' '.
47.13 FORNEXT ' -;
48D yearof-
-birth: ; '' -
NAND
49.C .-
. 50.E It mustalwayshavea solution
toa problem.

Name: -'
)u-
. Registration1 Number Department
NNAMDI AZIKIWE UNIVERSITY, AWKA

.5135?
,
'
DEPARTMENT
EXAMINATION
COMPUTER
OF COMPUTER
2015/2016
SCIENCE
SCIENCE:
SESSION:
AND
FIRST
CSC
PROGRAMMING
SEMESTER
101LVTRODUCTION
TO THURSDAY

\L
..1.»« . Tuesday Apr1126 2016
INSTRUCTIONS: (2). Answer 2111Questions, Shade the correct
answers on the OMR sheet: (b). TIME ALLOWED: 50 MI1\S.

'-1. - ASCII 15an acronym that standsfor ? a. American


'
Standard Code for Information Integration b. American
. StandardCode for Information Interchange c. American
StandardizedCode for Information Interchange d. American
StandardCode for Information Interchange e. none of the above
is a single user operating system? a. UNIX b. CPM
c. CMPA d. SVMS e.1\'one _
What 13the number of busthat can convey 512 possible
combinationsof information?a. 10 b. 8 c. 9 d. 7. e. 6
All the'searefound ontheVisualBasic
.NET IDE except a. Form
Designer b. SolutionExplorer c. Code Window d. Windows
Explorer e Toolbox
is notanexample
ofahardware
port?a.PS/2b.LPT1
1:.USB 11.VGA 11.AG? "

6. (110011100)1->(X),*'7What 13X? a.474 b. 234 c. 334,


d. 574 e. 634 -

7, - What'15the2 s complementof(11001100),? 21.11001100

. .85-
41

1" 1111111
111!
1' 11i "11 .1111111' 1"1111
.1
b. 00110011 1:."110100 d. 100111011 e. noneoftheabové'
An advantage of supe1compute1overothers1s 7
a.Purchase Cost b. Processing powerc.Mai11tai11ability
d. Portabilityc.All of theabove.
The main function of the computer memory is"" ? a.
memorizing of pastevents b. conversion of program c.
of languagese'. '
of data d.tra11slation
conversion/storage
storage of data and instructions
' -7
The two main typesof computermemoryare
'
a RAM and ROM memory b. Floppy disk a1'1dHa1d disk
c. Major and Minor memory d. Flash disk and handdisk
'
e. Primary and Secondarymemory.
11.

12.
-' i
is the characteristics

Boolean Algebra was invented by


Boole c. Kevin
b Charles
Boole .d'
of informatio'n
b. Permanent'0. Durable d. Non- Static e. Versatile

Boole e. Thomas
George
-
1n ROM?- a. Volatile

.7a. Bernard Boole


, -

~
Boole.
13. Robotics' 13technologies of computer generatiqn? a. first
b. second c. third d. fourth e. fifth .
What gate has its output as a logic 0 if and only if the inputs to_'
the gatesme all 1nthe same state?a. Ex-NOR b. AND 0. OR
d. Ex-OR e. NAND
15. lfA= 101 and B - 100 are inputs to a logic gate and C= 101, is
the output Whattype of gateis represented?
a.Ex1\'OR b. AND .
c. OR d. Ex-OR e. NAND
16. Oneof thefollowingdoes
notapply16a digitalcomputer?
21.Speed b. Accuracy c. Reliability d. Versatility e. Performance
17. is the oldestknown mechanical aid for computation?
Analytical engine b. Differenceengine' 0. Abacus d. Napier
Bones e. Weaving loom.
18. A storage device used with the computer, made of thin plastic &
magnetically coated is called? a. Hard disk b. Diskette
c. Magnetic drum d. Disk drive e. CD-ROM
19. Visual Basic.NET1s a programming language developed by_ 7
a.Su11 Microsystems b. Appl lnc c.0racle1nternational
d. Microsoft e. [BM
20. VisualBasic .NET enables of GUI applications? a. MAD b.

-86-
11111-111
113711111 11
111111-1:
1.1
DAR c.ADR d.RAD ..e.-f\AD '27:
2|. VisualBasic.
NET1s a(n)__ a code.
Pl'og1amminglanguage?
driven b.10gic-drivenc. event-driven d. form- driven e.a
22. If A andB areinputs
toan Exciusive-_OR
gate,theoutput'
13
~J
bAeB cAiB d.A.Be.A+B
a.A+B
All ofthese a. Integrated
havereiationshipsexcept? circuit
b.The1mionicvalve c. Diode d. Vacuumtubes e. none
VisualBasicwas first released 1n ? a. 1971 b.1981
c.1975 d. 199] c.1985 ,
isnotahon-voiatiie
ofthefollowing
One a Hard
memory. -
disk
b.CD-ROM 0. Flashmemoiy d. Random Acces31Memory

4% e. None ofthe above


Enginewasa deviceconceivedby
Analytical
Hoiierit b. Charles Babbage c Alan Turing
7 a. Herman
d John Napier
e. JosephJacuard
27. ahdcontrolsthe performanceof various
coordinates
hardwareand software components that make up the computer
system.a. Control unit b. Controls unit 0. Coordinates unit
'
d. Coordinates/Controiunite. Coordinating unit.
28. T111thtable shows the various states of input to logic variables
and the corresponding status of the a. true state b. truth state
c. output d. status state e. input
29. The
special ofsecond
featui'e generation wasthat
computers they
were built with
b.Thermionic
e.1\'one
as switching element. a. Transistors
valvesc Integrated
of the above
circuits
d.Ail of theabove )3
30.

3].
Anothernamefor High Level Language IS__
b.Generalpurpose
0 Highexecutable
a. Human Convertible
d Machine
compliant
is a standa1dencoding scheme? a. ANSII
? a man made

b. EBCDIC
«
I
c. ASSC d. ASCII e. Unicoda
32. Thepictorial of an aigo1ithm13
1ep1esentation ? a. Pictmiai«
chart b.Flowchart c. Diagram chart d. Algorithm chart
9 Ali ofthe above S

33. (A5)1.x(9)l-(X),,1s X7a SDC b. 34A c. SBA d. 350

.87..
W111 .11 111111
1. .111' 3. 1

WW
3. 5CD - r
\

' discrete
measures values?a.
Micro Analog
34. #compufer
c d Digital Discrete
.~_. . ~ ' b.
Hybrid le . w -
a
.
.
-.1

Use the diagram to answerquestions35, 36 and37


'
m
-V.

.What
35;_ logicisrepresented
gate EX-OR
g7a.
by b. cOR'
' _NAND
d. EX-NOR e. AND .
'36. Whatiogic isrepresented
9

gate bym?
a.EX-0R NAND
b.
c. OR d. EX-NOR e. AND _ 1*
. 37. The diagram 15manufacturedas ? a. transistorsb. diodes-
c. integrated circuits d.- a and b only_ e. a, b and c only.
38. . are common form controls1nVisuaBasicNET except
All these
? a.Label b.TextBoxc. d.all oftheabove
, e none of the above - Button,
39. andstorage
as.bothinput
_____acts device
a.Printer
b.Scanner
0. Web Cam d Keyboard e. Floppy - .
_
40. Small high speedmemory unitsusedfor storingof intermediate
results are 7 a. flip flops b control unit c.1egister.
'
d. main memory e. none of the above - i
41'. Which of these 13not an applicationprogram? a. Macromedia
_ ~
42.
f1ash b. MySQL. c.MS-Wo1-d d. MS- Linux esPagemaker '
V The advantage(s)of high leyel languageasgoodprogramming =
language as compared to' machine language is/are
a.It istedious
towrite b.It isnotmachine c.It is - -
dependent
not time consuming d. a, b and 0 above e. b and 0 above s1
43. IDE is an acronym that standsfor 7 a. Integrated
Development Environment b. Integrated Development
Environment c. Incorporated Development Environment
* d. Integrated Degeneration Environment 3. Integrated
' ' DevelopmentEnvironment
44. The presenceof extra digit 1n2 s complementoperationmethod
signifies ?a. Error 1noperatiori b numbcr 13ncgauve
.4

-88-
'
. 11

.il i. ii '11 ... 1


.1iiiii1iii1 1m.11111111-1.
. c. number is posuive d. all of the above e. noneof the
' ab'bve
' The hexadecimal is
45. equivalentof(110111011010)2 7
aWCCAbCADclA7d2EFeDDA
46. ' (A02 + M*N"2)/SQR(2) 13an example 'of"____? a. VisualBasic
b.Visua1Basic Statement c. VisualBasic Equation.
' Expression
d.-VisualBasic Language e. None of the 'above
'
47. An exampleof repetitionconstructis' ?IF b.1F-T11BN
. 0. CASE d. GQTO e. FORNEXT
48. .One of these"15an invalid variable name a.yearOfBirth
b.YEAROFB1RTH c. year_of_ birth d. yearofbirth
. e. *
' yearotbirth
' . is the equivalent of a combination of an Inverter and an
' 49. __gatc
AND gates? a. Ex-OR b. AND 0 NAND. d. Buffer e. ANDI
. 50. One of the following 15not true aboutalgorithma;1t must havea
.finite set. b. It must have an initial action c. It must have a
. unique successorto each action (1.It must be efficient and
effective. 6. It must always have a solution to a problem. ,

nwe m ()aUm'ik (E UARi Mrllim:


1.B ASCII ==Ameirican Cédefor Infonnationlnterchange.
Standard
ASCII is the most commonformeitfor text files in computersand
on the Internet. Iii an ASCII file, each alphabetic, numeric, or
special character is'representedwith a 7-bit binary number (a
-. , string of sevenOSor Is). 128 possible characters are defined.
2.A. UNIX . ,. .
-. I
3.C' Working: From the relation,2n= 512= 2, => n= 9
_ .:the number of bits 159 => C 4.D WindOWSExplorer 5.(- )
6.E Working: Given (110011100),_)(X), , Here, we group the digits
intoblocks of 3 and then convert each to base 10 1.e
110,=*1x2+1x2'+ 0x2°=6 ; 011,= 0x2+1x2'+1x2°=3
= 634-=>'E
0x2' + 0x2°=4; .: (110011100)1
100,=1112121+
7.C ' '
Working: Observ1=;(11001100)1
Step 1: 13 complement = 00110011 .
Step 2: Add 1 to the leastsigniticantdigit 1.13 0 0 I l 0 O 1 l
+
1

09110100

-39-
111 1.-.1.1 11m 111.171
'
Portability a
9E Storageof dataandinstruction
10.13 Primary andSecondary
11.3
Memory-
_ Permanent .. v .1
123 George Boole ""17__
' h
113 F 1fth 1
. J 17;
1419 5

153 AND gate.. .,-~


'
1&3 Performance ' . 71 ' ' '
11c Abacus . I . ' ' , ,
' 1 ~
1&3 Diskette .1 . , . .
'
_193 IBM
213 RAD (Rapid Application Development) :~
213 Event-driven. Eventdriven. VB .NET 15an eventdriven
programminglanguage,meaningwith VB ..\ET, you can write f
programs (or instructions) that am triggered when an event occurs
'
01a userperformsany actions.Examplesof eventdriyen ,. .. r
activities are Mquse clicks (mouse focus),Windowresizing, -
;
keyboa1d branchoperations,
pressest messagefrom other 2:
programs etc. ;.
223 AEBB f
213 None of the above ,1
24D 1991 ~

253 None of the above' Examples of non-volatile memory include


. read- only memory (ROM), F lash memory, Ferroelectric'RAM (F- 4
RAM), mosttypesof magneticcomputerstoragedevices(e.g
hard disks, floppy disks and magnetic tape), Optical discs and r
:
early computer storage methods, such as paper tape and punched-
. cards.Option E 1sCorrect. lJ.
26.B Charles Babbage .
' '
27.A _ Control Unit 1 .
21c" . - . , : .
Output
29.A Transistors
'
30.B General Purpose
31.B EBCDIC. Coded
Binaxy
(Extended Decimal 15
Code)
Interchange

-90-
W

' '
V Nu
lbt' l .III. ViI! Mm.
. In.
J :1" . on .
I.11. character
'urftbit eandlng usedImamly IBM? ainframe
campy?
midréihge systems.
«operating It can Presémm
. :"mféMt rs, Other
-

*5 . ' °f
dlffergntWPFS
.' . . -.
3 C°rrect«.
codino= sche mesan; '~-
Unicode.
0pm.".
?agachirsaéi
313~Flowchart
-. - -
'
5u - . ~ , . - 3;...1'1-
_.- - 10~ 5"u wk:
315 kma:GnvenA.-
W07 g .. 1 I ..
IIoIIIX _9" . -X____i.
3*"
~ v:
,1 ._:' . (s: 12 13).._~ -, .4:
..' __. - . .
Ithus,
(51213),§=(5CD),,?>EII
34.D Digital . . .I:
n
.. , .. .. . I :
.
NAND - XI I 'I . II:'I :IIII-In I . _
35.3 - . ,.
36A EX'OR ' ' :. ~
Circuits I . I' _ .;.- .
37.C Integrated - '-
38.15. Noneof theabove I' . I . I
Floppy _ . -_ . I, .
39.15
~ I:~ I
40.A Flipflops.. .~. I. I_ 2.»
_: w" . , I ~.
41.D(-) "1
I- III:
42.5 BandCabbve . - . . .
'
43.A Integrated
DevelopmehtEnvironmentaDB) ,.
44.3
"
5 "'~ '. 5 " ~~ '
Numberisnegative '
. 45.13 DDA ~I : :_'II;. 1 ti;
46.A '-
_
l l
VisualBasicEquession
47.3 FOKNEXT . -2'. ¥. ..ii'?s
48.D . s
Year-oflbirHI ": ; "-- 3 1 '5' "
49.C NAND-. . - 4 ~ g .9...:
50.5 It must
alwayshaveréolutionto a problem.
l

, :--.
.
"o.-

,.

\f
ll quu ll Hunt! 1
l". "- u... m _. '1

-..
)NAMDIAZI WEUVIVERSITY'AWKA
OFCOMPUTER
DEPARTMENT SCIENCE; SEMESTER
FIRST
2016/2017
£XAMINATION CSC101-INTRODU
SESSION: CTION
10 COMPUTER SCIEN CE AND PROGRAMMING: ExamDate:
. ;. .
Friday7th April 2017.
allQ11estions,Shzide
(a).Answer
INSTRUCTIONS: thecorrect
onthe OMR sheet:(b).TIME ALLOWED:
ansi'vers 50Mins.

1_ Two
conmon computer a.EBDIC
are?
systems
coding &ACSII
.
ASCIIand
b. BASICc EBICIDC and
ASCIId-.
BASIC

M
. EBCDIC e. EBCDIC and ASCII ~
'
.
and.
' The difference
2_ . enginewas foundedby? a: Charles
Babbage

#
b.AlanTuring c.BlaisePascald.AbrahamLincol11

4
-
_ e. Early men
3. -TheTransistor forthe generation
wasused computers?
b.Second
Generation
. a.First c.Third
GenerationGeneratio
_ _.(1 FourthGeneration'e. All of theabove " (_
4. ' ofthese
Which ofthecpmputer7
isnotafunction a.Input
function b.1nfonn'ationfunction e. DataOutputfunct1on
e. function
' ' d. Storagefunction- Processing
' ("'- _ a.Accuracy
ofa computer?
S. "r J Whichis nota characteristics
b. Versatility 0. Sound d. Reliabilitye. Memory
6 is anAuxiliarystorage?a Harddiskb. Floppydisk
'
.c. Server d. Card reader e. harddrive ._
7, ' . is notaninputdevice?a Digitizer b Touchscreen
1:.Touch Pod d. Webcam '.e Joystick
8 Which ofthe 13
not
following' apan ofthe CPU? :1. .
the above '
Rjgisters
b. Main Memoiy c. ALU d Control Unit e Noneo
9 . are circuitry paths for transmitting data and signals
among the parts of the computer? a. Signal path b. Roads
c. ways d. Cars e. Buses
lkilo bytes 1sequivalentto?a. half Mega Byte b. half GigaByte
c. 1000 Bytes d. 512 Bytes e. 128 Bytes: « -
, drive?a.WO_RMb CDR 6-Flash
isnotanoptical
12 d.DVDe.Bl11eRay
'
IDrive
. . r1s recognition 5 stem is a type 0f?a,'Di:i1:IBiomeiric
mput
b.Biometricc.D1°1tal
outgut d-Blometnc
outpllt a:

.
J

.92-
'1." 11m .1} 1.1'1! mm mhhlr 1 1m

x
e. Biomeffi'Epi'ocessing
OMR means a. Ordinary Mark Reader b.0pera1ed Machine ~.
'

*iii
Reader c. OpticalMark Recognitiond.0ptica1MarkRegister
e. None of the above
The largest possible symbol in the binary number is? a. 0 b. l
,c.2 (1.10 e. 8
- 235... What is the value of Y? a. 1076, b. 1056,
Y,
c. 2076, d. 1065, e. 2075;

h'f'k?
The producg oftwo binary bitsA -1110 and B - 1011 is - 7
a. 10011010 1). 101101 c. 10110011010 d.1110 e. 10010011
Conven 5.8125,.10 a number in Hexadecimal a. 5.13 b. 5.22
c. 5.1A d. 5.0 e. 5.0
The 25 complement of the binary number 110011 is? :1.001100
13.111001 c. 0101010 d. 0010101- e. 001101

011011010010,= 7.. a. 3322. b. 3321. c. 2233. d. 2322.


e. 7322,
20. The 25 addition of 2 binary bits A ' 1001h and B I 1101,, will
give? a. 0001 b. 0011,I c. 0110,, (1.1010,, c. 1110
2|. logic gate gives 1 as output when 0 is made as input?
a. 0R b. X-OR c. X-NOR d. NAND e. INVERTER

22. The flowchart symbol below represents? a. Stop b.Disp1ay


c. Process d.1nput/Output e. Page connector

23. A buffer logic gate will? a. output 1 for every input of 1


b. output 1 for every input of 0 c. produce no output (1. needs
no input e. none of the above
24. The Gray Code is not? a. Weighted b. Arithmetic code
c. Good for error correction d. a, b and c above e. a and b above
25. The rule which states that ~(A.B) = ~A + ~B is 2 a. 1dempotem
rule b. De Morgans mle c. Involution rule (1. Simplification
rule e. AbSOrption rule
26. A finite sequence
of stepsfor solvinga problemis called?

.93.
1111113111 .11
11-111 111 W
. 111111-11
a. Program b Pééudo Cod5"c.Programming d.A1gorithm
'
e. Sequence ,-
Use the diagram below to answer questions 27 to 29. . 44.1- urn

,A...

11-"

1
'

N
e w

Y1010 . .
x= 0101
on? a.1010b.
What1stheva1ue
0101
c..0000d.1111
.- I
3
~
_
..

1
e 0011
Wis=f2 a. 0000 b. 1111 c. 1010 d.0101 e. 1001
The whole gateis the sameas an? £1.111verter
gate b. NAND
'
gate c. XOR gate (1.XNOR gate e. 0R Gate
VB .NET 2015 15an integral pait of? a.Visua1 Studio 2015

m
b VisualStudio15 c.V1sua1Bas1cStud102015
d.1ntegrated
Studio 2015 e. NET Studio 2015'
Which one of the following 15not a feature of 00??
b.1nheritance
Polymorphism
e. Polyprogramming

calledaa.Document
-.d
e.Abstraction
Encapsuiatio
A collection off11es which make up a VB NET program is
c. Projectd.Product
a.

,
M
.
_

e'. Event b.Wi11dow


33. Which of the following is not found in the VB .NET 2015
window a Propertiespahel b. Tool Box c..Code Window
'
d. Form e. Output Box
34. , 1nhas?a.Toolsandcont101s
VBobjects b. Properties
and
methods c. Names and labels d Controls and Methods
6. Controls and Properties
35. __isapart of the VB IDE? a.1nternetExplorer b. Problem
explorer c.Solutionexp10rerd. Wihdowexplorer
36. Pressing___ key 0n the keyboard will cause a VN .NE'I . _
program to run? a. Controlkey b. F5 key c. F 10 key
d. Shift+_F5 e. Control+F5
37. The Toolcanbeusedforbothinputandoutputin aVB
'
.1
_.. . -94-
' '
l i Il 111.1-il1.lmmm11umin-111111
a.
i

program? ToolBox b. Label 6. TextBoxw-dMiabum


e.Pr1nter
w
.P OOPmeans?a.OnlyObJectProgramm1ng b.0bJectOr1cn1ed
Program c.01iented0bjected Programming d. Objected
Oriented Program ..e Object Oriented Prpgramming
VB NET 1sa? a. Compiler b.1nterpreter -c. Promoter

.039
A0.)
Which
d. Transformer
15notaVB.NET:va1id
oneofthefollowing' keywdfd?
e. Editor

:J.Y:q
a. DIM. b. ELSE' c. BRANCH d. THEN 6. IF
A 1 is usedto éhangethe size of VB object during design?
a. Handles b. Changers c. Sizers d. Selector 13.None of the
. above.
A3" The presenceof extra digit m 23 complementoperation method
signifies 7 a. error in operation b. number 13negative
c. numberis
positive (1,all of
the_above e. none of the above
"
"'1
3:
4:.5 Thesizeof a file is measured
- d.
in? a. Hertz b. Bits' 1c.Meters
Bytes e. Noneof the above -

.
,-;
151.5:
Inn.
5.1:»
1"
4:1 All theseare VisualB'asicNET datatype except
a. Integer b. Byte c. Date d. Double e. Time
. ?

,z-
.1
,
.1:5"

-,?._'
$1; 9'
.
enclosed
- c. Combo Box
is a VB.NET buiIt-ni function that will display the text .
a. MessageBox b. Window
within the brahqkets?
d.,Text Box ,e. Address Box
MS Window 10 is an example of an? 21.Operating system
.- b. SoftwareApplication
Packagec.01aphicsPackage
. d. Desktop application 6. databaseManager
.1:>1 ' is not associated with computer programming?
,.

a.Algorithmb.Codingc.Pseudo
coded. e.N011e
of the above - Flowchart
g. 43. is not a relationaloperator?a. >= ' 1).<=. c. <>~
1 ,
d.><
a
e < I I .
l 49.. High levellanguagecodesare convenedto beforethey
can be executed by a machine? a.-Source code b. User Code
c.0bjeetCode d. ComputerCode e.ExecutiveCode
1 50. is not aVB NET Programming structure? a. Selection
b. Choosing c. Iteration d. Sequence e. Looping

v.

.-95-
1111-
.1 1111: 1
1111111111.
CSC
ik2017 101 #38MrOhms:
Answers
111'
EBCDICandASCII . 3 .
1.E
2.A An English
Babbage...
Charlcs Charies
mathematician
Babb
1812
in .the machine
Difference This
developed has
the Engine;

1
" of polynomial 3.B Second
capability evaluation Generation
Informationfunction SG -:So'und ~ .' .'

_
4.13 -'.1

Server.Auxiliaryme_mo1y,
alsoknownasauxiliary or
storage

''W
storageorsecondary
secondary orexternal
memory memoryis
non-volatilememoiy(doesnotlosestoreddatawhendev1cejs
- powered down) that is notdirectlyaccessible
byltheCPU;
because it is not a'cce'ssed channels..
via the iripuVoutput

.1N
'Examplesareharddiskdrives;
optical medialikeCds,
storage
' DVDs andBlu-ray',f12ishdrivesandanytypeof memo1y card.
7.21- Digitizer.Examplesof inputdevice_s
are:(I). keyboard
-
(11). , Image scanner (iii).microphone(iv). Pointingdevicese g
Graphicstablets Joystick,
Lightpen,mouse,
optical,
pointing
I stick Touchpad,Touch 2T1ackba11
screen, _
softcam(vi) Refreshable
Webcam, braille -
(v). dispigiy. x.-
28E None ofthe above 9. A Signalpath .
10C 1000bytes - 1000bytes)
(1KB=1024bytes V- .

1
11.A WORM. An opticaldrive 15a type of computer disk drivethat
reads andwrites data from opticaldisksthrough laser beaming
technology Thistype of driveallowsa user-to retrieve,editand J
delete the cohtént from opticaldiskssuch as Cds, DVDs, , 5
Blu- -ray disk, CDR 12 E Biometricprocessing
13.C (or OpticalMark Reader)14B 1(one) 3
OpticalMark Recognition
15A Working: 2313,6> Y, ;Step1: Convert 2313,,to base 10' 1

Step 2: Divide the result by 8


Now,1ets go! 2313,= 2x16 + 3x16'+ E x16°= 574m

Step 2: 8 574
»s 71R6 . . .t'
;
8
3 1R0
8R7
1 ' .

8 T
OR] =>A.
.E'Ahswer=1076,

-96-
71
'
N» 1111111-1"
11;

M111111
16MVork1ng:GWenA-
1 1
B=
1110,
-0
1011l,111113,A
k
a x 1 0 1 1.
._._.--
I
. 1 1 1 0
.1111 1 1 ,1 0
E; oo o 0
fig», 1 11 1 o
p}; I 0 0 1 1 ~0 1 0 =>A

#17.A-Wofking:61ven5.281 ( )!,
_5,.,-)
S17 The
whole
number
part by16and
divided
(5)13 rema1nder
the
$11," beéomes
theanswer
whilethedecimal
pan(0 8125)Is
{41 multip1iedby 16 andthecarryoverto theintegershouldbe
- writtenastheanswer.
35"
' Lets go!
1;?

5? 165 ., '-
:3. 0R5 . and
.1; .
'
16xo.s125=13.ol.
16 x 0.0 = 0.0
4. '
Answer= 5 Answer= 130 = 13
1; therefore, the final answer; 5.13 =>A: - ' 5
18.13 Working: Observe l 1001 l
:Step 1: 15 complemént = 001100
.

2: Add1tothe:
Stgp léast 1,6 '0 0 1L1-0.0
significaqtdigit:
1' 1..
'a-. ._+
001100 =>E
19.A , Working:
Given011011010010, wegroupthe
;

+?,: Here, digitsinfo'


. blocks of 3 and then convéneach to base 10 i.~e
'
011,=0x2 +1x2'-1-.1x2°=3;011,=0x2+1x2'+1x2°= 3
1..

o1o,=0x2'+1x2'+0x2°=2;010,=ox2+'1x2+0x2°l=2 »

=
.

=>
41011011010010), (3322), A
(.

g.

Working:GivenA = 1001,andB =1101,§thus,A+ B is:


'1

20.D'
1 0 0 1, _
+ 1 1 0 1, _ . . .
"
1 0 1'1 0 x ;.We discardthe extral ',ll1us,we have
' "
1 ~97- .
I- n

..
I IIMMI'II r'u'ulul-I

0110. r "w",
10101.15 1 0 0 1
itsZscomplenientis
therefore,
.1. - - f 1
". '-
. --.';:'_'_:.1010291)
:AIV
.

"
l,

21.13 BDisplay
22.
1nve1ter 23.AOutput]
fo1eve1y1n
srule 26.D
24.(-) 25.B De1
Morgan . '1 z A1go1ithm
211C GivenX=
Workihg: Y= 1010Wenot1cedf10m
0101, the' ,
' OR atet/u/s,--- .
d1agramthatW1sEx-c1usive -
W=XGY= We
Hence, ' 7,7
,',;'d"-:':.;f
X.Y+Y.X; have
, --X Y ->< 17 XY 17.x XY+Y.X
vo-1 110.1' .0-1 1 .
_ f. 1 o ,0, 1 o 1 1 .
o 1 1 o 1 o « ..1 .
1 o o 1 -'o~ 1 -1

1 therefore,
W- W= =>
0000 C
' 28.B 1111 .. 1111-;ButZ=111v£rter=Ja I

. 29D
_
XNOR gate. ('1.e combinationof ExclusiveOR gate a_ndInverter
2015 31E Polyprogm'mming
30.A VisualStudiQ 32.C 'iject
- 33.D OutputBox 1~ . k.-
-*|;+

anobject_ u j]:
15atypeofliseiz
andmethod
34.D_Properties Generally,
interface elementyou createon a VisualBasicform by usingia
todlbox controlAn object1nVB hasth1ee
are? 'I- « 1111ponantelemen:t
They . hgw
Thisdescribes
attributes):
(1).. Properties(o theobject rw '6:.
(ii). (b aviou1):Thiscauses
Methods anobjectto do something
(iii) .This'is whathappened
Events: whenanobjectdoessomethin
explorer36B F5key
35.C Solution - v _g
37.C Text Box.
contrdlDis
Text
Box tohandli;>
designed b
2:636
thye? the
text When ou have to both dis 1a

38
C Object Oriented Programming (OOP) IS a pro
gramming language
Ions
ofOOPian anddata
model organized around object rather than act
' 7 than
u rather logic.Some
examples
PHB'VBNET.c#,c++,RUBY39.13 a1";
JAVA
Interpgrléiffs
'~ '98- 14.
40.A \ DIM4!. D_Selector.
1%;
__.____._.______I_v_~
isnegative
42._Bil\'11111be1' '
of
f 1esize themeasure
C A is 11 on a
space 1111115112,;storage
M 43.
: such
, medium asco1i1puter File sizescanbemeasure
hardd1'1vc.
,in
byteé
(B); (KB); (MB), (GB
megabytes.
kilobytes
beyond.
~ .. a11d C Correct:
Optio11 1s gigabytes
,§%'11e1nrabytes(TB)
4'4E ,.. .51;:'...'.r
a
-
,145
" .AMemssage
Box. 1sbu1lt-111
Msonx
Thegfunction,
the
of_
function
1:: I ' Visualit willdisplay text enclosed
ii the BasicZOlSBand'
11AisCo1rectwl ;~,;;; -' "within:
b1'ackets.0pti
'3?46A'-Ope1ati11g 101sapé1so11ai '
systemxWiqdqws computer9pe1'ati
'
7," .: andrpleasedby,V1101
'deveipped
';.-s'ys_tem osoftaspart of the .
\T familyofopemting
'~.~,"Windows
3,9: system.~' ' .13 -.'JAN"?-
5'
$47.13,- .
ab.ov.e- '1. 1'." ' ' ="""" '
Nopeofthe 1.7;
_71
48.D >_< :l'Arelation'al
o'erator1s that two
~ , _... Mperator co1npar§s
84%: and _>=.
are=; <>',.41; .49
hValues.13xa111ple'é
50:8
«99A ' _Sou1cecode ifiii. 1"
ii'r Li: 3' TJ Ohoos111
1-. ' ' " ' ~41
.99 " -
4; Yi _ 113... .1; --,~ .. -_ .
' ' . I .
J, 1 -,~ . .- , 1 _. ' -._-. . ~,

" -
2! ._" Z" 1 1
.1, v; 1
i n 11' '
m
L (a -
3. . '
5 $3.:
9-}. " », . .. _
1 JV P .J V
(r 1 J r1.
J I 1 " \
N " V
r .. a _:n? ~
1 -;
. .' 33V?
-.c 1 1 . '
, . r
'1 1
J '3 1 h . -~
.
,
. X
. Z" '1? .47
k

V 1
,

p 2' '11?
. ,' < <
5' \
1'
.
j
-
F

I .
.
"I'EWHOFELOWSHIPSWITHTl-EHOLY
SPIRIT ISAREFLECTORarm
SUCCESSFOR'I'I-EHOLYSPIRITISTE
AWHOROFSUCCESS'

-ELDORADOTECH

You might also like