COMPUTER SCIENCE EXAM WITH QUESTIONS & CORRECT ANSWERS 100% CORRECT LATEST 2024 UPDATE
COMPUTER SCIENCE EXAM WITH QUESTIONS & CORRECT ANSWERS 100% CORRECT LATEST 2024 UPDATE An administrator at the school has data about hundreds of students in a particular course. While the administrator does not know the values of each student's individual assignment scores, the administrator does have the following information for each student. • The student name • A unique student ID number • The number of assignments for the course • The average assignment score before the lowest score was dropped • The course grade after the lowest score was dropped Which of the following CANNOT be determined from this data alone? - ANSWER>>(A) For a given student, the value of the highest assignment score Correct. Without knowing the individual assignment scores, the administrator is unable to determine any of the student's individual scores other than the lowest score. The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing toward the top of the grid. - ANSWER>>Bot Mover 1. 3. 0 Correct. In this code segment, the first call to BotMover moves the robot forward one square, rotates it right one time so that it faces right, and moves it forward one square. The second call to BotMover moves the robot forward one square, rotates it right 3 times so that it faces toward the top of the grid, then moves it forward one square. The third call to BotMover moves the robot forward one square, does not rotate it, then moves it forward to the gray square. A programmer notices the following two procedures in a library. The procedures do similar, but not identical, things. • Procedure MaxTwo (x, y) returns the greater of its two integer parameters. • Procedure MaxThree (x, y, z) returns the greatest of its three integer parameters. Which of the following procedures is a generalization of the MaxTwo and MaxThree procedures? - ANSWER>>(B) Procedure Max (numList), which returns the maximum value in the list of integers numList . Correct. The procedures MaxTwo and MaxThree are each used to determine the maximum among a group of given values. A generalization of this procedure is Max, which takes a list parameter as input to determine the maximum of any number of values.
Escuela, estudio y materia
- Institución
- COMPUTER SCIENCE -
- Grado
- COMPUTER SCIENCE -
Información del documento
- Subido en
- 14 de mayo de 2024
- Número de páginas
- 16
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
- computer science exam
- computer science
-
computer science exam with questions correct ans