D684 - Introduction to Computer Science - CH.1 Test, Exams of Advanced Education

D684 - Introduction to Computer Science - CH.1 Test

Typology: Exams

2025/2026

Available from 05/07/2026

Tutorwade
Tutorwade 🇺🇸

5

(2)

304 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1 /
2
D684 - Introduction to Computer Science - CH.1 Test
1. Which value is stored as an integer in computer programming?
-
"0"
-
true
- -306.5
- 21: 21
2. Which coding construct repeats a task while a condition is true?
-
Iteration
-
Input/output
-
Selection
-
Assignment:
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.
3.
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.: The
last item to be added becomes the first item removed.
4.
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:
Stack
5. 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.
pf2

Partial preview of the text

Download D684 - Introduction to Computer Science - CH.1 Test and more Exams Advanced Education in PDF only on Docsity!

1 / 2

D684 - Introduction to Computer Science - CH.1 Test

  1. Which value is stored as an integer in computer programming?
  • "0"
  • true
  • -306.
  • 21: 21
  1. Which coding construct repeats a task while a condition is true?
  • Iteration
  • Input/output
  • Selection
  • Assignment: 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.
  1. 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.: The last item to be added becomes the first item removed.
  1. 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: Stack
  1. 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.

2 / 2

  • A parameter is a temporary variable in a function that receives the actual value of an argument.
  • An argument is an identifier in a function that receives the value called the parameter.
  • An argument is a value set in the code by a calculation, whereas a parameter is set by user input.: A parameter is a temporary variable in a function that receives the actual value of an argument.
  1. Which programming language is considered to be a declarative language?
  • Smalltalk
  • BASIC
  • Lisp
  • Java: Lisp: The declarative programming paradigm is a model in which the results are described, but the steps to accomplish the results are not stated. There are two basic models within this paradigm, functional and logic. Lisp is an example of a declarative language