0% found this document useful (0 votes)
10 views3 pages

DIHCI Detailed Solution A8

Uploaded by

Suma T K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

DIHCI Detailed Solution A8

Uploaded by

Suma T K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

NPTEL Online Certification Course

Design & Implementation of Human-Computer Interfaces


Assignment 8: Detailed Solution
Indian Institute of Technology Guwahati

1. Following standard coding guidelines helps to improve _______.


a. Readability only
b. Understandability only
c. Teamwork only
d. Readability, understandability, and teamwork
Answer: d. Readability, understandability, and teamwork
Detailed Solution: From week 8 lecture 1

2. A function should have no longer than _____ lines of code.


a. 5
b. 16
c. 10
d. 8
Answer: c. 10
Detailed Solution: From week 8 lecture 1
3. What are some things to avoid when writing code? (Choose all that apply)
a. Using lengthy functions
b. Using the same identifier for multiple purposes
c. Using ‘goto’ (branching) statements indiscriminately
d. Using proper indentation
Answer: a, b, and c.
Detailed Solution: From week 8 lecture 1
4. Two broad categories of code testing methods are review-based method and __________
method.
a. Manual testing
b. Execution-based
Answer: b. Execution-based
Detailed Solution: From week 8 lecture 2

5. White-box testing refers to designing test cases using knowledge of internal structure of the
software.
a. True
b. False
Answer: a. True
Detailed Solution: From week 8 lecture 2
6. What are the two common methods for review-based testing? (Choose all that apply)
a. Code inspection
b. Code walkthrough
c. Unit testing
Answer: a and b.
Detailed Solution: From week 8 lecture 2
7. Code walkthrough allows to quickly identify logical errors
a. True
b. False
Answer: a. True
Detailed Solution: From week 8 lecture 3
8. Uninitialized variable is one of the common errors in programming that can be identified
through code inspection
a. True
b. False
Answer: a. True
Detailed Solution: From week 8 lecture 3

9. How many members should be present in a code walkthrough team?


a. 2-3 members
b. 3-5 members
c. 5-7 members
d. 7-10 members
Answer: b. 3-5 members
Detailed Solution: From week 3 lecture 3

10. Test suite is a set of all test cases with which a given software is to be tested.
a. True
b. False
Answer: a. True
Detailed Solution: From week 8 lecture 2

You might also like