Introduction to Computer Science - D684 (part1) exam test, Exams of Advanced Education

Introduction to Computer Science - D684 (part1) exam test

Typology: Exams

2025/2026

Available from 05/07/2026

tizian-mwangi
tizian-mwangi 🇺🇸

4.1

(8)

29K documents

1 / 26

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1 / 26
Introduction to Computer Science - D684
(part1) exam test
1. Which type of variable represents a whole number in computer
program-
ming?
String
Array
Integer
Float:
Integer
2. 2
What describes a named storage location that can hold values that
can change?
Variable
Constant
Identifier
Operand:
Variable
3. What is one standard rule for a variable
name?
The name should have an
appropriate meaning.
The name must
start with a lowercase letter. The name
must start with the type designation.
The name must use hyphens between words.: The name should have an
appropriate
meaning.
4. Which coding construct allows a choice between performing an
action and
skipping it?
Assignment
Input/output
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Introduction to Computer Science - D684 (part1) exam test and more Exams Advanced Education in PDF only on Docsity!

1 / 26

Introduction to Computer Science - D

(part1) exam test

  1. Which type of variable represents a whole number in computer program-ming? String Array Integer Float: Integer
  2. 2 What describes a named storage location that can hold values that can change? Variable Constant Identifier Operand: Variable
  3. What is one standard rule for a variable name? The name should have an appropriate meaning. The name must start with a lowercase letter. The name must start with the type designation. The name must use hyphens between words.: The name should have an appropriate meaning.
  4. Which coding construct allows a choice between performing an action and skipping it? Assignment Input/output

2 / 26 Selection Iteration: Selection

  1. What is the value of the expression a + (b / c) * d - e if a = 19, b = 6, c = 2, d = 20, and e = 14? 65 132 226 426: 65
  2. What is a list? A varying-length, ordered collection of homogeneous items that allows for easy access, insertion, and removal A group of related attributes stored as individual fields under a single name and treated as a single concept A fixed-length collection of homogeneous items that can each be accessed by its position A group in which individual elements are accessed from the same end that is called the top: A varying-length, ordered collection of homogeneous items that allows for easy access, insertion, and removal
  3. How are items added to and removed from a stack? All items can be added to or removed from any location. All items can be accessed or changed but not easily inserted or removed. The first item to be added becomes the first item removed. The item removed is the one that has been in the shortest time.: The item removed is the one that has been in the shortest time.
  4. The collection of customers for a small business is stored in such a way that a customer can be easily accessed, deleted, or added. What is the data structure called for in this programming situation? Queue

4 / 26

  1. Which programming paradigm is a subset of the declarative paradigm? Object-oriented Procedural Logic Imperative: Logic
  2. A software development team is building a new mobile application for performing the secure transfer of cryptocurrency. To ensure an efficient approach, they decide to follow the software develop-ment lifecycle (SDLC) model. Which step will the team expect to go through as part of this process? Maintain the program Look for familiar things Divide and conquer Carry out the plan: Maintain the program
  3. A programmer has been asked to lead a project that uses artificial in-telligence to search for patterns in Wi-Fi signals to improve efficiency and range. The programmer will use the software development lifecycle (SDLC) as a model for design and implementation. Which step is the programmer in when choosing a programming language and typing the code? Put the program into production Maintain the program Code the program Translate the code: Code the program

5 / 26

  1. A software engineer is leading a project to create a module in self-driving cars that compares the car's speed with the speed limit. To solve this problem, the engineer is using the computer problem-solving process. Which phase is the engineer in when defining the problem? Analysis and specification Algorithm development Implementation Maintenance: Analysis and specification
  2. A computer scientist is working to optimize an algorithm that finds the shortest driving distance between cities and wants to utilize the computer problem-solving process for this project. Which phase is the computer scientist in when translating a planned sequence of steps into a programming language? Algorithm development Implementation Maintenance Analysis and specification: Implementation
  3. A programmer is developing a mobile application that can stream music to a wide variety of external devices. The company at which the programmer works uses the software development lifecycle (SDLC) model for product development. For this project, the "test the program" step has just been completed. Which step is next in the SDLC?

7 / 26

  1. What is one of the key aspects of the Association of Computing Machinery (ACM) Code of Ethics? Support all new and emerging technologies Promote state regulation of technology Ensure equal access to a free market Contribute to society and human well-being: Contribute to society and human well-being
  2. What does a technology company need to commit to if adopting the Asso-ciation of Computing Machinery (ACM) Code of Ethics? Require all employees to sign the Code of Ethics on an annual basis Promote the development of open source code over proprietary code Support internal employee promotions rather than hiring externally Access computing and communication resources only when compelled by the public good: Access computing and communication resources only when compelled by the public good
  3. What is considered an ethical violation by both the Association of Comput-ing Machinery (ACM) and the Institute of Electrical and Electronics Engineers (IEEE)? The board of directors passes a policy supporting greater racial diversity in company leadership. The head of a company lays off one-fourth of the workforce because of lower-than-expected sales. A factory immediately stops production when an environmental impact is discovered. An executive eliminates all professional development opportunities for em-ployees.: An executive eliminates all professional development opportunities for employees.

