0% found this document useful (0 votes)
95 views11 pages

Coding Process Quiz and Review

The document discusses the coding process and includes a quiz with 20 multiple choice questions about coding conventions, peer review, debugging, and other coding topics. The quiz covers terms, activities, and outputs related to planning, writing, reviewing, and testing code.

Uploaded by

Lập
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)
95 views11 pages

Coding Process Quiz and Review

The document discusses the coding process and includes a quiz with 20 multiple choice questions about coding conventions, peer review, debugging, and other coding topics. The quiz covers terms, activities, and outputs related to planning, writing, reviewing, and testing code.

Uploaded by

Lập
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/ 11

CnU_Quiz2_Coding Process

Return to Ass ess ment List

Part 1 of 1 - 90.41/ 100.0 Points

Question 1 of 20
5.0/ 5.0 Points
Benefits của Peer Review Code bao gồm:

A.Peer reviews provide the distance needed to solve every problems


B.Fewer bugs
C.Peer reviews provide the distance needed to recognize problems
D.Team cohesiveness

Question 2 of 20
5.0/ 5.0 Points
Nếu không coding theo đúng coding conventions, phần mềm tạo ra có thể có nhiều lỗi

True
False

Question 3 of 20
5.0/ 5.0 Points
Following Fsoft standard coding conventions, how many space should be used as the unit of
identation?

A. 2
B. 3
C. 1
D. 4

Question 4 of 20
5.0/ 5.0 Points
The information that a program requires in order to accomplish its objective is called the

A. Data
B. effort
C. contribution
D. input

Question 5 of 20
5.0/ 5.0 Points
Output của giai đoạn Plan cho Coding bao gồm những sản phẩm nào sau đây?

A.System Description
B.Coding Convention
C.Review Report
D.Coding Plan

Question 6 of 20
0.0/ 5.0 Points
Tất cả các dự án phần mềm trên thế giới phải sử dụng chung các coding conventions cho dự án
mình.

True
False

Question 7 of 20
5.0/ 5.0 Points
Coding conventions là tài liệu bắt buộc phải có trong tất cả các dự án phần mềm

True
False

Question 8 of 20
5.0/ 5.0 Points
In programming, _______ are explanations that tell other programmers what’s happening in the
software code

A. restrictions
B. documentation
C. selections
D. table

Question 9 of 20
5.0/ 5.0 Points
Developer to perform the self review while s/he is coding to reach which of the following
targets?

A.Requirement logics are implemented correctly


B.General programming practices are applied
C.No coding conventions or common defects existed
D.The application input data is correct

Question 10 of 20
5.0/ 5.0 Points
A(n) __________ is a list of instructions detailing the steps needed to perform a task.

A. punch card
B. program
C. agenda
D. plan

Question 11 of 20
5.0/ 5.0 Points
Common coding conventions may cover the following areas:

A.Naming conventions
B.Programming practices
C.Error conventions
D.Comment conventions

Question 12 of 20
5.0/ 5.0 Points
Hãy chọn cách phòng tránh lỗi sau đây:
The logic of date is not checked, user can type Start date greater than End date, or From date is
greater than To date…

A. Use CSS Style Sheet and GUI template


B. Use checklist
C. Optimize design, code
D. Use tool to test

Question 13 of 20
5.0/ 5.0 Points
Eliminating errors in a program is also called ______ the program

A. modularizing
B. coding
C. clarifying
D. debugging

Question 14 of 20
3.75/ 5.0 Points
Những điều gì nên làm để tổ chức peer review code được tốt hơn?

A.Write everything down, especially decisions and action items


B."Ask yourself these question: Which review comments must be
addressed before proceeding in the life cycle? What are valid reasons
for missing a review? Who can cancel a review? "
C.Be careful with the scope of the review
D.Don’t take the criticism personally and offer only technical advice that will improve
the code. Respect others’ opinions, comments, and suggestions

Question 15 of 20
5.0/ 5.0 Points
Code conventions are important to programmers, because:

A.Hardly any software is maintained for its whole life by the original author.
B.Code conventions improve the readability of the software, allowing engineers to
understand new code more quickly and thoroughly
C.If you ship your source code as a product, you need to make sure it is as well packaged
and clean as any other product you create
D.80% of the lifetime cost of a piece of software goes to maintenance

Question 16 of 20
1.66/ 5.0 Points
Input của giai đoạn Plan cho Coding bao gồm những sản phẩm nào sau đây?

A.Design documents
B.CM plan
C.Customer requirements
D.Project Plan

Question 17 of 20
5.0/ 5.0 Points
Given below code block:
if (x == 0)
if (y == 0) error();
else {
z = x + y;
}
With the input value of [x, y, z] = [1, 2, 4], which value the variable z would be after executing
above codes?"

A. 5
B. 4
C. 2
D. 3

Question 18 of 20
5.0/ 5.0 Points
The actual coding of a program is done by a(n)

A. end-user
B. systems analyst
C. software engineer
D. database administrator

Question 19 of 20
5.0/ 5.0 Points
Please choose correct order of the following activities in coding process:
(1) Create System Description
(2) Code Planning
(3) Code Library Modules
(4) Code Functional Modules

A. 1-2-3-4
B. 2-3-4-1
C. 2-4-3-1
D. 1-2-4-3

