2022年浙江省杭州市景成实验中学英语九上期末经典模拟试题含解析

number one out ball (1 番アウトボール)


正确答案:1 号出界


In one project of software engineering, the issue that adding more people will not lead to corresponding rise of productivity.

A.the time that we wait during the process of working

B.complexity of constructing prototype model

C.the number of stations that we need

D.communication complexity among people


正确答案:D


A large number of people () present at the sports meeting.

A、was

B、were

C、be

D、have


参考答案:B


定义如下枚举类型:enum Number{one=l,tow=2,four=4,eight=8},则下列语句正确的是( )。

A.Number num=1;

B.Number num=Number(20);

C.Number num=Number(eight|0xFF);

D.枚举类型Number的取值范围是0~15


正确答案:D


阅读以下说明及C++程序代码,将应填入(n)处的语句写在对应栏内。

【说明】

本程序的功能是实现任意两个大整数的乘法运算,例如:

输入整数1:8934793850094505800243958034985058

输入整数2:234584950989689084095803583095820923

二者之积:

209596817742739508050978890737675662366433464256830959194834854876 8534

【C++代码】

include<iostream.h>

const int MAXINPUTBIT=100;

const int MAXRESULTBIT=500;

class LargeNumber{

int i,j;

int temp;

int one[MAXINPUTBIT+1];

int onebit; //one的位数

int two[MAXINPUTBIT+1];

int twobit; //two的位数

int result[MAXRESULTBIT+1];

public:

LargeNumber();

~LargeNumber();

int inputone(); //出错返叫0,否则返回1

int inputtwo(); //同上

void multiplication(); //乘

void clearresult(); //清零

void showresult(); //显示

};

LargeNumber∷LargeNumber()

{

for(i=0;i<=MAXINPUTBIT;i++)

{

one[i]=0;

two[i]=0;

}

nebit=0;

twobit=0;

inputone();

inputtwo();

}

LargeNumber∷~LargeNumber()

{

}

int LargeNumber∷inputone()

{

char Number[MAXINPUTBIT+1];

cout<<"Please enter one:";

cin>>Number;

i=0;

j=MAXINPUTBIT;

while(Number[i]!='\0')

i++;

nebit=i;

for(i--;i>=0;i--,j--)

{

if(int(Number[i])>=48&&int(Number[i])<=57)

(1); //由字符转换为数字

else

return 0;

}

return 1;

}

int LargeNumber∷inputtwo()

{

char Number[MAXINPUTBIT+1];

cout<<"Please enter two:";

cin>>Number;

i=0;

j=MAXINPUTBIT;

while(Number[i]!='\0')

i++;

twobit=i;

for(i--;i>=0;i--,j--)

{

if(int(Number[i])>=48&&int(Number[i])<=57)

two[j]=int(Number[i]-48); //由字符转换为数字

else

return 0;

}

return 1;

}

void LargeNumber∷multiplication() //乘法

