Is a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly?

What is hardware?

Nội dung chính

  • Which if the following is not a benefit of collaborating to develop a computing innovation?
  • Which of the following is most likely to be a benefit to users of the application?
  • Which of the following is not an advantage of using open source software?
  • Is a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly?

The physical components of a computer system

What is software?

...

What is a program?

A sequence of instructions, which enables a computer to perform a desired task.

What is program input?

Program input is data sent to a computer for processing by a program.

Input can come in a variety of forms, such as tactile, audio, visual, or text.

What is the development process and what are its steps?

A development process that is iterative requires refinement and revisions based on feedback, testing, or reflection throughout the process. This may require revisiting earlier phases of the process.

1. Investigating and reflecting
2.Designing
3.Prototyping
4.Testing

What is program documentation?

A written description of the function of a code segment, event, procedure, or program, and how it was developed.

What types of error can occur when programing?

■ Logic error—This is a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly.
■ Syntax error—This is a mistake in the program where the rules of the programming language are not followed. '
■ Runtime error—This is a mistake in the program that occurs during the execution of a program. Programming languages define their own runtime errors.

1. Which of the following is NOT true about a computing innovation?

(A) A computing innovation includes a program as an integral part of its function.
(B) A computing innovation can have a physical side to it.

(C) A computing innovation can be nonphysical.

(D) A computing innovation can be purely hardware.

D

2. Where can the inspiration for a computing innovation come from?

(A) Inspiration for computing innovations can be found anywhere.

(B) Innovations build on previous innovations only.

(C) Customer needs is the sole driving force of new computing innovations.

(D) Money is the sole driving force of new computing innovations.

A

3. Who or what creates computing innovations?

(A) Industry

(B) People

(C) Companies

(D) Other innovations

B

4. Which of the following traits is NOT necessary for effective collaboration?

(A) Communication

(B) Consensus building

(C) Proximity

(D) Conflict resolution and negotiation

C

5. What is a program?

(A) A collection of program statements that perform a specific task when run by a computer

(B) A collection of program statements that are part of a program

(C) How software behaves and how it functions

(D) A code segment

A

6. What is a code segment?

(A) A collection of program statements that perform a specific task when run by a computer

(B) A collection of program statements that are part of a program

(C) How software behaves and how it functions

(D) An innovation that solves a problem

B

7. What is true about program input?

(A) A program can have many inputs, but they all need to be of the same type.

(B) A single program takes in a single input and has a single output.

(C) A program's input needs to be text based.

(D) Input can come in a variety of forms, such as tactile, audio, visual, or text.

D

8. What is NOT true about an event?

(A) An event is associated with an action and supplies input data to a program.

(B) An event does not affect the sequence of a program.

(C) An event can be triggered by a mouse click.

(D) An event affects the flow of execution of a program.

B

9. The design of a program incorporates investigations to determine its requirements. Most programs are designed to be used by people other than the programmers. To meet the needs of the users, the investigation must identify the program constraint, as well as the concerns and interests of the people who will use the program. Which of the following is NOT an investigation tool for designing programs?

(A) Programming the most elegant code

(B) Collecting data through surveys

(C) User testing

(D) Direct observations

A

10. What type of error will the following procedure cause?
Line 1: PROCEDURE mystery(list)
Line 2:{
Line 3: DISPLAY(list[0])
Line 4:}

(A) Logic error on line 3

(B) Syntax error on line 3

(C) Runtime error on line 3

(D) Overflow error on line 3

C

12. What type of error will the following procedure cause?
// The following procedure is intended to display 4 added to the value variable a.

Line 1: PROCEDURE mystery (a)

Line 2: {

Line 3: DISPLAY(a + 4)

Line 4: }

(A) Logic error on line 1

(B) Syntax error on line 1

(C) Runtime error on line 3

(D) No error

D

14. What type of error will the following procedure cause?

Line 1: PROCEDURE mystery ( )

Line 2: {

Line 3: DISPLAY(a + 4 + "cabin")

Line 4: }

