Skip to content

MCQ Correcting #5

@Shayanb1

Description

@Shayanb1

Questions that I got wrong: 1, 5, 14, 16, 20, 23, 28, 33, 36, 37, 40, 41, 42, 44, 45, 47, 49, 50, 52, 54, 57, 58, 60, 64, 65, 66

Why my answers were wrong

  1. The code segment never changes the value of second.

  2. This code segment will set One word, ticket Price to 17 for all purchasers between the ages of 12 and 60, regardless of whether or not the movie is 3-D.

  3. The programs display different values, not the same values.

  4. Details of a user’s browsing history can be stored in cookies, which could be used to deliver targeted advertisements on another Web site.

  5. This expression produces the average of the maximum of a and b and the maximum of b and c.

  6. There are multiple paths from P to S (for example, P to S and P to Q to S).

  7. Using 4 bits will only allow for up to 16 characters open parenthesis, 2 raised to the fourth power equals 16, close parenthesis

  8. This expression would be used for a flowchart to set include to true whenever floor is greater than 1 0 and bedrooms equal 3. This does not correctly set include to true in cases where only one of the two conditions is true.

  9. If the fraction 2 divided by 3 were to be represented as an integer, it would be rounded or truncated to an integer value.

  10. Both code segments display the correct average. Code segment I requires more arithmetic operations because it performs the operation sum divided by LENGTH, open parenthesis, num List, close parenthesis within the loop, while code segment II performs the same operation
    only once.

  11. The proportion of students who improved their total points as a result of the score replacement policy can also be determined by comparing the midterm and final scores for each student with the result of the total points calculation.

  12. This expression replaces the final exam score (rather than the midterm exam score) with the higher of the two scores.

  13. IPv6 has 2 raised to the ninety sixth power times as many possible addresses as IPv4.

  14. The operation 4 plus 8 does not produce a result large enough to cause an overflow error.

  15. The expression NOT, open parenthesis, P OR Q, close parenthesis evaluates to false when P and Q differ in value. A NAND gate
    should only evaluate to false when both inputs are true.

  16. The recipient’s public key cannot be used to decrypt the message.

  17. For the example given, End minus start plus 6 evaluates to 2 1. The loop should iterate 4 times, not 21 times.

  18. The procedure does not implement a binary search.

  19. Option I does not work because it performs the "shorten" step before the "keep palindromes" step.

  20. The Polynomial procedure calculates the sum of the Square and Cube procedures, but does not generalize their functionality to calculate any power of n.

  21. This expression returns the string Open quotation, Hapy, close quotation.

  22. The Internet can provide tools, information, and knowledge to crowdsourcing participants. However, there exist
    problems that cannot be solved in reasonable time, even with a distributed approach.

  23. Using shorter variable names would not help a programmer to manage the complexity of a program. In general,
    meaningful variable names help programmers better understand programs.

  24. Redundant routing provides fault tolerance, which enables a cloud storage site to continue to operate if some part of a network fails.

  25. If Y is negative, then the condition count equals y will never be met since count begins at 0 and repeatedly increases.

  26. For the list open bracket, 10, 20, 30, 40, close bracket, there are no values less than the first number in the list, so the procedure returns the correct value 1 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions