Comp sci Practice Attempt - 2020 Practice Exam 1 MCQ Correct 100%
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 - ANSWERC 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. - ANSWERD 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? - ANSWERC 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. - ANSWERC 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
Document information
- Uploaded on
- May 12, 2023
- Number of pages
- 21
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers