1. Trang chủ
  2. » Công Nghệ Thông Tin

Đáp án quizz test môn CnU full

128 2,1K 13

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 128
Dung lượng 1,12 MB

Nội dung

Full Đáp án Final Test CnU Theory cho các bạn ôn tập thi test Theory môn CnU, đáp án đầy đủ, dễ tìm kiếm và tra cứu, rất hữu ích cho các bạn đang theo học lớp F soft của F PT Full Đáp án Final Test CnU Theory cho các bạn ôn tập thi test Theory môn CnU, đáp án đầy đủ, dễ tìm kiếm và tra cứu, rất hữu ích cho các bạn đang theo học lớp F soft của F PT Full Đáp án Final Test CnU Theory cho các bạn ôn tập thi test Theory môn CnU, đáp án đầy đủ, dễ tìm kiếm và tra cứu, rất hữu ích cho các bạn đang theo học lớp F soft của F PT Full Đáp án Final Test CnU Theory cho các bạn ôn tập thi test Theory môn CnU, đáp án đầy đủ, dễ tìm kiếm và tra cứu, rất hữu ích cho các bạn đang theo học lớp F soft của F PT

Trang 1

Part 1 of 1 - 95.0/ 100.0 PointsCode Design

Which of the following statements describes the flowchart symbol shown below?

A.Indicates the start and end of a loop

B.Indicates processing such as an operation

Trang 2

C.Indicates input and output of data

D.Indicates the start and end of a flowchart

Trang 6

A.Repetition, sequence, and selection

B.Recursion, sequence, and selection

C.Repetition, recursion and sequence

D.Repetition, recursion, and selection

When the expression 1-1/x+1/x^2 -1/x^3 +1/x^4 -…1/x^n is calculated, which of the following should be inserted in the process box in the flowchart shown below?

Trang 7

What is an example of the information-receiving operation of a computer?

A.Read (information from a file)

B.Write (information to a file)

C.Use actual mathematical symbols or the words for the symbols (+, -, *, /)

D.Giving data an initial value: Initialize, Set

Please select the best variable name for an employee's last name

A.empLstNm

Trang 8

In below definitions on the global data, which one is incorrect?

A.Variables which are defined within the sub module

Trang 9

B.Every module in the program can access and change data

C.Data that can be used by all the modules in a program

D.Lifetime of a global variable spans the execution of the whole program

Trang 10

B.this Total=TotalA + TotalC

C.set total to sum of totals

Trang 11

A.CLOC (computer licensed operations code) tool

B.CULP (combined users licensed protocols) tool

C.CAUSE (computer assisted Unix software environment) tool

D.CASE (computer aided software engineering) tool

Trang 12

①Assign the initial value “0” to x

②Assign the initial value “1” to i

③End when i is greater that 10

④If i is 10 or smaller, add i to x, and substitute that value for x

⑤Add 1 to i, and substitute that value for i

Trang 13

Question 1 of 20 5.0/ 5.0 PointsSoftware that helps programmers prepare reports, draw flowcharts, and generate software code for prototypes is a(n)

A.CAUSE (computer assisted Unix software environment) tool

B.CASE (computer aided software engineering) tool

C.CLOC (computer licensed operations code) tool

D.CULP (combined users licensed protocols) tool

Trang 14

B.f(y)=y

C.f(a)=y

D.f(y)=a

Which of the following statements describes the flowchart symbol shown below?

A.Indicates input and output of data

B.Indicates processing such as an operation

C.Indicates the start and end of a flowchart

D.Indicates the start and end of a loop

What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?

Trang 15

A.Use it to represent a point at which the flowchart connects with another process The name or reference for the other process should appear within the symbol

B.Use it to represent a decision point in the process Typically, the statement in the symbol will require a `yes' or `no' response and branch to different parts of the flowchart accordingly C.Use it to represent an event which is controlled within the process Typically this will be

