Comp sci Practice Attempt - Practice Exam 1 MCQ Questions With Verified Answers
1 view 0 purchase
Course
Comp sci
Institution
Comp Sci
Comp sci Practice Attempt - Practice Exam 1
MCQ Questions With Verified Answers
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...
EXAM STUDY MATERIALS July 23, 2024 4:26 PM Comp sci Practice Attempt - Practice Exam 1 MCQ Questions With Verified Answers 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 - answer✔✔C A small team of wildlife researchers is working on a project that uses motion -activated field camer as 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 analy sis is likely to take a longer time for the research team than for a distributed group of individuals. - answer✔✔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? - answer✔✔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? EXAM STUDY MATERIALS July 23, 2024 4:26 PM 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 represen t 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. - answer✔✔C For which of the following input values w ill 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 - answer✔✔ The following programs are each in tended 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 describes the correctness of the programs? A Program I correctly moves the robot to the gray square, but program II does not. B Program II correctly moves the robot to the gray square, but program I does not. C Both program I and program II correctly move the robot to the gray square. EXAM STUDY MATERIALS July 23, 2024 4:26 PM D Neither progra m I nor program II correctly moves the robot to the gray square. - answer✔✔C Flight simulation software, which imitates the experience of flying, is often used to train airline pilots. Which of the following is LEAST likely to be an advantage of using flig ht simulation software for this purpose? A Flight simulation software allows pilots to practice landing in a variety of different terrains and weather conditions without having to physically travel. B Flight simulation software could save money due to the cost of maintenance and fuel for actual training flights. C Flight simulation software provides a more realistic experience for pilots than actual training flights. D Flight simulation software allows for the testing of emergency air situations without serious consequences. - answer✔✔C Which of the following actions are generally helpful in program development? Consulting potential users of the program to identify their concerns Writing and testing smal l code segments before adding them to the program Collaborating with other individuals when developing a large program A I and II only B I and III only C II and III only D I, II, and III - answer✔✔D An Internet user has a need to send private data to anoth er user. Which of the following provides the most security when transmitting private data? A Certifying the data with a Creative Commons license before sending it B
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Thebright. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R220,03. You're not tied to anything after your purchase.