{

clearresult();

int m;

for(i=MAXINPUTBIT;i>=0;i--)

{

temp=two[i];

for(j=(2),m=MAXINPUTBIT;m>=0;m--,j--)

{

result[j]+=temp*one[m];

if(result[j]>9)

{

result[j-1]+=result[j]/10;

(3);

}

}

&n


正确答案:(1)one[j]=int(Number[i]-48) (2)MAXRESULTBIT-(MAXINPUTBIT-i) (3)result[j]%=10 (4)result[i] (5)result[i]=0
(1)one[j]=int(Number[i]-48) (2)MAXRESULTBIT-(MAXINPUTBIT-i) (3)result[j]%=10 (4)result[i] (5)result[i]=0 解析:本题考查用C++实现大整数的乘法运算。
题目要求程序能实现从键盘任意输入的两个大整数的乘法运算。在程序中定义了一个大整数类,在类中抽象了大整数的一些属性,如长度等,还声明了一些操作,有对大整数输入的操作和对大整数求乘积的操作等。下面来具体[分析]程序。
第(1)空在第一个大整数的输入函数中,根据此空后面的注释我们知道,其功能是把字符转换为数字。在这里需要注意的是,从键盘输入的是字符型的一串字符,此空所在的条件判断语句是用来把这串字符中的数字找出来,接下来就是此空,要求把字符型的数字转换为整型的数字,而字符型数字与整型数字之间的ASCⅡ码值相差48。从第二个大整数的输入函数中,我们也可以很容易知道此空答案为one[j]=int(Number[i]-48)。
第(2)空在对大整数求乘积的函数中,是一个循环的初始条件,从程序中不难看出,这个二重循环是用来实现对两个大整数求乘积的,而变量j是用来存放计算结果数组的当前下标的,根据乘法的规则,不难得出此空答案为MAXRESULTBIT-(MAXINPUTBIT-i)。
第(3)空也在求积的二重循环中,它是在语句if(result[j]>9)为真的情况下执行的语句,如果这个条件为真,说明当前需要进位,但到底是进几位,进位后余下的数又应该是多少呢?这就是这个条件判断语句下要完成的任务,从程序中不难看出,对于到底进几位这个问题已经解决,剩下的就是对进位后余数的处理,此空的任务就是求出进位后的余数并存放到数组的当前位置。所以,此空答案为result[j]%=10。
第(4)空在输出计算结果的函数中,从程序中可以看出,此空在_个循环中,循环的作用是输出计算结果,而计算结果存放在数组中,因此,这个循环是用来输出数组中的所有元素。因此,此空答案为result[i]。
第(5)空是在清除计算结果的函数中,函数中只有一个循环,此空就在循环下面,计算结果存放在数组中,要清除计算结果就是把数组清零,那么此空的任务是把数组中的每个元素变成零,因此,此空答案为result[i]=0。


2022-2023学年九上英语期末模拟试卷考生须知:1全卷分选择题和非选择题两部分,全部在答题纸上作答。选择题必须用2B铅笔填涂;非选择题的答案必须用黑色字迹的钢笔或答字笔写在“答题纸”相应位置上。2请用黑色字迹的钢笔或答字笔在“答题纸”上先填写姓名和准考证号。3保持卡面清洁,不要折叠,不要弄破、弄皱,在草稿纸、试题卷上答题无效。. 单项选择1、Would you like some juice or coffee?Either OK. I really dont care.AisBareCwas2、_ people attending the meeting is 2975 and about _ are womenAA number of , one fourthBThe number of, one fourthCA number of, one fourthsDThe number of, one fourths3、That photo made me think of my good friend. The underlined phrase means “ ”.Abuilt out ofBfilled withCreminded of4、In the following words, which underlined letter has a different sound from others?AwolfBhoneyCton5、My birthday is coming. My parents will give _ some nice presents.AmineBICmeDmy6、-Could you tell me some information about the hotels in your city?-Why not _ on the Internet?Alook for it Bto look for it Clook it up Dto look it up7、Mothers Day is coming, what will you do for your mom, Peter?I have booked some flowers online and they will arrive two days.AinBforCbefore8、Both of them had the same opinion. They reached a(n) _ quickly.AorganizationBvictoryCsituationDagreement9、I found a letter _ on the floor when I came into the classroom.AlyingBlayClie10、Kitty is very good at musical instruments.Yes, she is. She can play the guitar almost her guitar teacher.Aas better as Bas good as Cas well as Dso well as. 完形填空11、 My name is Mike. My family is having a 1 time visiting Harbin Its 2 here. The 3 is cold and snowy. People here are wearing hats and thick 4 . I am so happy to see the 5 world. My father and I are 6 on the lake. My mother 7 a snowman. We are having fun. My friends are in Australia now. Its 8 and sunny there. They are having a good time on the 9 . Some are 10 in the sea. Some are playing volley ball.1AboringBgreatCterrible2AspringBsummerCwinter3AweatherBpeopleCrain4AT-shirtsBshortsCcoats5AgreenBwhiteCyellow6AskatingBridingCgrowing7AmakesBmakeCis making8AcoolBwarmChot9AmountainBbeachCstreet10AswimmingBdrivingCcutting. 语法填空12、用所给动词的正确形式填空。Every year animals all around the world take part in some wonderful journeys.Here 1 (be) the stories of two amazing animal travelers Humpback whales prefer a Slowjourney. The humpbacks, which travel over10,000 kilometers on their journey from Alaska to Hawaii, swim at a 2(relax) speed of about 1.6 kilometers an hour. Although they3 (not swim) fast, humpback Whales travel farther than any other kinds of whale.Every August a fantastic sight can4 (see) in the skies above Ontario and Montreal-millions of amazing Monarch butterflies beginning their 4,000-kilometer journey from Canada to Central Mexico. In fact, the journey, which 5 (take) about 3 months, is longer than the average life of the butterfl、y. Finally many of the butterflies reaching their final place are the great grandchildren or even the great great grandchildren of the butterflies who6 (begin) the journey in Mexico the year before. 阅读理解A13、 A French-language daily in Belgium has issued what is thought to be Europes first 3D newspap、er. But you must read it with a pair of special glasses.All the photos and ads in La Derniere Heures (DH) special edition were given a three-dimensional effect (3D效果), but the next remained the same. DHs editor said there were no further 3D plans because of the costs. Reviewers in France spoke highl

定义如下枚举类型:enum Number{one=1,two=2,four=4,eight=8),则下列语句正确的是( )。

A.Number num=1;

B.Numbernum=Number(20);

C.Number num=Number(eight│OxFF);

D.枚举类型Number的取值范围是0~15


正确答案:D


改写函数为存储过程

create or replace function two_number(v_one number,v_two number)

return number is

begin

return v_one*v_two

end;

请将该函数改写为存储过程,注意传值参数如何设置


正确答案:
 


定义如下枚举类型:enum Number{one=1,tow=2,four=4,eight=8},则下列语句正确的是( )。

A.Number num=1;

B.Number num=Number(20);

C.Number num=Number(eight|OxFF);

D.枚举类型Number的取值范围是0~15


正确答案:D


Refer to the exhibit.What two results would occur if the hub were to be replaced with a switch that is configured with one Ethernet VLAN?()

A.The number of collision domains would decrease.

B.The number of collision domains would increase.

C.The number of broadcast domains would remain the same.

D.The number of collision domains would remain the same.

E. The number of broadcast domains would increase.


参考答案:B, C


The required number and type of hand portable fire extinguishers for staterooms on cargo vessels is ______.

A.one A-I

B.one B-I

C.one C-I

D.none required


正确答案:D

更多 “2022年浙江省杭州市景成实验中学英语九上期末经典模拟试题含解析” 相关考题
考题 What does the number one 1 represent for interface fe-0/0/1?()A、port numberB、PCI slot numberC、channel numberD、virtual PIC number正确答案:A

考题 What is the primary benefit of Single Number Reach?()A、 Employees can receive calls at their desk and cell phone simultaneously.B、 Customers can call one number to reach all employees.C、 Employees can have their calls forwarded to the receptionist.D、 Customers can call any office number and the receptionist receives the call.正确答案:A

考题 单选题What is the primary benefit of Single Number Reach?()AEmployees can receive calls at their desk and cell phone simultaneously.BCustomers can call one number to reach all employees.CEmployees can have their calls forwarded to the receptionist.DCustomers can call any office number and the receptionist receives the call.正确答案:B解析:暂无解析

考题 单选题A number of cylinder liners are enclosed in one cast iron casing to form a ().A cylinder coverB cylinder blockC cylinder frameD bed-plate正确答案:A解析:暂无解析

考题 One of the reasons for the growth of population in Florida is because of its()Aexpanding economyBlarge number of Cuban-AmericansCclimateDexotic foodC略

考题 问答题What is the number that is one half of one quarter of one tenth of 400?正确答案:5解析:400的十分之一是40,40的四分之一是10,10的二分之一是5。

考题 In many societies of the world, we find a large number of people who speak more than one language. As a characteristic of societies, b() inevitably results from the coming into contact of people with different cultures and different languages.bilingualism略

考题 In project network diagram ,the number of critical path is ( ).A.none B.only one C.only two D.one or more 答案:D解析:参考译文在项目网络图中,关键路径有()条。A.没有 B.只有一条 C.只有两条 D.一条或者多条

考题 问答题More than one million young people in Britain are unemployed, the highest number since the mid-1980s.正确答案:解析:

考题 What is the maximum number of network locales that can be configured for any one Cisco Unified CallManager Express when using the cnf-file perphone command?()A、1 B、2 C、4 D、5E、a number equal to the number of languages supported by Cisco Unity Express F、a number equal to the number of languages supported by Cisco Unity CallManager Express正确答案:D