a step or action which is taken In most flowcharts this will be the most frequently used symbol D.Use it to represent an event which occurs automatically Such an event will trigger a subsequent action, for example `receive telephone call’, or describe a new state of affairs

Trang 16

equation “A(m) = k” holds Which of the following is inserted in the process box X in the flowchart? Here, the slash ( / ) indicates division that truncates all digits after the decimal point.

Trang 18

A.combinations of objects

B.natural and nonprocedural statements

C.abbreviations and mnemonic

D.binary coded instructions

What is incorrect function of the parameter using in communicating between modules?

A."To pass information from a subordinate module to its calling module

"

B.To store the reference data

C.Tofulfil a two-way communication role

D."To pass information from a calling module to a subordinate module

"

When the expression 1-1/x+1/x^2 -1/x^3 +1/x^4 -…1/x^n is calculated, which of the following should be inserted in the process box in the flowchart shown below?

Trang 20

"Which structure theorem is used n a computer program or algorithm

to determine which particular step or set of steps is to be executed?"

Trang 21

parentheses indicates the pair of test data elements The test data used by “decision condition coverage” (branch coverage): (A=4, B=1), (A=5, B=0)"

Trang 22

B.algorithm

C.pseudocode

D.flowchart

What is an example of the information-receiving operation of a computer?

A.Read (information from a file)

B.Giving data an initial value: Initialize, Set

C.Write (information to a file)

D.Use actual mathematical symbols or the words for the symbols (+, -, *, /)

Trang 23

When a program whose functions are as shown in the flowchart in the Figure 1 was executed when the contents of array A were as given in Figure 2, array B, whose contents are shown in the Figure 3, was produced Which operation should be filled in a of Figure 1? Here, the element of arrays A and B are represented by A(i, j) and B(i, j), respectively.

A.A (i,j) > B (7-j, i)

B.A (i,j) > B (i, 7-j)

C.A (i,j) > B (7-i, 7-j)

D.A (i,j) > B (j, 7-i)

language is made up only of binary digits

Trang 26

Question 2 of 20 5.0/ 5.0 PointsWhen a program repeats a portion of software code as long as a certain condition doesn’t exist, it’s using a(n) _ structure

Trang 27

Integers are stored in the 1st to N-th elements of an array A(N>1) The flowchart below shows the process to check which element of the array contains the same value as X Which of the following correctly describes the execution result of this process?

A.If the same value as X is not in the array, k is set to 1

B.If the same value as X is not in the array, k is set to N

C.If the same value as X exists in two places of the array, the 1st and N-th elements, k is set to 1

D.If the same value as X exists in two places of the array, the 1st and N-th elements, k is set to N

Trang 28

"Which structure theorem is used n a computer program or algorithm

to determine which particular step or set of steps is to be executed?"

What is an example of the information-receiving operation of a computer?

A.Read (information from a file)

B.Giving data an initial value: Initialize, Set

C.Write (information to a file)

D.Use actual mathematical symbols or the words for the symbols (+, -, *, /)

Which of the following flowcharts illustrates a “while repetition structure” in the control structure

of programs?

Trang 30

A.Reference parameters pass a copy of the value of a parameter from one module to

another

B.Variables and expressions that are passed to a submodule in a particular call are called formal parameters

C.Formal parameters are the one that appear when a submodule is defined

D.Value parameter pass the memory address of a parameter from one module to another

What can we do with the Circle symbol when drawing the flowchart to represent the algorithm? A.Use it to represent a point at which the flowchart connects with another process The name or reference for the other process should appear within the symbol

B.Use it to represent a decision point in the process Typically, the statement in the symbol will require a `yes' or `no' response and branch to different parts of the flowchart accordingly C.Use it to represent an event which is controlled within the process Typically this will be

