Bcse102 Exam Multi-choice Part 4

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Rowanwd
R
Rowanwd
Community Contributor
Quizzes Created: 4 | Total Attempts: 277
Questions: 15 | Attempts: 59

SettingsSettingsSettings
Bcse102 Exam Multi-choice Part 4 - Quiz

46-60! the rest of the buggers :) these one aren't so hard


Questions and Answers
  • 1. 

    Complex loops can be most easily created by _________.  

    • A.

      Starting with the looping logic and working from the outside in

    • B.

      Starting at the top and working to the bottom

    • C.

      Starting with a single case and working from the inside out

    • D.

      starting with the looping logic and working from the inside out

    Correct Answer
    C. Starting with a single case and working from the inside out
  • 2. 

    How long/short should a loop be?  

    • A.

      Short enough to view all at once

    • B.

      15 lines or less

    • C.

      no more than 10 lines

    • D.

      there is no limit

    Correct Answer
    A. Short enough to view all at once
    Explanation
    A loop should be short enough to view all at once because a long loop can make the code difficult to understand and maintain. By keeping the loop concise, it becomes easier to comprehend its purpose and identify any potential issues. Additionally, a shorter loop improves code readability and makes it more efficient, as unnecessary iterations are avoided.

    Rate this question:

  • 3. 

    The preferred (easiest to understand) kind of loop control structure is __________.  

    • A.

      Loop with exit

    • B.

      Loop with test at end

    • C.

      Loop with test at beginning

    • D.

      endless loop

    Correct Answer
    A. Loop with exit
    Explanation
    The preferred kind of loop control structure is a "loop with exit" because it allows the programmer to define a condition that, when met, will terminate the loop. This makes it easier to understand and control the flow of the loop, as it provides a clear and explicit way to exit the loop when a certain condition is satisfied.

    Rate this question:

  • 4. 

    In McConnell’s opinion, ‘unusual’ control structures are __________.

    • A.

      not useful and should be avoided

    • B.

      Very useful and should be used in languages that do offer them

    • C.

      Useful when used with care in languages that do offer them

    • D.

      Preferable if the languages offers them

    Correct Answer
    C. Useful when used with care in languages that do offer them
    Explanation
    In McConnell's opinion, "unusual" control structures are useful when used with care in languages that do offer them. This suggests that McConnell believes that these control structures can be beneficial, but only if they are used cautiously and in languages that support them. He does not advocate for avoiding them altogether or using them extensively without caution.

    Rate this question:

  • 5. 

    In modern programing languages gotos __________.  

    • A.

      should usually be replaced by equivalent sequential construct, but are useful in some unusual cases

    • B.

      Are very useful to increase efficiency

    • C.

      Are evil

    • D.

      Should always be replaced by an equivalent sequential construct

    Correct Answer
    A. should usually be replaced by equivalent sequential construct, but are useful in some unusual cases
    Explanation
    In modern programming languages, the use of "gotos" should usually be replaced by an equivalent sequential construct, such as loops or conditional statements. This is because using "gotos" can make the code harder to understand and maintain. However, there are some unusual cases where "gotos" can be useful, such as when implementing low-level operations or handling exceptional situations. Therefore, while "gotos" are generally discouraged, they can still have their place in certain specific scenarios.

    Rate this question:

  • 6. 

    Recursion is when a routine __________.  

    • A.

      Is called repeatedly

    • B.

      calls itself

    • C.

      solves a small part of a problem

    • D.

      breaks a problem into smaller pieces

    Correct Answer
    B. calls itself
    Explanation
    Recursion is a process in which a routine calls itself. This means that within the routine, there is a statement or condition that triggers the routine to be called again, creating a loop-like behavior. This can be useful when solving problems that can be broken down into smaller parts or when a repetitive action needs to be performed. By calling itself, the routine can continue to execute until a certain condition is met, allowing for the completion of a larger task by solving smaller parts of it.

    Rate this question:

  • 7. 

    Compared with logic-based and object-oriented approaches, the table-driven approach is usually more __________.  

    • A.

      Difficult to write

    • B.

      difficult to read

    • C.

      Wordy

    • D.

      Ecomomical

    Correct Answer
    D. Ecomomical
    Explanation
    The correct answer is "ecomomical". The table-driven approach is usually more economical compared to logic-based and object-oriented approaches. This means that it is more cost-effective and efficient in terms of resources and time required for implementation and maintenance.

    Rate this question:

  • 8. 

    If data is not ‘well behaved’ and it is not possible to directly look up a value from a key, you may still be able to use a table driven-approach by __________.  

    • A.

      Using a different key

    • B.

      Duplicating information in the table

    • C.

      adding more logic to your code

    • D.

      Removing information from the table

    Correct Answer
    B. Duplicating information in the table
    Explanation
    In cases where the data is not 'well behaved' and direct lookup of a value from a key is not possible, duplicating information in the table can be a solution. By duplicating the information, you can create additional entries in the table that can be used to indirectly look up the desired value. This approach allows for more flexibility in retrieving data and can help overcome the limitations of a non-well-behaved dataset.

    Rate this question:

  • 9. 

    In stair-step access tables the entries in the table are __________.  

    • A.

      lower limits for data

    • B.

      Ranges for data

    • C.

      Distinct data points

    • D.

      upper limits for data

    Correct Answer
    B. Ranges for data
    Explanation
    Stair-step access tables are used to organize and present data in a structured manner. The entries in these tables represent ranges for the data. Each entry corresponds to a specific range of values, allowing users to easily locate and access the desired information. This format is particularly useful when dealing with large datasets or when presenting data in a concise and organized manner.

    Rate this question:

  • 10. 

    A control structure that causes a group of statements to be executed multiple times is known as a(n) __________.  

    • A.

      Selection

    • B.

      Iteration

    • C.

      Sequence

    • D.

      Structure

    Correct Answer
    B. Iteration
    Explanation
    An iteration is a control structure that causes a group of statements to be executed multiple times. It allows for the repetition of a certain set of statements until a specific condition is met. In this context, the other options (selection, sequence, structure) do not accurately describe a control structure that involves repeated execution.

    Rate this question:

  • 11. 

    A set of statements executed in order is known as a(n) __________.  

    • A.

      Iteration

    • B.

      Sequence

    • C.

      Selection

    • D.

      Structure

    Correct Answer
    B. Sequence
    Explanation
    A set of statements executed in order is known as a sequence. This means that the statements are executed one after another, without any branching or repetition. The term "sequence" implies a linear flow of execution, where each statement is executed exactly once in the specified order.

    Rate this question:

  • 12. 

    The core of Structured Programming is the simple idea that a program should use ______.  

    • A.

      single-entry, single-exit control structures

    • B.

      multiple-entry, multiple-exit control structures

    • C.

      Multiple-entry, single-exit control structures

    • D.

      single-entry, multiple-exit control structures

    Correct Answer
    C. Multiple-entry, single-exit control structures
    Explanation
    Structured programming is a programming paradigm that promotes the use of control structures to improve the clarity and maintainability of code. The core idea is that a program should use multiple-entry, single-exit control structures. This means that a program should have multiple points of entry, such as loops or conditional statements, but should have only one point of exit, ensuring that the flow of control is clear and predictable. This approach helps to reduce complexity and makes the code easier to understand and debug.

    Rate this question:

  • 13. 

    An effective software-quality program must include __________.  

    • A.

      Formal inspections of all requirements, all architecture, and designs for critical parts of a system

    • B.

      Execution testing

    • C.

      Modelling or prototyping

    • D.

      A combination of techniques that apply to all stages of development

    Correct Answer
    D. A combination of techniques that apply to all stages of development
    Explanation
    An effective software-quality program must include a combination of techniques that apply to all stages of development. This means that the program should not rely solely on one specific technique, but rather use a variety of methods that can be applied throughout the entire development process. This approach ensures that quality is considered from the beginning of the project and continues to be monitored and improved as the software evolves. By using a combination of techniques, such as formal inspections, execution testing, and modelling or prototyping, the program can address different aspects of quality and minimize the risk of defects or issues in the final product.

    Rate this question:

  • 14. 

    At which stage of a software development project should there be an emphasis on quality assurance?

    • A.

      It should be planned into the project as work begins

    • B.

      It should be part of the technical fiber of the project as work continues

    • C.

      It should punctuate the end of the project, verifying the quality of the product as work ends

    • D.

      All of these answers are correct

    Correct Answer
    D. All of these answers are correct
    Explanation
    All of these answers are correct. Quality assurance should be emphasized at every stage of a software development project. It should be planned into the project from the beginning to ensure that quality standards are met throughout the development process. It should also be part of the technical fiber of the project as work continues, with ongoing testing and quality checks. Finally, it should punctuate the end of the project by verifying the quality of the final product before it is released.

    Rate this question:

  • 15. 

    What is the General Principle of Software Quality?  

    • A.

      Improving quality increases development effort

    • B.

      Improving quality reduces development cost

    • C.

      Improving quality increases development time

    • D.

      Improving quality increases development cost

    Correct Answer
    B. Improving quality reduces development cost
    Explanation
    Improving quality reduces development cost because when software quality is improved, there are fewer defects and issues that need to be fixed. This means that there is less rework and debugging required, which ultimately saves time and resources. Additionally, higher quality software leads to increased customer satisfaction and fewer customer complaints, which can reduce support and maintenance costs in the long run.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 16, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 13, 2015
    Quiz Created by
    Rowanwd
Back to Top Back to top
Advertisement