Questions from Software Engineering


Q: In a for loop, is the condition tested before or after

In a for loop, is the condition tested before or after the loop body is executed?

See Answer

Q: What programming construct should be used to search through an array for

What programming construct should be used to search through an array for a matching item?

See Answer

Q: How are the items in two parallel arrays related?

How are the items in two parallel arrays related?

See Answer

Q: 1. The first element in an array has a subscript of

1. The first element in an array has a subscript of ____. 2. The last element in an array has a subscript of ____.

See Answer

Q: A computer program must be free of ____ errors before you can

A computer program must be free of ____ errors before you can execute it.

See Answer

Q: 1. A(n) ____ file is a file in

1. A(n) ____ file is a file in which records are stored one after another in some order. 2. In a(n) ____ program, as you read records, you examine the same field in each record; and when you encounter...

See Answer

Q: 1. An array whose elements you can access using a single

1. An array whose elements you can access using a single subscript is a(n) ____dimensional array. 2. (True/False) You access a two-dimensional array value using two subscripts, in which the first subs...

See Answer

Q: 1. (True/False) When you pass an array

1. (True/False) When you pass an array element to a method, any changes to it are not permanent and are not reflected in the array declared in the main program. 2. Arrays, unlike simple built-in types...

See Answer

Q: 1. Object-oriented programmers usually specify that their data fields

1. Object-oriented programmers usually specify that their data fields will have ____ access—that is, the data cannot be accessed by any method that is not part of the class. 2. An access ____ is the a...

See Answer

Q: 1. ____ are collections of classes that serve related purposes.

1. ____ are collections of classes that serve related purposes. 2. In programming languages that supply existing ____ classes, you are often provided with a visual development environment in which you...

See Answer