文档详情

C++面向对象程序设计考试题库.doc

发布:2025-05-01约18.77万字共139页下载文档
文本预览下载声明

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.

显示全部
相似文档