Exam question bank 1

Source: Internet
Author: User
(136) A project contains forms form1, form2, and standard module mode11. If form1 contains the public X as integer statement and mode11 contains the public y as integer statement. Which of the following statements is correct _______.
A) variables X and Y have the same scope. B) The scope of Y is mode11.
C) In form1, you can directly use x D. In form2, you can directly use X and Y.
Answer: c
Knowledge Point: local variables and global variables, scope of Variables
Analysis: Form/Module-level variables: variables other than any process of a form/module, that is, variables declared Using Dim statements or private statements in the "General Declaration" section, can be accessed by any process in this form/module.
(137) The form does not have the following _______ events.
A) terminate B) Validate c) initialize d) olestartdrag
Answer: B
Knowledge Point: Form event
Evaluation: The validate event occurs before the focus is converted to another control. In this case, the causes validation attribute value of the control is set to true.
This event is not applicable to forms.
(138) the execution result of the following program segments is _______.
N = 10
For k = n to 1 step-l
X = sqr (k)
X = X-2
Next K
Prim x.2
A)-3 B)-1 c) 1 d) 1.16227765
Answer:
Knowledge Point:... Next statement, sqr () function
Analysis: Analysis Program: Because during each execution of the For Loop, X is assigned a new value based on the loop control variable k, therefore, we only need to calculate the value of X based on the value of the last loop.
The last loop, K = I, so x = sqr (1) = 1, x = X-2 =. 1
Print the value of the X-2, that is,-1-2 =-3.
(139) after creating a new standard EXE 212 program, the control that appears in the toolbox is _______.
A) commondialog B) listview c) textbox d) toolbar
Answer: c
Knowledge Point: common standard controls
Evaluation: Controls in Visual Basic are classified into two types: standard controls (or internal controls) and ActiveX controls. After Visual Basic is started, there are only standard controls in the toolbox. Among the four options, only textbox controls are standard controls, and others are ActiveX controls. Therefore, the answer is C.
(140) draw two text boxes named text1 and text2 and a command button named command1 on the form, and then write the following event process:
Private sub commandementclick ()
Dim X as integer, N as integer
X = 1
N = 0
Do while x <20
X = x 3
N = n + 1
Loop
Textl. Text = STR (X)
Text2.text = STR (N)
End sub
After the program runs, click the command button and the values displayed in the two text boxes are _______.
A) 15 and l B) 27 and 3 C) 195 and 3 D) 600 and 4
Answer: B
Knowledge Point: D0 loop control structure, do while statement
Evaluation: tracking program running:
First time: x = L <20, x = 1*3 = 3, n = 0 + L = 1
Second time: x = 3 <20, x = 3*3 = 9, n = 1 + 1 = 2
Third time: x = 9 <20, x = 9*3 = 27, n = 2 + L = 3
When recycling, x = 27> 20. Exit the loop in text1 and text2, convert X and N to string output respectively.
(141) Which of the following is NOT the basic feature of an algorithm _______.
A) certainty B) Feasibility c) Infinity d) enough intelligence
Answer: c
Knowledge Point: Basic Features of Algorithms
Evaluation: As an algorithm, it generally has the following basic features.
① Feasibility
② Certainty
③ Poor
④ Have enough intelligence
(142) which sort method does the hill sort belong _______.
A) exchange sort method B) insert sort method
C) Select class sorting method D) Create heap sorting method
Answer: B
Knowledge Point: Hill Sorting Algorithm
Analysis: the basic idea of the hill sorting method is to divide the whole unordered sequence into several small subsequences for insertion sorting. Therefore, the hill sorting method is insert class sorting, But it greatly improves the simple insertion sorting.
(143) which of the following statements about queues are correct _______.
A) Only data can be inserted in the queue. B) Only data can be deleted in the queue.
C) queue is a first-in-first-out linear table D) queue is a first-out linear table
Answer: c
Knowledge Point: basic concept of queue
Comment: A queue is a linear table that allows insertion at one end and deletion at the other end. It is also known as a linear table of "first come first" or "Second come first", reflecting the principle of "first come first served.
(144) perform a sequential search for a linear table with a length of n. In the worst case, the number of comparisons required is _______.
A) N + I B) n C) (N 10 1)/2 d) n/2
Answer: B
Knowledge Point: sequential search and Sorting Algorithm
Evaluation: During sequential search, if the queried element is the last in a linear table, or the queried element is not in a linear table, to search for this element, we need to compare it with all the elements in the linear table. This is the worst case of sequential search.
(145) which of the following concepts is directly related to the concept of information hiding _______.
A) Software Architecture Definition B) module independence
C) module type Division D) Simulation Coupling Degree
Answer: B
Knowledge Point: Basic Concepts in software engineering
Analysis: Information Hiding refers to the information contained in a module (process or data). It cannot be accessed by other modules that do not need the information.
Module independence means that each module only performs the independent sub-functions required by the system, and has the least contact with other modules and the interface is simple.
The measurement criteria for measuring the module independence of software are coupling and cohesion. The higher the cohesion of a module, the more independent the module. Cohesion is the natural expansion of the concepts of information hiding and localization.
(146) The object-oriented design method is essentially different from the traditional process-oriented method. Its basic principle is _______.
A) simulate the relationships between different things in the real world
B) simulate real-world algorithms without emphasizing concepts
C) use the concept of the real world to abstract and think about the problem and solve the problem naturally.
D. encourage developers to think about the concept of the actual field in the vast majority of software development.
Answer: c
Knowledge point: the concept of Object-Oriented Programming
Evaluation: The object-oriented design method is essentially different from the traditional process-oriented method. Its basic principle is to use the concept of the real world to abstract and think about the problem so as to solve the problem naturally. It emphasizes simulating concepts in the real world without emphasizing algorithms. It encourages developers to use the concepts in the application field in most software development scenarios.
(147) in structured methods, software functional decomposition belongs to the _______ stage in software development.
A) Detailed design B) Requirement Analysis c) Overall Design d) programming debugging
Answer: c
Knowledge Point: Software Design Process
Evaluation: The overall design process is usually composed of two main stages: system design, determining the specific implementation scheme of the system; structure design, and determining the software structure. To determine the software structure, we must first break down complex functions from the implementation perspective. Analysts carefully analyze each processing in a data flow diagram based on algorithm descriptions. If a processing function is too complex, they must properly break down its functions into a series of simple functions.
(148) The purpose of software debugging is _______.
A) An error is found. B) correct the error.
C) improve software performance d) tap the potential of software
Answer: B
Knowledge Point: concept and key points of Software Debugging
Evaluation: The concept of program debugging shows that the program debugging activity consists of two parts. One is to determine the exact nature, cause, and position of errors in the program based on the signs of errors. Second, modify the program to eliminate this error. Therefore, the purpose of program debugging is to diagnose and correct errors in the program.
(149) Select relational r Based on condition F. The relational Algebra Expression is _______.
Roor
A) Ro. R B) f c) 6f (r) d) F (r)
Answer: c
Knowledge point: this concept of relational operation
Evaluation: The select operation is a one-dimensional operation, and the relational R is still a link after the Select Operation (and the selected logical conditions are given by this operation. This relationship is composed of the tuples in R that meet the logical conditions. If the logical condition of the link is f, the selection operation that satisfies f can be written as: 6f (R ).
(150) the physical design of the database is to select a _______ process suitable for the application environment for a given logical structure, including determining the storage structure and access method of the database on the physical device.
A) logical structure B) physical structure C) Conceptual Structure d) Layered Structure
Answer: B
Knowledge Point: database design methods and steps: requirements analysis, conceptual design, logical design, and physical design strategies
Evaluation: according to the concept of database physical design, we can see that the physical design of the database is the process of selecting the most suitable physical structure required by the application for a given Logical Data Model. The physical structure of a database refers to the storage structure and access method of a database on physical devices.

Cool movie Network (ky530.com) reprinted please indicate the source, http://www.ky530.com/ncre/02/2005-10-31_4124995641.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.