• 2022-05-27
    PartA
    Directions:
    Someinternationalsstudentsarecomingtoyouruniversity.WritethemanemailinthenameoftheStudents’Unionto
    1)extendyourwelcomeand
    2)providesomesuggestionsfortheircampuslifehere.
    Youshouldwriteabout100wordsonANSWERSHEET2.
    Donotsignyournameattheendoftheletter.Use“LiMing”instead.
    Donotwritetheaddress.(10points)
  • Dearinternationalstudents,IamthechairmanoftheStudents’Union.I’vejustreceivedtheemailsfromyouandgotthenewsthatyouwouldcometoouruniversity.Firstly,I’dliketoshowourwarmwelcome.Onbehalfofouruniversityandallthestudentshere,Ireallylookforwardtoyourcoming.Inordertomakeallofyoufeelathome,herearesomeconductivesuggestions.Firstly,you’dbettertakesomewarmclotheswithyoubecauseitiswinterinChinanowanditisverycoldinBeijing.Secondly,IadviseyoutopreparesomerelevantknowledgeaboutChinesecultureforbetterunderstandinginclass.Ireallyhopeyou’llfindtheseproposalsuseful.AndI’mlookingforwardtoyourcoming!

    举一反三

    内容

    • 0

      与语句[br][/br]if(a>b)[br][/br] if(c>d) x = 1;[br][/br] else x = 2; 等价的是 ____[br][/br] A、 if(a>b) {if(c>d) x = 1; else x = 2;}[br][/br] [br][/br]B、 if(a>b){if(c>d) x = 1;} else x = 2;[br][/br]C、 if((a>b) && (c>d)) x = 1; else x = 2;[br][/br]D、 if(a[ =b) x = 2; else if (c]d) x = 1;

    • 1

      实现将数组a=np.arange (10).reshape(2,-1)和数组b=np.repeat(1,10).reshape(2,-1)水平堆叠的代码。[br][/br]import numpy as np[br][/br]a=np.arange (10).reshape(2,-1)[br][/br]b=np.repeat(1,10).reshape(2,-1)[br][/br]array= A: np.hstack((a,b)) B: np.vstack((a,b)) C: np.stack((a,b)) D: np.concatenate((a,b))

    • 2

      有以下程序[br][/br]#include <stdio.h>[br][/br]main()[br][/br]{ int a=1,b=2;[br][/br]While(a<6){b+=a;a+=2;b%=10;}[br][/br]printf(“%d,%d\n”,a,b);[br][/br]}[br][/br]程序运行后的输出结果是( )。[br][/br] A: 5,11 B: 7,1 C: 7,11 D: 6,1

    • 3

      有以下程序:[br][/br]#include <stdio.h>[br][/br]main()[br][/br]{ int a=2,b=2,c=2;[br][/br]printf("%d\n",a/b&c);[br][/br]}[br][/br]程序运行后的输出结果是( )。[br][/br] A: 0 B: 1 C: 2 D: 3

    • 4

      下面代码的输出结果是( )。[br][/br]a={1,2,3}[br][/br]b={3,4,5}[br][/br]print(a-b) A: {-2,-2,-2} B: {1,2} C: 1 2 D: -2 -2 -2