Question 20 of 20
5.0/ 5.0 Points
The information software produces after it has processed the input is called

A. output
B. flowchart
C. objective
D. prototype

Question 1 of 20
5.0/ 5.0 Points
Cho đoạn code sau :
public bool ValidateEmail(string strEmail) {
//Check null or empty
if (string.IsNullOrEmpty(strEmail)) {
return false;
}
//Check required character
bool blnRequireChar = false;
for (int i = 0; i < strEmail.Length; i++) {
if (strEmail[i].ToString().Equals(""@"")) {
blnRequireChar = true;
}
}
//Check incorrect character
for (int i = 0; i < strEmail.Length; i++) {
if (char.IsLetterOrDigit(strEmail[i])) {
continue;
} else if(char.Equals('.',strEmail[i]) || char.Equals('@',strEmail[i])) {
continue;
} else {
return false;
}
}
return true;
}
Đoạn code trên cần ít nhất bao nhiêu test case?

A. 8
B. 7
C. 5
D. 6

Question 2 of 20
5.0/ 5.0 Points
A main focus of reviews and other static test is …..

A.finding and fixing defects cheaply


B.To help remove the need of testing altogether
C.to carry out testing as early as possible
D.preventing defects from appearing at later stages of this project
Question 3 of 20
5.0/ 5.0 Points
………It is a review where the author lead team through a manual or a simulated execution of the product using
predefined scenarios

A. checklist
B. technical reviews
C. walkthrough
D. inspection

Question 4 of 20
3.75/ 5.0 Points
Các best practice của giai đoạn Perform unit testing bao gồm

A.Keep tests independent


B.Keep unit tests small and fast
C.Test each feature once
D.Unit tests should be fully automated and non-interactive

Question 5 of 20
5.0/ 5.0 Points
White Box Test Case phải đảm bảo các yêu cầu nào sau đây?

A.Coverage boundary cases


B.Each test case is combination of condition and confirmation
C.Make sure that all of the code is coverage.
D.Keep testing at Unit Level

Question 6 of 20
5.0/ 5.0 Points
The exact scope of a unit is left to interpretation. Supporting test code , sometimes called ………., may be
necessary to support an individual test.

A. RemUnit
B. All of above
C. Scaffolding
D. Conjucture

Question 7 of 20
0.0/ 5.0 Points
An inspection process is characterized by:
A.Roles (who are inspector?)
B.Process (How do the inspector organse their work?)
C.Reading techniques (how are artifacts examined?)
D.Both A & B

Question 8 of 20
0.0/ 5.0 Points
There are two types of unit test case:
Black box unit test case and White box unit test case

True
False

Question 9 of 20
5.0/ 5.0 Points
White Box Test phải đảm bảo hoàn thành các yêu cầu nào sau đây?

A.Path coverage
B.Statement coverage
C.Decision (branch) coverage
D.Boundary value coverage

Question 10 of 20
0.0/ 5.0 Points
When software is developed using a test driven-approach, the unit test may take a place of …….. Each unit
test can be seen as a design element specifying classes, method and observable behavior.

A. informal design
B. formal design
C. unique design
D. both A & B

Question 11 of 20
2.5/ 5.0 Points
Các best practice của giai đoạn Perform unit testing bao gồm

A.Make unit tests simple to run


B.Name tests properly
C.Design code with testing in mind
D.Fix failing tests immediately
Question 12 of 20
5.0/ 5.0 Points
Unit Test should be conducted for each module (class or function) after code review has been done

True
False

Question 13 of 20
5.0/ 5.0 Points
Unit testing is commonly automated, but cannot still performed manually?

True
False

Question 14 of 20
5.0/ 5.0 Points
A unit is the smallest testable part of an application (In procedural programming a unit may be an individual
program, function, procedure, etc., while in object-oriented programming, the smallest unit is always a method)

True
False

Question 15 of 20
5.0/ 5.0 Points
Technical review are more …….. That is, they aim to remove defects as soon as possible.

A. Objective
B. Descriptive
C. Subjective
D. Preventive

Question 16 of 20
5.0/ 5.0 Points
The below function calculate square of number

Public static integer Square (integer intNumber){


Try
If input<0 THEN
Print error message ""Square root error – illegal negative input""
RETURN 0
ELSE_IF input=0 THEN
RETURN 0
ELSE
Use square function to calculate the answer
RETURN the answer
END_IF
Catch
Print error message “The system error”
End Try
}
How many test cases used for branch test ?

A. 1
B. 4
C. 3
D. 2

Question 17 of 20
5.0/ 5.0 Points
Regardless of whether a review is called an inspection or a walkthrough, it is a systematic approach to
examining source code in detail

True
False

Question 18 of 20
5.0/ 5.0 Points
Black box testing attempts to find errors in which of the following categories:

A.incorrect or missing functions


B.performance errors
C.interface errors

Question 19 of 20
1.66/ 5.0 Points
What are the items that have to have in unit test case

A.Input data
B.Test case description
C.Expected result
D.The actor that take the test

Question 20 of 20
5.0/ 5.0 Points
In static unit testing, code is reviewed by applying techniques commonly known as ……..

A.walkthrough
B.technical reviews
C.checklist
D.inspection

You might also like