试题与答案

下列程序的功能是:当X<50时,y=0.8×x;当50≤x≤100时,y:0.7×X

题型:填空题

题目:

下列程序的功能是:当X<50时,y=0.8×x;当50≤x≤100时,y:0.7×X;当x>100时,没有意义。请填空。
Private Sub Commandl_Click()
Dim x As Single
x=InputBox("请输入x的值!")
______
Case Is <50
Y=0.8*x
Case 50 To 100
Y=0.7*x
______
Print"输入的数据出界!"
End Select
Print x,y
End Sub

答案:

参考答案:Case Else

解析: 阅读程序后,看到程序中有了Case和End Select子句,没有多分支选择结构的起始语句,很明显,第一个空应该填写多分支结构的起始语句Select Case x。在Select Case结构中,只有两个Case子句,分别表示x取值的两种情况,但题目中将x的值分为3种情况,可见第二个空应该填写Case Else语句。

试题推荐
题型:完形填空

Taking good notes is a time-saving skill that will help you to become a better student in several ways小题1: Second, your notes are excellent materials to refer to when you are studying for a test. Third, note-taking offers variety to your study time and helps you to hold your interest.

You will want to take notes during classroom discussions and while reading a textbook or doing research for a report.小题2: Whenever or however you take notes, keep in mind that note-taking is a selective process.小题3:

The following methods may work best for you.

●Read the text quickly to find the main facts and ideas in it.

●Carefully read the text and watch for words that can show main points and

supporting facts.

● Write your notes in your own words.

● 小题4:

● Note any questions or ideas you may have about what was said or written.

As you take notes, you may want to use your own shorthand(速记). When you do, be sure that you understand your symbols(符号) and that you use them all the time.小题5:

A.Use words, not complete sentences.

B.There are three practical note-taking methods.

C.You must write your notes on separate paper.

D.Otherwise, you may not be able to read your notes later.E. you will also want to develop your own method for taking notes.

F. That means you must first decide what is important enough to include in your notes.

G. First, the simple act of writing something down makes it easier for you to understand and remember it.

查看答案
题型:选择题

2010年全国检察机关共立案侦查贪污贿赂、渎职侵权犯罪案件32909件44085人

立案侦查贪污贿赂大案18224件,同比增加0.2%。查办涉嫌犯罪的县处级以上国家工作人员2723人(含厅局级188人、省部级6人),同比增加2%。据此回答问题:

小题1:全国检察机关立案侦查各类贪污贿赂、渎职侵权犯罪案件,属于

①国家权力机关的监督 ②司法机关的监督

③行政系统内部的监督 ④行政系统外部的监督

A.①②

B.①③

C.②③

D.②④小题2:“责任行政”是现代行政法的基本理念,也是现代法治政府应当恪守的基本原则。实行问责制的关键是

A.发展基层民主,实行村民自治和城市居民自治

B.不断提高政府依法行政水平

C.建立健全制约和监督机制

D.不断完善我国的行政监督体系第II 卷(40分)

查看答案
微信公众账号搜索答案