(A) Logic error on line 1

(B) Syntax error on line 1

(C) Runtime error on line 3

(D) No error

B

15. What type of error will the following procedure cause?

Line 1: PROCEDURE mystery(a)

Line 2: {

Line 3: DISPLAY a + 4 + "cabin")

Line 4: }

(A) Syntax error on line 1

(B) Syntax error on line 3

(C) Runtime error on line 3

(D) No error

B

16. What is the largest number that will not cause an overflow error using 1 bit of storage?

(A) 0

(B) 1

(C) 2

(D) 3

B

17. What is the largest number that will not cause an overflow error using 3 bits of storage?

(A) 3

(B) 6

(C) 7

(D) 8

C

18. How many numbers can 1 bit of storage hold?

(A) 0

(B) 1

(C) 2

(D) 3

C

19. How many numbers can 4 bits of storage hold?

(A) 0

(B) 4

(C) 15

(D) 16

D

20. What type of error will the following procedure cause?

Line 1: PROCEDURE findEven(num)

Line 2: {

Line 3: IF(num MOD 2 = 1)

Line 4: RETURN(EVEN)

Line 5: ELSE Line

6: RETURN(ODD)

Line 7: }

(A) Logic error on line 3

(B) Syntax error on line 1

(C) Runtime error on line 3

(D) No error

A

21. A programmer is working on an algorithm to sort students by their grade point aver-ages. The program will run but is not correctly sorting students. The programmer has tried to debug the program but cannot figure out where the error is occurring. Which of the following will most likely lead to fixing the program?

(A) Post the program on social media and hope someone will quickly find and fix the error.

(B) Redesign the program so sorting is no longer a function.

(C) Ask a peer with fresh eyes to look over the code and hopefully find the solution together.

(D) Take code from the internet that sorts numbers and change the code to the correct variables.

C

22. Which of the following is NOT a characteristic of collaborating?

(A) The location of the collaboration should be in one neutral physical location similar to a conference room.

(B) Collaboration that includes diverse perspectives can help to avoid bias in the development of computing innovations.

(C) Collaboration requires that individuals have interpersonal skills to collaborate effectively.

(D) All of the above.

A

23. A programming team is developing a computer game where a troll is on an adventure while throwing bugs and boogers at frogs to gain points while making burping noises. Although the game runs smoothly without any errors, both adults and children said they do not like the theme of the game and would not play it on their own. Which of the following steps in the design process should the programmers revisit first?

(A) Investigating and reflecting

(B) Testing code

(C) Prototyping

(D) Designing

A

Which if the following is not a benefit of collaborating to develop a computing innovation?

Collaboration is going to make it easier to find and correct errors during the development process also benefits, collaboration eliminates need to resolve differences of opinions. No, that is not a benefit. Collaboration facilitates multiple perspectives, and development also benefits.

Which of the following is most likely to be a benefit to users of the application?

Which of the following is most likely to be a benefit to users of the application? Users of the application may see health benefits as a result of the application encouraging them to exercise with each other.

Which of the following is not an advantage of using open source software?

Solution(By Examveda Team) Availability of technical support is not an advantage of open-source operating systems over proprietary versions.

Is a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly?

A logic error is a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly. A syntax error is a mistake in the program where the rules of the programming language are not followed.

When a program contains mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly this is called what type of error?

A logic error is a mistake in the algorithim or program that causes it to behave incorrectly or unexpectedly. Comments are a form of program documentation written into the program to be read by people and does not affect how a program runs.

What is reasonable time in programming?

reasonable time: A run time for an algorithm that doesn't increase faster than a polynomial function of the input size (like 10 n 10n 10n , n 2 n^2 n2 , etc). An unreasonable run time would increase superpolynomially (like 2 n 2^n 2n2, start superscript, n, end superscript or.

What is a computing innovation?

A computing innovation is an innovation that includes a computer or program code as an integral part of its functionality.

What is a mistake in the program where the rules of the programming language are not followed?

Syntax Error. This is an error where the programmer does not follow the rules of the programming language.