a step or action which is taken In most flowcharts this will be the most frequently used symbol D.Use it to represent an event which occurs automatically Such an event will trigger a subsequent action, for example `receive telephone call’, or describe a new state of affairs

An IF-THEN-ELSE statement is part of the structure

Trang 32

B.natural and nonprocedural statements

C.abbreviations and mnemonic

D.binary coded instructions

Trang 33

Which of the following is the correct result produced by executing the program shown below? Here, the parameter “x” is called by value, and the parameter “y” is called by reference.

Trang 34

D.specification

Which of the following is not necessary for a good program?

A.catches common errors

Trang 36

data used by “decision condition coverage” (branch coverage): (A=4, B=1), (A=5, B=0)"

Trang 38

C.Use it to represent a point at which the flowchart connects with another process The name or reference for the other process should appear within the symbol

D.Use it to represent an event which is controlled within the process Typically this will be

a step or action which is taken In most flowcharts this will be the most frequently used symbol

"The test data about the part of a program shown in the flowchart is specified by “decision condition coverage” (branch coverage) If this test data is specified by “multiple condition coverage,” which of the following is the appropriate data to add? Here, the part enclosed in

data used by “decision condition coverage” (branch coverage): (A=4, B=1), (A=5, B=0)"A.(A=3, B=0), (A=7, B=2)

B.(A=4, B=0), (A=8, B=0)

Trang 40

Which of the following statements describes the flowchart symbol shown below?

A.Indicates the start and end of a flowchart

Trang 41

B.Indicates processing such as an operation

C.Indicates the start and end of a loop

D.Indicates input and output of data

Trang 46

top of the stack leaving previous data below, and POP removes and returns the current top data

of the stack When the operations shown below are sequentially executed, which of the

following is the correct combination of the values x and y? Here, the size of the stack is big enough to hold the entire data “PUSH(a)” inserts the data a into the stack, and “POP(b)” removes the data b from the stack

[Operations] PUSH (5); PUSH (3); PUSH (6); PUSH (1); x= POP ( ); PUSH (7); y= POP ( );A.x=1, y=6

Trang 47

A.To store the reference data

B."To pass information from a subordinate module to its calling module

"

C.Tofulfil a two-way communication role

D."To pass information from a calling module to a subordinate module

"

Please select one item which is not a guide when writing pseudo code

A.Structural elements might come separately

B.The names of subprograms are underlined

C.Indenting is used to show structure in the algorithm

D.Keywords are written in CAPITALS

In a(n) structure, one statement follows the other with no conditions having to be met

Trang 48

①Assign the initial value “0” to x

②Assign the initial value “1” to i

③End when i is greater that 10

④If i is 10 or smaller, add i to x, and substitute that value for x

⑤Add 1 to i, and substitute that value for i

⑥Return to ③"

A.c) Conditional branch

B.a) Sequence structure

C.d) Repetition structure

D.b) Selection structure

Trang 49

language is made up only of binary digits

Trang 52

Which of the following statements describes the flowchart symbol shown below?

A.Indicates the start and end of a loop

B.Indicates processing such as an operation

C.Indicates input and output of data

Trang 53

D.Indicates the start and end of a flowchart

In below definitions on the global data, which one is incorrect?

A.Variables which are defined within the sub module

Trang 54

B.Every module in the program can access and change data

C.Data that can be used by all the modules in a program

D.Lifetime of a global variable spans the execution of the whole program

What are the three control structures for creating programs in structured programming?

A.Repetition, sequence, and selection

B.Recursion, sequence, and selection

C.Repetition, recursion and sequence

D.Repetition, recursion, and selection

Which item is not a recommendation when writing pseudo codes?

Trang 55

A.Each set of instructions is written from top to bottom, with only one entry and one exit

B.Try to keep each instruction/step as short as possible

C.Keywords and indentation are used to signify particular control structures

D.Each instruction/step is written on a separate line

Trang 57

B.this Total=TotalA + TotalC

C.set total to sum of totals

D.ADD255(3,10),02B(4,5)

The program’s processing steps are grouped into logically-related programming statements called

Trang 59

D.syntax

What can we do with the Circle symbol when drawing the flowchart to represent the algorithm?

A.Use it to represent an event which occurs automatically Such an event will trigger a

subsequent action, for example `receive telephone call’, or describe a new state of affairs

B.Use it to represent a point at which the flowchart connects with another process The name or reference for the other process should appear within the symbol

C.Use it to represent a decision point in the process Typically, the statement in the symbol will require a `yes' or `no' response and branch to different parts of the flowchart accordingly

D.Use it to represent an event which is controlled within the process Typically this will be a step

or action which is taken In most flowcharts this will be the most frequently used symbol

The programming tool that uses linked symbols to show the sequence of steps needed to solve a programming problem

Trang 60

What is an example of the information-receiving operation of a computer?

A.Read (information from a file)

B.Write (information to a file)

C.Use actual mathematical symbols or the words for the symbols (+, -, *, /)

D.Giving data an initial value: Initialize, Set

Trang 61

Question 16 of 20 5.0/ 5.0 Points Please choose correct definition of the module parameters

A.Value parameter pass the memory address of a parameter from one module to another

B.Formal parameters are the one that appear when a submodule is defined

C.Variables and expressions that are passed to a submodule in a particular call are called formal parameters

D.Reference parameters pass a copy of the value of a parameter from one module to another

Trang 62

C Sequence diagram

When a program whose functions are as shown in the flowchart in the Figure 1 was executed when the contents of array A were as given in Figure 2, array B, whose contents are shown in the Figure 3, was produced Which operation should be filled in a of Figure 1? Here, the element of arrays A and B are represented by A(i, j) and B(i, j), respectively.

A.A (i,j) > B (i, 7-j)

B.A (i,j) > B (7-j, i)

Trang 63

C.A (i,j) > B (j, 7-i)

D.A (i,j) > B (7-i, 7-j)

Trang 64

A.Tofulfil a two-way communication role

B."To pass information from a calling module to a subordinate module

"

C.To store the reference data

D."To pass information from a subordinate module to its calling module

Trang 65

Question 1 of 20 0.0/ 5.0 PointsCoding 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

Trang 67

B.program design

C.coding

D.language translation

"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.Optimize design, code

Trang 68

C Peer reviews provide the distance needed to solve every problems

D Peer reviews provide the distance needed to recognize problems

Program objectives, desired outputs, needed inputs, and processing requirements are all recorded in the A.program tracking log

Ngày đăng: 09/05/2016, 19:26

TỪ KHÓA LIÊN QUAN

w