C++面向对象程序设计考试题库.doc
SHORTANSWER
Asetofinstructionsthatthecomputerwillfollowiscalleda_____________.
Answer:program
Thecollectionofprogramsusedbythecomputerisknownas______________.
Answer:software
Computersthatareinterconnectedareknownasa_____________.
Answer:network
Adigitthatcanholdazerooraoneisknownasa___________.
Answer:bit
Listatleasttwoinputdevices_____________________________.
Answer:keyboard,mouse,networkcard,file
Listatleasttwooutputdevices___________________________.
Answer:screen,printer,file,networkcard
Avariablethatcanholdawholenumberiscalleda(n)____________.
Answer:integer
WhatpunctuationsignifiestheendofaC++statement?_____________
Answer:Asemicolon.
Amistakeinacomputerprogramiscalleda______________.
Answer:bug
A__________istheprogramthattranslatesaprogramwritteninC++intomachinelanguage.
Answer:compiler
Errorsinaprogramcanbeclassifiedintothreetypes,listthem
Answer:Syntax,logic,run-time
WhatdoesthefollowingstatementinC++printtothescreen?
cout“Hellostudents\n”;
Answer:Hellostudents.
Amistakethatisadirectviolationofthesyntaxruleswillgenerateacompiler________.
Answer:error
Ifyourprogramcompilesandruns,butgivesanincorrectoutput,thisisknownasa_________error.
Answer:logic
Thepartofthecomputerthatcontrolsandexecutesprogramsiscalledthe_______.
Answer:CPU
MULTIPLECHOICE
WhowastheprogrammerforCharlesBabbage’sanalyticalengine?
GraceHopper
AdaLovelace
LordBryan
WalterSavitch
Answer:B
Analgorithmis
Theinputsandoutputsofaprogram
Thepartofthecomputerthatdoestheprocessing
Afinitesetofstepstosolveaproblem
AcompletecomputerprogramAnswer:C
Amemoryaddressis
Whereavariableisstored
Wherethecomputerislocated
Astepintheprogram.
WheretheCPUisstored.