Comp sci Practice Attempt - 2020 Practice Exam 1 MCQ
Comp sci Practice Attempt - 2020 Practice Exam 1 MCQ Which of the following expressions represents the value stored in the variable x as a result of executing the program? A. 2 * 3 * 3 * 3 B. 2 * 4 * 4 * 4 C. 2 * 3 * 3 * 3 * 3 D 2 * 4 * 4 * 4 * 4 - ANS C A small team of wildlife researchers is working on a project that uses motion-activated field cameras to capture images of animals at study sites. The team is considering using a "citizen science" approach to analyze the images. Which of the following best explains why such an approach is considered useful for this project? A Distributed individuals are likely to be more accurate in wildlife identification than the research team. B The image analysis is likely to be more consistent if completed by an individual citizen. C The image analysis is likely to require complex research methods. D The image analysis is likely to take a longer time for the research team than for a distributed group of individuals. - ANS D An algorithm is intended to display the following output. red red blue red red blue red red blue Which of the following code segments can be used to display the intended output? - ANS C In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs? A The program attempted to perform an operation that is considered an undecidable problem. B The precision of the result is limited due to the constraints of using a floating-point representation. C The program can only use a fixed number of bits to represent integers; the computed sum is greater than the maximum representable value. D The program cannot represent integers; the integers are converted into decimal approximations, leading to rounding errors. - ANS C For which of the following input values will the circuit have an output of true ? A A = true, B = true, C = true, D = false B A = true, B = false, C = false, D = true C A = false, B = true, C = true, D = true D A = false, B = false, C = true, D = true - ANS The following programs are each intended to move the robot to the gray square. Program II uses the procedure GoalReached, which returns true if the robot is in the gray square and returns false otherwise. Which of the following statements best de
Written for
- Institution
- Grand Canyon University
- Course
- HLT-306V
Document information
- Uploaded on
- August 21, 2023
- Number of pages
- 24
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
comp sci practice attempt 2020 practice exam 1 m