CH.1 Test with Questions and Correct
Answers 2025-2026 GRADED A+
Which ,value ,is ,stored ,as ,an ,integer ,in ,computer ,programming?
- ,"0"
- ,true
- ,-306.5
- ,21 ,- ,CORRECT ,ANSWER-21
Which ,coding ,construct ,repeats ,a ,task ,while ,a ,condition ,is ,true?
- ,Iteration
- ,Input/output
- ,Selection
- ,Assignment ,- ,CORRECT ,ANSWER-Iteration ,: ,
The ,iteration ,construct, ,or ,the ,looping ,construct, ,uses ,a ,while ,statement ,to
,perform ,the ,same ,task ,over ,and ,over ,again ,as ,long ,as ,a ,condition ,is ,true.
How ,are ,items ,accessed ,in ,a ,stack?
- ,The ,item ,removed ,is ,the ,one ,that ,has ,been ,in ,the ,longest ,time.
- ,All ,items ,can ,be ,added ,to ,or ,removed ,from ,any ,location.
- ,The ,last ,item ,to ,be ,added ,becomes ,the ,first ,item ,removed.
- ,All ,items ,can ,be ,accessed ,or ,changed ,but ,not ,easily ,inserted ,or ,removed. ,-
,CORRECT ,ANSWER-The ,last ,item ,to ,be ,added ,becomes ,the ,first ,item ,removed.
A ,web ,browser ,puts ,websites ,into ,a ,viewing ,history ,log ,and ,accesses ,the ,most
,recent ,one ,when ,the ,back ,button ,is ,clicked. ,Which ,data ,structure ,would ,be
,appropriate ,for ,this ,situation?
- ,Record
- ,List
- ,Queue
- ,Stack ,- ,CORRECT ,ANSWER-Stack
What ,is ,the ,relationship ,between ,a ,parameter ,and ,an ,argument?
- ,A ,parameter ,is ,passed ,to ,a ,function ,by ,reference, ,whereas ,an ,argument ,is
,passed ,by ,value.