8 / 26

  1. An independent author is releasing a novel under a license that allows free use and distribution of the book, as long as the distribution is non-commercial and credit is given to the original author. What is the name of this type of license?

10 / 26 It sorts a list by first sorting each half and then merging the two halves back together into the original list.: It sorts data by building the final sorted list one item at a time, placing each new item into its correct position.

11 / 26

  1. What is the name of the algorithm with the general strategy of swapping adjacent values that are out of order, ending each pass at one end of the list? Sequential sort Linear sort Bubble sort Insertion sort: Bubble sort
  2. What describes the programming structure that terminates an otherwise indefinitely repeating process when a certain condition becomes true? Em-bedded loop Count-controlled loop Iterative loop Event-controlled loop: Event-controlled loop
  3. Which pseudocode example is one way to convert the integer a to a floating point number? myFloat x = a. myFloat x = convert a to float myFloat x = a.to_float() myFloat x = a / 1.0: myFloat x = a / 1.
  4. What is the value of the expression e // d if e = 19 and d = 2? 8 9

10: 9

  1. Which pseudocode gives the same result as int(e / c) if e = 39 and c = 10? round(e / c) int(e) /

13 / 26

  1. Sample code is shown. IF (myNum >
  1. Print "Here" ELSE Print "There" What is the result of this code? "There" if the value of myNum is greater than 0 and "Here" otherwise "Here" if the value of myNum is greater than 0 and "There" otherwise "There" if the value of myNum is greater than or equal to 0 and "Here" otherwise "Here" if the value of myNum is greater than or equal to 0 and "There" otherwise: "Here" if the value of myNum is greater than 0 and "There" otherwise
  1. Consider the following code. IF (myNum >
  1. Print "Here" ELSE Print "There" What does the code do? It prints "There" if the value of myNum is greater than 0 and "Here" other-wise. It prints "There" if the value of myNum is less than or equal to 0 and "Here" otherwise. It prints "There" if the value of myNum is greater than or equal to 0 and "Here" otherwise. It prints "There" if the value of myNum is less than 0 and "Here" otherwise.: It prints "There" if the value of myNum is less than or equal to 0 and "Here" otherwise.

14 / 26

  1. Sample code is shown. Set counter to 0 Set product to 1 while (counter <
  1. Read num Set product to product * num Set counter to counter + 1 Print product What does the code do? The product of the inputs is calculated until the user stops entering them. The user inputs 15 values, and the product of those values is printed. The user inputs a product, and the code counts up to that product. The user inputs fourteen values, and the product of those values is printed.- : The user inputs 15 values, and the product of those values is printed.
  1. Sample code is shown. Set counter to 2 while (counter <
  1. Print "*" Set counter to counter
  • 1 What does the code do? It prints 23 stars. It prints

16 / 26 Context switching Timesharing Batch processing: Timesharing

  1. What occurs in single contiguous memory management? A process is loaded into one designated memory block that follows the operating system. All processes are stored in memory blocks that come before the operating system. A single process is stored in separate, nonconsecutive blocks of main mem-ory. Multiple distinct sources of main memory are used to manage processes.: A process is loaded into one designated memory block that follows the operating system.
  2. What is a benefit to using paged memory management? It does not require a translation between logical and physical addresses. It allows multiple processes in memory without splitting them into pieces. It is the simplest of all techniques to implement and manage. A process no longer needs to be stored in a single memory block.: A process no longer needs to be stored in a single memory block.
  3. What is one characteristic of the dynamic-partition technique for creating partitions in partition memory management? The operating system's table of partition addresses will change as programs load and finish their execution. Memory is divided into fixed-size frames to minimize fragmentation. The operating system's table of partition addresses does not change once it is set. Address binding only needs to consider the location of the operating system.-

17 / 26 : The operating system's table of partition addresses will change as programs load and finish their execution.

  1. Which term refers to the state of a process when it is being created? Terminated

19 / 26 Relative path Absolute path Tree path: Absolute path

  1. What is known as a path that specifies the location of a file or a directory starting from the current working directory?

20 / 26 Working path Relative path Root path Tree path: Relative path

  1. What is one thing that all file systems are responsible for? Organizing the storage of data on memory storage devices Providing users with a graphical interface for file access Directly interacting with hardware for data access Managing the storage of data in primary memory: Organizing the storage of data on memory storage devices
  2. Which file extension is commonly used for program source files? png html mp py: py
  3. What is something found in every computer system? Keyboard Graphics processing unit Program counter Monitor: Program counter
  4. What is one example of a major component of the von Neumann architec-ture? Memory unit