0% found this document useful (0 votes)
42 views2 pages

Diagnostic Test Part 2

This document contains 20 multiple choice questions about computer science topics such as logical conditions, machine learning, string indexing, analog to digital conversion, APIs, algorithm analysis, algorithm efficiency, computer virus spreading, and the digital divide. The questions cover a range of foundational CS concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Diagnostic Test Part 2

This document contains 20 multiple choice questions about computer science topics such as logical conditions, machine learning, string indexing, analog to digital conversion, APIs, algorithm analysis, algorithm efficiency, computer virus spreading, and the digital divide. The questions cover a range of foundational CS concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

11. What do logical conditions always evaluate to?

(A) A Boolean value


(B) A value stored in a constant
(C) A “string” text field
(D) A real number
12. What is the process where algorithms are used with historical data to attempt to predict
human needs or requests for information?
(A) Data excavation
(B) Trend prediction
(C) Social analysis
(D) Machine learning

13. What would be the starting and ending index positions for the substring function to extract everything up to but not including
the “@” if you are given the following string: [email protected]?
(A) 0, 5
(B) 0, 6
(C) 1, 6
(D) 1, 7

14. How is analog data converted to digital data?


(A) The analog curve is extrapolated and converted into x, y coordinate values.
(B) The analog data values are converted precisely to digital data.
(C) Samples of the analog data are taken and converted to bits.
(D) Samples of the analog data are approximated to mimic the smooth curve.

15. How do APIs simplify writing programs?


(A) By providing step-by-step instructions on how to use the programming language
(B) By importing the newly written software to the API for others to use
(C) By providing documentation on how to code the needed functionality
(D) By connecting prewritten and tested software to a new program

16. While algorithms can be analyzed mathematically, what information does the testing process provide?
(A) How often program statements execute
(B) The maximum size dataset the algorithm can handle
(C) The validity of the algorithm
(D) The clarity of the algorithm

17. Why is there a need to find different algorithms for problems that already have a solution?
(A) Different algorithms could use heuristics rather than precise values.
(B) Different algorithms could be more efficient.
(C) Different algorithms could use frequency analysis.
(D) Different algorithms could provide intractability.

18. Algorithms can be written with a combination of what three statements?


(A) Sequence / Selection / Iteration
(B) Series / Procedural / Functional
(C) Connection / Collection / Recursive
(D) Selection / Sorting / Searching

19. What is the most common way computer viruses are spread?
(A) By people clicking on an infected file
(B) From phishing attacks
(C) Through a rogue access point
(D) From random botnet attacks

20. Different levels of access to technological devices and the Internet due to economic or geographic reasons is referred to as:
(A) Binary split
(B) Demographic division
(C) Digital divide
(D) Technology rift

You might also like