SAS 练习题

合集下载

《用“SAS”证三角形全等》练习题

《用“SAS”证三角形全等》练习题
=∠E.
解: ∵C 是线段 AB 的中点, ∴AC=CB, ∵CD∥BE, ∴∠ACD=∠B, AC=CB, 在△ACD 和△CBE 中,∠ACD=∠B,∴△ACD≌△CBE(SAS),∴∠D= CD=BE, ∠E
6.如图,AB=AD,AC=AE,∠1=∠2,求证:
(1)△ABC≌△ADE; (2)CB=ED. 解:(1)∵∠1=∠2,∴∠1+∠EAC=∠2+∠EAC,即∠BAC=∠DAE, 又∵AB=AD,AC=AE,∴△ABC≌△ADE(SAS) (2)∵△ABC≌△ADE,∴CB=ED
) D
不一定 2.有两边和其中一边的对角分别相等的两个三角形_____________ 全等.
知识点1:用“SAS”判定两个三角形全等 1.下图中全等的三角形有( D ) A.图1和图2 B.图2和图3
C.图2和图4 D.图1和图3
2.(易错题) 的条件是( D
如图,AB=DB,BC=BE,欲使△ABC≌△DBE,需要增加 )
13.某大学计划为新生配备如图1所示的折叠凳.图2是折叠凳撑开后的侧 面示意图(木条等材料宽度忽略不计),其中凳腿AB和CD的长相等,O是它们 的中cm,则由以上信息可推得CB的长度是多少?
解: ∵O 是 AB, CD 的中点, ∴OA=OB, OD=OC, 在△AOD 和△BOC OA=OB, 中, ∴CB=AD.∵AD=30 cm, ∠AOD=∠BOC,∴△AOD≌△BOC(SAS), OD=OC, ∴CB=30 cm
9.如图,AB=AC,AD=AE,若要得到“△ABD≌△ACE”,必须添加 一个条件,则下列所添条件不成立的是( B )
A.BD=CE B.∠ABD=∠ACE C.∠BAD=∠CAE D.∠BAC=∠DAE

sas练习题3

sas练习题3

1. 在探讨硫酸氧钒降糖作用的实验中,测得两组动物每日进食量如表6-6所示。

试问两组动物每日进食量是否相同?两组动物每日进食量糖尿病加钒组糖尿病组26.46 46.8925.19 47.2128.70 42.4223.70 47.7024.48 40.7525.19 41.0328.01 45.9823.70 43.4626.10 44.3424.62 45.322为研究三种不同处理下大白鼠血糖浓度随室温(℃)的变化,抽取条件相同或相近的24只大白鼠随机分配于三种不同处理进行实验,结果见表:不同处理下大白鼠的血糖浓度(g/L)处理A 0.98 0.96 1.10 1.08 1.20 1.25 1.40 1.45B 0.86 0.80 1.00 1.16 1.15 1.30 1.20 1.40C 0.90 0.95 0.98 1.20 1.22 1.36 1.35 1.50问:三种处理的血糖浓度是否不同?3.试用表资料分析"右下腹压痛"与"是否患了阑尾炎"之间有无关联?201例就诊者有无右下腹压痛与手术证实是否患有阑尾炎之间的关系有无右下腹压痛是否患有阑尾炎合计是否有93 27 120无15 66 81合计108 93 2014、32名受试对象在相同实验条件下分别接受4种不同频率声音的刺激,他们的反应率(%)资料见表8-12。

问4种频率声音刺激的反应率是否有差别?(非参数检验)表8-12 32名受试对象对4种不同频率声音刺激的反应率(%)比较受试号频率A 频率B 频率C 频率D 反应率反应率反应率反应率1 8.4 9.6 9.8 11.72 11.6 12.7 11.8 12.03 9.4 9.1 10.4 9.84 9.8 8.7 9.9 12.05 8.3 8.0 8.6 8.66 8.6 9.8 9.6 10.67 8.9 9.0 10.6 11.48 7.8 8.2 8.5 10.8 5.试就下表资料分析肾重与心重间的关系。

(完整版)全等三角形的判定综合练习题

(完整版)全等三角形的判定综合练习题

1
全等三角形的判定(SSS 、SAS 、ASA 、AAS 、HL )
姓名
1、已知AB=CD ,BE=DF ,AF=CE ,则AB 与CD 有怎样的位置关系?
2、已知O 是AB 中点,OC=OD ,AOD BOC ∠=∠,求证:AC BD =
3、已知:如图,DBA CAB ∠=∠,BD AC =。

求证∠C=∠D
4、已知:如图 , ∠1=∠2 , ∠3=∠4求证:AC=AB .
5、已知:如图 , FB=CE , AB ∥ED , AC ∥FD.F 、C 在直线 BE 上. 求证:AB=DE , AC=DF .
2
6、 已知:如图 , E 、D 、B 、F 在同一条直线上 , AD ∥CB , ∠BAD=∠BCD , DE=BF .
求证:AE ∥CF.
7、如图,△ABC 中,D 是BC 上一点,DE⊥AB,DF⊥AC,E 、F 分别为垂足, 且AE=AF ,试说明:DE=DF ,AD 平分∠BAC.
8、如图,CD ⊥AB ,BE ⊥AC ,垂足分别为D 、E ,BE 交CD 于F ,且AD=DF ,求证:AC= BF 。

B
A
E
F
C
D
9、如图,AB=CD ,DF ⊥AC 于F ,BE ⊥AC 于E ,DF=BE ,求证:AF=CE.
10、如图,△ABC 中,∠C=90°,AB=2AC ,M 是AB 的中点,点N 在BC 上,MN ⊥AB 。

求证:AN 平分∠BAC 。

A
D
C
B F E
B A
2
1N M
C。

SAS认证考试(官方练习题集和校正答案)

SAS认证考试(官方练习题集和校正答案)

1. A raw data file is listedbelow.The following program issubmitted using this file asinput:data work.family;infile 'file-specification';<insert INPUTstatement here>run;Which INPUT statementcorrectly reads the values forthe variable Birthdate asSAS date values?a.input relation$ first_name$ birthdate date9.;b.input relation$ first_name$ birthdatemmddyy8.;c.input relation$ first_name$ birthdate :date9.;d.input relation$ first_name$ birthdate :mmddyy8.;Correct answer: dAn informat is used to translate the calendar date to a SAS datevalue. The date values are in the form of two-digit values formonth-day-year, so the MMDDYY8. informat must be used.When using an informat with list input, the colon-formatmodifier is required to correctly associate the informat with thevariable name.You can learn about•informats in Reading Date and Time Values•the colon-format modifier in Reading Free-FormatData.2. A raw data file is listed below.1---+----10---+----20---+---Jose,47,210Sue,,108The following SAS program is submitted using the raw data fileabove as input:data employeestats;<insert INFILE statement here>input name $ age weight;run;The following output is desired:name age weightJose47210Sue.108Which of the following INFILE statements completes theprogram and accesses the data correctly?a.infile 'file-specification' pad;b.infile 'file-specification' dsd;c.infile 'file-specification' dlm=',';d.infile 'file-specification' missover;Correct answer: bThe PAD option specifies that SAS pad variable length recordswith blanks. The MISSOVER option prevents SAS fromreading past the end of the line when reading free formatteddata. The DLM= option specifies the comma as the delimiter;however, consecutive delimiters are treated as one by default.The DSD option correctly reads the data with commas asdelimiters and two consecutive commas indicating a missingvalue like those in this raw data file.You can learn about•the PAD option in Reading Raw Data in Fixed Fields•the MISSOVER option in Creating MultipleObservations from a Single Record•the DLM= option and the DSD option in Reading Free-Format Data.3. The following program is submitted:data numrecords;infile cards dlm=',';input agent1 $ agent2 $ agent3 $;cards;jones,,brownjones,spencer,brown;run;What is the value for the variable named Agent2 in the secondobservation?a.Brownb.Spencerc.' ' (missing character value)d.There is no value because only one observation iscreated.Correct answer: dThe CARDS statement enables you to read instream data. Anynumber of consecutive commas are considered to be a singledelimiter as a result of the DLM= option, and the length of eachvariable defaults to 8 bytes. Therefore, the values jones,brownjon, and spencer are assigned to Agent1, Agent2, andAgent3, respectively, for the first observation. The rest of thedata on the record is not read by the INPUT statement and is notoutput to the data set.You can learn about•the CARDS statement in Creating SAS Data Sets fromRaw Data•the default length of variables in Reading Free-FormatData.4. A raw data file is listed below.1---+----10---+----20---+----30---+----40---+----50TWOSTORY 1040 2 1SANDERS ROAD $55,850CONDO 2150 4 2.5JEANS AVENUE $127,150The following program is submitted using this file as input:data work.houses;infile 'file-specification';<insert INPUT statement here>run;Which one of the following INPUT statements reads the rawdata file correctly?a.input @1 style $8.+1 sqfeet 4.+1 bedrooms 1.@20 baths 3.street 16.@40 price dollar8;b.input @1 style $8+1 sqfeet 4.+1 bedrooms 1.@20 baths 3.street $16@40 price dollar8.;c.input @1 style $8.+1 sqfeet 4.+1 bedrooms 1.@20 baths 3.street $16.@40 price dollar8.;d.input @1 style $8.+1 sqfeet 4.+1 bedrooms 1.@20 baths 3street 16.@40 price dollar8.;Correct answer: cFormatted input requires periods as part of the informat name.The period is missing from the variables Style and Street inAnswer b, the variable Baths in Answer d, and the variablePrice in Answer a (which is also missing a dollar sign to readthe variable Street as a character value).You can learn about formatted input and informats in ReadingRaw Data in Fixed Fields.5. The following SAS program is submitted at the start of a newSAS session:libname sasdata 'SAS-data-library';data sasdata.sales;set sasdata.salesdata;profit=expenses-revenues;run;proc print data=sales;run;The SAS data set Sasdata.Salesdata has ten observations.Which one of the following explains why a report fails togenerate?a.The DATA step fails execution.b.The SAS data set Sales does not exist.c.The SAS data set Sales has no observations.d.The PRINT procedure contains a syntax error.Correct answer: bThe DATA step creates a permanent SAS data set,Sasdata.Salesdata. The PRINT procedure is printing atemporary SAS data set, Sales, that is stored in the Worklibrary. At the beginning of the SAS session, Work.Sales doesnot exist.You can learn about•creating permanent data sets with the DATA step inCreating SAS Data Sets from Raw Data•temporary data sets in Basic Concepts.6. Which action assigns a reference named SALES to a permanentSAS data library?a.Issuing the command:libref SALES 'SAS-data-library'b.Issuing the command:libname SALES 'SAS-data-library'c.Submitting the statement:libref SALES 'SAS-data-library';d.Submitting the statement:libname SALES 'SAS-data-library';Correct answer: dThe LIBNAME statement assigns a reference known as a librefto a permanent SAS data library. The LIBNAME commandopens the LIBNAME window.You can learn about the LIBNAME statement in ReferencingFiles and Setting Options.7. The following SAS program is submitted:data newstaff;set staff;<insert WHERE statement here>run;Which one of the following WHERE statements completes theprogram and selects only observations with a Hire_date ofFebruary 23, 2000?a.where hire_date='23feb2000'd;b.where hire_date='23feb2000';c.where hire_date='02/23/2000'd;d.where hire_date='02/23/2000';Correct answer: aA SAS date constant must take the form of one- or two-digitday, three-digit month, and two- or four-digit year, enclosed inquotation marks and followed by a d ('ddmmmyy<yy>'d).You can learn about SAS date constants in Creating SAS DataSets from Raw Data.8. Which one of the following SAS date formats displays the SASdate value for January 16, 2002 in the form of 16/01/2002?a.DATE10.b.DDMMYY10.c.WEEKDATE10.d.DDMMYYYY10.Correct answer: bThe requested output is in day-month-year order and is 10 byteslong, so DDMMYY10. is the correct format. AlthoughWEEKDATE10. is a valid SAS format, it does not display theSAS date value as shown in the question above.DDMMYYYY10. is not a valid SAS date format, and theDATE w. format cannot accept a length of 10.You can learn about•the DDMMYY10. format in Creating List Reports•the WEEKDATE10. format in Reading Date and TimeValues.9. Which one of the following displays the contents of an externalfile from within a SAS session?a.the LIST procedureb.the PRINT procedurec.the FSLIST procedured.the VIEWTABLE windowCorrect answer: cThe PRINT procedure and VIEWTABLE window display thevalues in SAS data sets. The FSLIST procedure displays thevalues in external files. There is no LIST procedure in SAS.You can learn about•the PRINT procedure in Creating List Reports•the VIEWTABLE window in Referencing Files andSetting Options.10. The SAS data set Sashelp.Prdsale contains the variablesRegion and Salary with 4 observations per Region.Sashelp.Prdsale is sorted primarily by Region and withinRegion by Salary in descending order.The following program is submitted:data one;set sashelp.prdsale;retain temp;by region descending salary;if first.region thendo;temp=salary;output;end;if last.region thendo;range=salary-temp;output;end;run;For each region, what is the number of observation(s) written tothe output data set?a.0b.1c. 2d.4Correct answer: cThe expression first.region is true once for each regiongroup. The expression last.region is true once for each regiongroup. Therefore, each OUTPUT statement executes once for atotal of 2 observations in the output data set.You can learn about the FIRST.variable expression and theOUTPUT statement in Reading SAS Data Sets.11. The following SAS program is submitted:proc contents data=sasuser.houses;run;The exhibit below contains partial output produced by theCONTENTS procedure.Data Set Name SASUSER.HOUSES Observations15Member Type DATA Variables6Engine V9Indexes0Created Tuesday, April 22,2003 03:09:25 PMObservationLength56Last Modified Tuesday, April 22,2003 03:09:25 PMDeletedObservationsProtection Compressed NO Data Set Type Sorted NOLabel Residential housing for saleDataRepresentationWINDOWS_32Encoding wlatin1 Western (Windows)Which of the following describes the Sasuser.Houses data set?a.The data set is sorted but not indexed.b.The data set is both sorted and indexed.c.The data set is not sorted but is indexed.d.The data set is neither sorted nor indexed.Correct answer: dThe exhibit above shows partial output from the CONTENTSprocedure, In the top right-hand column of the output, you seethat Indexes has a value of 0, which indicates that no indexesexist for this data set. Also, Sorted has a value of NO, whichindicates that the data is not sorted.You can learn about the CONTENTS procedure in ReferencingFiles and Setting Options.12. The following SAS program is submitted:proc sort data=work.test;by fname descending salary;run;Which one of the following represents how the observations aresorted?a.The data set Work.Test is stored in ascending order byboth Fname and Salary values.b.The data set Work.Test is stored in descending order byboth Fname and Salary values.c.The data set Work.Test is stored in descending order byFname and ascending order by Salary values.d.The data set Work.Test is stored in ascending order byFname and in descending order by Salary values.Correct answer: dThe DESCENDING keyword is placed before the variable nameit modifies in the BY statement, so the correct description is indescending order by Salary value within ascending Fnamevalues.You can learn about the SORT procedure and theDESCENDING keyword in Creating List Reports.13. The following SAS program is submitted:data names;title='EDU';if title='EDU' thenDivision='Education';else if title='HR' thenDivision='Human Resources';else Division='Unknown';run;Which one of the following represents the value of the variableDivision in the output data set?catiocationc.Human Red.Human ResourcesCorrect answer: bThe length of the variable Division is set to 9 when the DATAstep compiles. Since the value of the variable Title is EDU, thefirst IF condition is true; therefore, the value of the variableDivision is Education.You can learn about•the length of a variable in Understanding DATA StepProcessing•IF-THEN statements in Creating and ManagingVariables.14. Which one of the following SAS programs creates a variablenamed City with a value of Chicago?a.data work.airports;AirportCode='ord';if AirportCode='ORD' City='Chicago';run;b.data work.airports;AirportCode='ORD';if AirportCode='ORD' City='Chicago';run;c.data work.airports;AirportCode='ORD';if AirportCode='ORD' then City='Chicago';run;d.data work.airports;AirportCode='ORD';if AirportCode='ORD';then City='Chicago';run;Correct answer: cThe correct syntax for an IF-THEN statement is: IF expressionTHEN statement;In this example, the variable City is assigned a value ofChicago only if the expression AirportCode='ORD' is true.You can learn about IF-THEN statements in Creating andManaging Variables.15. The following SAS program is submitted:data work.building;code='DAL523';code='SANFRAN604';code='HOUS731';length code $ 20;run;Which one of the following is the length of the code variable?a.6b.7c.10d.20Correct answer: aThe DATA step first goes through a compilation phase, then anexecution phase. The length of a variable is set during thecompilation phase and is based on the first time the variable isencountered. In this case, the variable code is set to the lengthof the text string DAL523 which is 6 characters long. The nextassignment statements are ignored during compilation. TheLENGTH statement is also ignored since the length has alreadybeen established, but a note will be written to the log.You can learn about•the compilation phase of the DATA step inUnderstanding DATA Step Processing•the LENGTH statement in Creating and ManagingVariables.16. Which of the following statements creates a numeric variablenamed IDnumber with a value of 4198?a.IDnumber=4198;b.IDnumber='4198';c.length IDnumber=8;d.length IDnumber $ 8;Correct answer: aThe first reference to the SAS variable in the DATA step setsthe name, type, and length of the variable in the program datavector (PDV) and in the output SAS data set. The assignmentstatement IDnumber=4198; is the first reference and creates anumeric variable named IDnumber with a default storage lengthof 8 bytes.You can learn about•creating variables in the DATA step in UnderstandingDATA Step Processing•numeric variables in Basic Concepts.17. The following program is submitted:data fltaten;input jobcode $ salary name $;cards;FLAT1 70000 BobFLAT2 60000 JoeFLAT3 30000 Ann;run;data desc;set fltaten;if salary>60000 then description='Over 60';else description='Under 60';run;What is value of the variable named description when thevalue for salary is 30000?a.Under 6b.Under 60c.Over 60d.' ' (missing character value)Correct answer: aThe variable description is being created by the IF-THEN/ELSE statement during compilation. The first occurrenceof the variable description is on the IF statement, and since itis assigned the value Over 60, the length of the variable is 7.Therefore, for the salary value of 30000, description has thevalue of Under 6 (the 0 is truncated.)You can learn about•the compilation phase of the DATA step inUnderstanding DATA Step Processing•IF-THEN/ELSE statements in Creating and ManagingVariables.18. A raw data file is listed below.1---+----10---+----20---+---102320The following program is submitted:data all_sales;infile 'file-specification';input receipts;<insert statement(s) here>run;Which statement(s) complete(s) the program and produce(s) arunning total of the Receipts variable?a.total+receipts;b.total 0;sum total;c.total=total+receipts;d.total=sum(total,receipts);Correct answer: aThe SUM function and the assignment statement do not retainvalues across iterations of the DATA step. The sum statementtotal+receipts; initializes total to 0, ignores missing valuesof receipt, retains the value of total from one iteration to thenext, and adds the value of receipts to total.You can learn about the sum statement in Creating andManaging Variables.19. A raw data file is listed below.1---+----10---+----20---+---1901 21905 11910 61925 11941 1The following SAS program is submitted and references the rawdata file above:data money;infile 'file-specification';input year quantity;total=total+quantity;What is the value of total when the data step finishesexecuting?a.0b.1c.11d. . (missing numeric value)Correct answer: dThe variable Total is assigned a missing value during thecompilation phase of the DATA step. When the first record isread in, SAS processes: total=.+2; which results in a missingvalue. Therefore the variable Total remains missing for allobservations.You can learn about•the compilation phase of the DATA step inUnderstanding DATA Step Processing•using missing values with arithmetic operators inCreating SAS Data Sets from Raw Data.20. The following program is submitted:data test;average=mean(6,4,.,2);run;What is the value of average?a.0b.3c.4d. . (missing numeric value)Correct answer: cThe MEAN function adds all of the non-missing values anddivides by the number of non-missing values. In this case, 6 + 4+ 2 divided by 3 is 4.You can learn about the MEAN function in Transforming Datawith SAS Functions.21. The following SAS program is submitted:data work.AreaCodes;Phonenumber=3125551212;Code='('!!substr(Phonenumber,1,3)!!')';run;Which one of the following is the value of the variable Code inthe output data set?a.( 3)b.(312)c.3d.312Correct answer: aAn automatic data conversion is performed whenever a numericvariable is used where SAS expects a character value. Thenumeric variable is written with the BEST12. format and theresulting character value is right-aligned when the conversionoccurs. In this example, the value of Phonenumber is convertedto character and right-aligned before the SUBSTR function isperformed. Since there are only 10 digits in the value ofPhonenumber, the right-aligned value begins with two blanks.Therefore the SUBSTR function picks up two blanks and a 3,and uses the BEST12. format to assign that value to Code. Then,the parentheses are concatenated before and after the two blanksand a 3.You can learn about automatic data conversion and theSUBSTR function in Transforming Data with SAS Functions.22. The following SAS program is submitted:data work.inventory;products=7;do until (products gt 6);products+1;end;run;Which one of the following is the value of the variableproducts in the output data set?a.5b.6c.7d.8Correct answer: dA DO UNTIL loop always executes at least once because thecondition is not evaluated until the bottom of the loop. In theSAS program above, the value of Products is incremented from7 to 8 on the first iteration of the DO UNTIL loop, before thecondition is checked. Therefore the value of Products is 8.You can learn about DO UNTIL loops in Generating Datawith DO Loops.23. The following program is submitted:data work.test;set work.staff (keep=salary1 salary2 salary3);<insert ARRAY statement here>run;Which ARRAY statement completes the program and createsnew variables?a.array salary{3};b.array new_salary{3};c.array salary{3} salary1-salary3;d.array new_salary{3} salary1-salary3;Correct answer: bAlthough each of the ARRAY statements listed above is a validstatement, only Answer B creates new variables namednew_salary1, new_salary2 and new_salary3. Answer C andAnswer D both create an array that groups the existing data setvariables salary1, salary2, and salary3. Since the array inAnswer A is named salary, it also uses the existing data setvariables.You can learn about creating new variables in an ARRAYstatement in Processing Variables with Arrays.24. Which of the following permanently associates a format with avariable?a.the FORMAT procedureb.a FORMAT statement in a DATA stepc.an INPUT function with format modifiersd.an INPUT statement with formatted style inputCorrect answer: bTo permanently associate a format with a variable, you use theFORMAT statement in a DATA step. You can use theFORMAT procedure to create a user-defined format. You usethe INPUT function to convert character data values to numericvalues with an informat. You use the INPUT statement to readdata into a data set with an informat.You can learn about•permanently assigning a format to a variable in Creatingand Managing Variables•the FORMAT statement in Creating List Reports•the FORMAT procedure in Creating and ApplyingUser-Defined Formats•the INPUT function in Transforming Data with SASFunctions•the INPUT statement in Reading Raw Data in FixedFields.25. The following report is generated:Which of the following steps created the report?a.proc freq data=sasuser.houses;tables style price /nocum;format price dollar10.;label style="Style of homes"price="Asking price";run;b.proc print data=sasuser.houses;class style;var price;table style,n price*mean*f=dollar10.;label style="Style of homes"price="Asking price";run;c.proc means data=sasuser.houses n mean;class style;var price;format price dollar10.;label style="Style of homes"price="Asking price";run;d.proc report data=sasuser.houses nowd headline;column style n price;define style / group "Style of homes";define price / mean format=dollar8."Asking price";run;Correct answer: dThe FREQ procedure cannot create the average asking price.The CLASS statement and the VAR statement are not valid foruse with the PRINT procedure. The MEANS procedure outputwould have both the N statistic and the N Obs statistic since aCLASS statement is used. The REPORT procedure producedYou can learn about•the FREQ procedure in Producing DescriptiveStatistics•the PRINT procedure in Creating List Reports•the MEANS procedure in Producing DescriptiveStatistics•the REPORT procedure in Creating Enhanced List andSummary Reports.26. A SAS report currently flows over two pages because it is toolong to fit within the specified display dimension. Which one ofthe following actions would change the display dimension sothat the report fits on one page?a.Increase the value of the LINENO option.b.Decrease the value of the PAGENO option.c.Decrease the value of the LINESIZE option.d.Increase the value of the PAGESIZE option.Correct answer: dThe PAGESIZE= SAS system option controls the number oflines that compose a page of SAS procedure output. Byincreasing the number of lines available per page, the reportmight fit on one page.You can learn about the PAGESIZE= option in ReferencingFiles and Setting Options.27. Which one of the following SAS REPORT procedure optionscontrols how column headings are displayed over multiplelines?a.SPACE=BEL=d.BREAK=Correct answer: bThe SPLIT= option specifies how to split column headings. TheSPACE=, LABEL= and BREAK= options are not valid optionsin PROC REPORT.You can learn about the SPLIT= option for the REPORTprocedure in Creating Enhanced List and Summary Reports.28. The following SAS program is submitted:ods html file='newfile.html';proc print data=sasuser.houses;run;proc means data=sasuser.houses;run;proc freq data=sasuser.shoes;run;ods html close;proc print data=sasuser.shoes;run;How many HTML files are created?a.1b.2c. 3d.4Correct answer: aBy default, one HTML file is created for each FILE= option orBODY= option in the ODS HTML statement. The ODS HTMLCLOSE statement closes the open HTML file and ends theoutput capture. The Newfile.html file contains the output fromthe PRINT, MEANS, and FREQ procedures.You can learn about the ODS HTML statement in ProducingHTML Output.29. A frequency report of the variable Jobcode in the Work.Actorsdata set is listed below.Jobcode Frequency Percent CumulativeFrequencyCumulativePercentActor I233.33233.33 Actor II233.33466.67 Actor III233.336100.00Frequency Missing = 1The following SAS program is submitted:data work.joblevels;set work.actors;if jobcode in ('Actor I', 'Actor II') thenjoblevel='Beginner';if jobcode='Actor III' thenjoblevel='Advanced';else joblevel='Unknown';run;Which of the following represents the possible values for the variable joblevel in the Work.Joblevels data set?a.Advanced and Unknown onlyb.Beginner and Advanced onlyc.Beginner, Advanced, and Unknownd.' ' (missing character value)Correct answer: aThe DATA step will continue to process those observations that satisfy the condition in the first IF statement Although Joblevel might be set to Beginner for one or more observations, the condition on the second IF statement willevaluate as false, and the ELSE statement will execute and overwrite the value of Joblevel as Unknown.You can learn about•the IF statement in Creating SAS Data Sets from RawData•the ELSE statement in Creating and ManagingVariables.30. The descriptor and data portions of the Work.Salaries data setare shown below.Variable Type Len Posname Char80salary Char816status Char88name status salaryLiz S15,600Herman S26,700Marty S35,000The following SAS program is submitted:proc print data=work.salaries;where salary<20000;run;What is displayed in the SAS log after the program is executed?a.A NOTE indicating that 1 observation is read.b.A NOTE indicating that 0 observations were read.c.A WARNING indicating that character values have beenconverted to numeric values.d.An ERROR indicating that the WHERE clause operatorrequires compatible variables.Correct answer: dSalary is defined as a character variable. Therefore, the valuein the WHERE statement must be the character value 20,000enclosed in quotation marks.You can learn about the WHERE statement in Creating ListReports.31. Which of the following statements is true when SAS encountersa syntax error in a DATA step?a.The SAS log contains an explanation of the error.b.The DATA step continues to execute and the resultingdata set is complete.c.The DATA step stops executing at the point of the errorand the resulting data set contains observations up to thatpoint.d.A note appears in the SAS log indicating that theincorrect statement was saved to a SAS data set forfurther examination.Correct answer: aSAS scans the DATA step for syntax errors during thecompilation phase. If there are syntax errors, those errors getwritten to the log. Most syntax errors prevent further processingof the DATA step.You can learn about how SAS handles syntax errors in theDATA step in Understanding DATA Step Processing.32. Which TITLE statement would display JANE'S DOG as the textof the title?a.title "JANE"S DOG";b.title 'JANE"S DOG';c.title "JANE'S DOG";d.title 'JANE' ' 'S DOG';Correct answer: c。

全等三角形SAS练习题(基础).docx

全等三角形SAS练习题(基础).docx

1、已知: 如图 , B A AB, C A AC, A B = AB, A C = AC.
求证:△ ABC≌△ AB’C‘
4、已知:如图 , AB=DC ,AD=BC ,∠DAB=∠BCD,求证:△ ABD≌△ CDB
第1 题
第 4 题
2、已知 : 如图 , △ABC中 , 点 E、 F分别在 AB、 AC边上 , 点 D是 BC边中点 , 且
DF∥AB,BE=DF.求证 :△BED≌△ DFC
5、已知 : 如图 ,AB=AC,AE平分∠ BAC.求证 : ∠ DBE=∠ DCE.
第2 题
第 5 题
3、已知 : 如图 ,AC=AB,AE=AD,∠1=∠2. 求证 : ∠ 3=∠4
6、已知:如图,AB=CD , AE=DF , AB∥CD.D、E、F、A在同一条直线上。

第 3 题求证:△ ABE≌△ DCF
9、已知 : 如图 , AC=DF,AC∥ FD,AB=DE,求证 : △ABC≌△ DEF
7、已知 : 如图 , ∠1=∠2,BD=CD,求证 :AD是∠ BAC的平分线.第9题
10、已知 : 如图 , 点B,E,C,F 在同一直线上 ,AB∥DE,且AB=DE,BE=CF.
求证 :AC∥DF
第7 题
第 10 题8、已知 : 如图 ,AD是 BC上的中线 , 且DF=DE.求证 :BE∥ CF.
11、已知:如图,四边形ABCD中, AB∥ CD , AD∥ BC.求证:△ ABD≌△ CDB
第8 题
第11 题
12、如图,点C是 AB中点, CD∥BE,且 CD=BE,试探究A D与 CE的关系。

A
C D
E
B
第 12 题。

数学sas练习题

数学sas练习题

数学sas练习题(正文部分)1. 题目:求多项式的和与差题目描述:已知多项式P(x) = 3x^2 + 2x - 5和Q(x) = 2x^2 - 4x + 1,请计算P(x) + Q(x)和P(x) - Q(x)的结果。

解法:首先,将P(x) + Q(x)的每一项按照指数的大小排列,得出: P(x) + Q(x) = (3x^2 + 2x - 5) + (2x^2 - 4x + 1)= (3x^2 + 2x^2) + (2x - 4x) + (-5 + 1)= 5x^2 - 2x - 4接下来,计算P(x) - Q(x)的结果:P(x) - Q(x) = (3x^2 + 2x - 5) - (2x^2 - 4x + 1)= (3x^2 - 2x^2) + (2x + 4x) + (-5 - 1)= x^2 + 6x - 6因此,P(x) + Q(x)的结果为5x^2 - 2x - 4,而P(x) - Q(x)的结果为x^2 + 6x - 6。

2. 题目:解方程题目描述:求解方程2x + 5 = 13。

解法:将2x + 5 = 13进行变形,得到:2x = 13 - 52x = 8再将方程两边都除以2,得到:x = 8 / 2x = 4因此,方程2x + 5 = 13的解为x = 4。

3. 题目:计算三角形的面积题目描述:已知三角形的底边长为5cm,高为8cm,请计算三角形的面积。

解法:三角形的面积可以通过底边长和高的乘积再除以2来计算。

代入已知的数值,得到:面积 = (5 * 8) / 2= 40 / 2= 20因此,三角形的面积为20平方厘米。

4. 题目:计算等差数列的和题目描述:已知等差数列的首项为3,公差为4,求前10项的和。

解法:等差数列的和可以通过首项、末项和项数来计算。

首先,根据等差数列的性质,求得第10项的数值为:a10 = a1 + (10 - 1) * d= 3 + (10 - 1) * 4= 3 + 9 * 4= 3 + 36= 39接下来,使用等差数列的求和公式,计算前10项的和:S10 = (a1 + a10) * n / 2= (3 + 39) * 10 / 2= 42 * 10 / 2= 420 / 2= 210因此,等差数列前10项的和为210。

SAS综合题1-15

SAS综合题1-15

SAS金融数据处理综合练习题1.创建一包含10000个变量(X1-X10000),100个观测值的SAS数据集。

分别用DATA步,DATA步数组语句和IML过程实现。

Data步:data p1(drop=i); retain x1-x10000 0; do i=1to100; output;end;run;data步数组:data p1(drop=i); array x x1-x10000; do i=1to100;do over x;x=ranuni(0);end;output;end;run;1.Drop=i2.删除变量i,否则就会有10001个变量。

3.i会扫描到第101次。

4.Retain语句给变量付初值。

Array:隐含下标数组,数值变量,默认下标变量_i_Do over, 隐含下标数组元素执行do组Ranuni:随机数函数,返回来自均匀分布的随机变量。

Output:输出观测到数据集中,p157宏:%macro names(name,number,obs);data a;%do i=1%to &obs;%do n=1%to &number;&name&n=1;%end;output;%end;Run;%mend names;%names(x, 10000,100);2.多种方法创建包含变量X的10000个观测值的SAS数据集。

初值为0:data a;retain x 0;do i=1to10000;drop i;output;end;run;随机数:data a (drop=i);do i=1to10000;x=ranuni(0);output;end;run;读入其他数据文件:(先创建数据文件a,再从中读取) data a (drop=i);do i=1to10000;x=ranuni(0);output;file'x:\a.txt';put x;end;run;data b;infile'x:\a.txt';input x;output;run;读入其他数据集:data a;do i=1to10000;x=ranuni(0);output;end;run;data b;set a;drop i;output;run;3.数据集A中日期变量DA TE包含有缺失值,创建包含日期变量DA TE的数据集B,并填充开始到结束日之间的所有日期值。

全等三角形SAS专题练习知识分享

全等三角形SAS专题练习知识分享

全等三角形S A S专题练习全等三角形的判定方法SAS专题练习1.如图,AB=AC,AD=AE,欲证△ABD≌△ACE,可补充条件( )A.∠1=∠2B.∠B=∠CC.∠D=∠ED.∠BAE=∠CAD2.能判定△ABC≌△A′B′C′的条件是()A.AB=A′B′,AC=A′C′,∠C=∠C′B. AB=A′B′,∠A=∠A′,BC=B′C′C. AC=A′C′,∠A=∠A′,BC=B′CD. AC=A′C′,∠C=∠C′,BC=B′C3.如图,AB与CD交于点O,OA=OC,OD=OB,∠AOD= ,根据_________可得到△AOD≌△COB,从而可以得到AD=_________.4.如图,已知BD=CD,要根据“SAS”判定△ABD≌△ACD,则还需添加的条件是。

5.如图,AD=BC,要根据“SAS”判定△ABD≌△BAC,则还需添加的条件是6.如图,已知△ABC中,AB=AC,AD平分∠BAC,请补充完整过程说明△ABD≌△ACD的理由.解:∵AD平分∠BAC,∴∠________=∠_________(角平分线的定义).在△ABD和△ACD中,∵∴△ABD≌△ACD()7.如图,AC与BD相交于点O,已知OA=OC,OB=OD,第1题第3题第4题第6题第5题求证:△AOB≌△COD证明:在△AOB和△COD中∵∴△AOB≌△COD( )8.已知:如图,AB=CB,∠1=∠2 △ABD 和△CBD 全等吗?9.已知:如图,AB=AC,AD=AE ,∠1 =∠2 。

试说明:△ABD ≌△ACE 。

10.已知:如图,△ABC中, AD⊥BC 于D,AD=BD, DC=DE,∠C=50°。

求∠ EBD的度数。

第7题【经典练习】1.在△ABC 和△C B A '''中,若AB=B A '',AC=C A '',还要加一个角的条件,使△ABC ≌△C B A ''',那么你加的条件是( )A .∠A=∠A ' B.∠B=∠B ' C.∠C=∠C ' D.∠A=∠B '2.下列各组条件中,能判断△ABC ≌△DEF 的是( ) A .AB=DE ,BC=EF ;CA=CD B.CA=CD ;∠C=∠F ;AC=EFC .CA=CD ;∠B=∠E D.AB=DE ;BC=EF ,两个三角形周长相等 3.已知△ABC 的6个元素,则下面甲乙丙三个三角形中,和△ABC 全等的图形是( )A.甲和乙B. 乙和丙C. 没有乙D. 没有甲4.如图工作师傅做门时,常用木条EF 固定矩形门框ABCD ,使其不变形这种做法根据是( ).A 、两点之间线段最短B 、矩形的对称性C 、矩形的四个角都是直角D 、三角形的稳定性5.如果△ABC ≌△DEF ,且△ABC 的周长95cm ,A 、B 分别与D 、E 对应并且AB=30cm ,DF=25 cm ,那么BC 的长等于( )A .40cmB .35cmC .30cmD .25cm 6.如图,AB ∥DE ,CD=BF ,若△ABC ≌△DEF ,还需要补充的条件可以是( )A .AC=EFB .AB=DEC .∠B=∠ED .不用补充 7.如图,∠CAB =∠DBA ,AC=BD ,则下列结论中,不正确的是( )A 、BC=ADB 、CO=DOC 、∠C =∠D D 、∠AOB=∠C +∠DAC B 50°50°72° a bcab c 甲D A C A D FE8.如图,AB=AC ,若AD 平分∠BAC ,则AD 与BC9.阅读理解题:如图:已知AC ,BD 相交于O,OA=OB ,OC=OD. 那么△ABC 与△BAD 全等吗?请说明理由.△ABC 与△BAD 全等吗?请说明理由.小明的解答: 21∠=∠AOD ≌△BOC而BAD=△AOD+△ADB △ABC=△BOC+△AOB所以△ABC ≌△BAD(1)你认为小明的解答有无错误;(2)如有错误给出正确解答;10.如图,点C 是AB 中点,CD ∥BE ,且CD=BE ,试探究11.如图,AE 是,BAC 的平分线∠AB=AC(1)若D 是AE 上任意一点,则△ABD ≌△ACD (2)若D 是AEBCDOA=OOD=OD12.如图,已知AB=AC ,EB=EC ,请说明BD=CD 的理由13. 如图,△ABC ,△BDF 为等腰直角三角形。

SAS上机练习题(全部-含参考答案)

SAS上机练习题(全部-含参考答案)

医科大学--卫生统计学统计软件包SAS上机练习题(一)1、SAS常用的窗口有哪三个?请在三个基本窗口之间切换并记住这些命令或功能键。

2、请在PGM窗口中输入如下几行程序,提交系统执行,并查看OUTPUT窗和LOG窗中容,注意不同颜色的含义;并根据日志窗中的信息修改完善程序。

3、将第2题的程序、结果及日志保存到磁盘。

4、试根据如下例1的程序完成后面的问题:表1 某班16名学生3门功课成绩表如下问题:1)建立数据集;2)打印至少有1门功课不及格同学的信息;(提示,使用if语句)参考程序:data a;input id sh wl bl;cards;083 68 71 65084 74 61 68085 73 75 46086 79 80 79087 75 71 68084 85 85 87085 78 79 75086 80 76 79087 85 80 82088 77 71 75089 67 73 71080 75 81 70118 70 54 75083 70 66 84084 62 73 65099 82 70 79;run;data b;set a;if sh<60 or wl<60 or bl<60then output;run;proc print data=b;var id sh wl bl;run;5、根据下列数据建立数据集表2 销售数据开始时间终止时间费用2005/04/28 25MAY2009 $123,345,0002005 09 18 05OCT2009 $33,234,5002007/08/12 22SEP2009 $345,60020040508 30JUN2009 $432,334,500提示:(格式化输入;数据之间以空格分隔,数据对齐;注意格式后面的长度应以前一个位置结束开始计算,如果读入错误,可试着调整格式的宽度;显示日期需要使用输出格式)开始时间,输入格式yymmdd10.终止时间,输入格式date10.费用,输入格式dollar12.参考程序:data a;input x1 yymmdd10. x2 date10. x3 dollar13.;cards;2005/04/28 25MAY2009 $123,345,0002005 09 18 05OCT2009 $33,234,5002007/08/12 22SEP2009 $345,60020040508 30JUN2009 $432,334,500;run;proc print;run;proc print;format x1 yymmdd10. x2 date9. x3 dollar13.;run;6、手机一编码规则一般是:YYY-XXXX-ZZZZ,其YYY为号段;XXXX一般为所在地区编码;ZZZZ为对应的个人识别编号。

SAS认证220道_练习题及详细答案

SAS认证220道_练习题及详细答案

SAS Certificate Base Practice Questions and Detailed Answers Chapter 1: Basic ConceptsChapter 2: Referencing Files and Setting OptionsChapter 3: Editing and Debugging SAS ProgramsChapter 4: Creating List ReportsChapter 5: Creating SAS Data Sets from Raw DataChapter 6: Understanding DATA Step ProcessingChapter 7: Creating and Applying User-Defined FormatsChapter 8: Creating Enhanced List and Summary ReportsChapter 9: Producing Descriptive StatisticsChapter 10: Producing HTML OutputChapter 11: Creating and Managing VariablesChapter 12: Reading SAS Data SetsChapter 13: Combining SAS Data SetsChapter 14: Transforming Data with SAS FunctionsChapter 15: Generating Data with DO LoopsChapter 16: Processing Variables with ArraysChapter 17: Reading Raw Data in Fixed FieldsChapter 18: Reading Free-Format DataChapter 19: Reading Date and Time ValuesChapter 20: Creating a Single Observation from Multiple RecordsChapter 21: Creating Multiple Observations from a Single RecordChapter 22: Reading Hierarchical FilesChapter 1: Basic Concepts Answer Key1.How many observations and variables does the data set below contain?a. 3 observations, 4 variablesb. 3 observations, 3 variablesc. 4 observations, 3 variablesd.can't tell because some values are missingCorrect answer:cRows in the data set are called observations, and columns are called variables. Missing values don't affect the structure of the data set.2.How many program steps are executed when the program below is processed?data user.tables;infile jobs;input date name $ job $;run;proc sort data=user.tables;by name;run;proc print data=user.tables;run;a.threeb.fourc.fived.sixCorrect answer:aWhen it encounters a DATA, PROC, or RUN statement, SAS stops reading statements andexecutes the previous step in the program. The program above contains one DATA step and two PROC steps, for a total of three program steps.3.What type of variable is the variable AcctNum in the data set below?a.numericb.characterc.can be either character or numericd.can't tell from the data shownCorrect answer:bIt must be a character variable, because the values contain letters and underscores, which are not valid characters for numeric values.4.What type of variable is the variable Wear in the data set below?a.numericb.characterc.can be either character or numericd.can't tell from the data shownCorrect answer:aIt must be a numeric variable, because the missing value is indicated by a period rather than by a blank.5.Which of the following variable names is valid?a.4BirthDateb.$Costc._Items_d.Tax-RateCorrect answer:cVariable names follow the same rules as SAS data set names. They can be 1 to 32 characters long, must begin with a letter (A–Z, either uppercase or lowercase) or an underscore, and can continue with any combination of numbers, letters, or underscores.6.Which of the following files is a permanent SAS file?a.Sashelp.PrdSaleb.Sasuser.MySalesc.Profits.Quarter1d.all of the aboveCorrect answer:dTo store a file permanently in a SAS data library, you assign it a libref other than the default Work. For example, by assigning the libref Profits to a SAS data library, you specify that files within the library are to be stored until you delete them. Therefore, SAS files in the Sashelp and Sasuser libraries are permanent files.7.In a DATA step, how can you reference a temporary SAS data set named Forecast?a.Forecastb.Work.Forecastc.Sales.Forecast (after assigning the libref Sales)d.only a and b aboveCorrect answer:dTo reference a temporary SAS file in a DATA step or PROC step, you can specify the one-level name of the file (for example, Forecast) or the two-level name using the libref Work (for example, Work.Forecast).8.What is the default length for the numeric variable Balance?a. 5b. 6c.7d.8Correct answer:dThe numeric variable Balance has a default length of 8. Numeric values (no matter how many digits they contain) are stored in 8 bytes of storage unless you specify a different length.9.How many statements does the following SAS program contain?proc print data=new.prodsalelabel double;var state day price1 price2; where state='NC';label state='Name of State';run;a.threeb.fourc.fived.sixCorrect answer:cThe five statements are•PROC PRINT statement (two lines long)•VAR statement•WHERE statement (on the same line as the VAR statement)•LABEL statement•RUN statement (on the same line as the LABEL statement).10.What is a SAS data library?a. a collection of SAS files, such as SAS data sets and catalogsb.in some operating environments, a physical collection of SAS filesc.in some operating environments, a logically related collection of SAS filesd.all of the aboveCorrect answer:dEvery SAS file is stored in a SAS data library, which is a collection of SAS files, such as SAS data sets and catalogs. In some operating environments, a SAS data library is a physical collection of files. In others, the files are only logically related. In the Windows and UNIX environments, a SAS data library is typically a group of SAS files in the same folder or directory.Chapter 2: Referencing Files and Setting Options1.If you submit the following program, how does the output look?options pagesize=55 nonumber;proc tabulate data=clinic.admit;class actlevel;var age height weight;table actlevel,(age height weight)*mean;run;options linesize=80;proc means data=clinic.heart min max maxdec=1;var arterial heart cardiac urinary;class survive sex;run;a.The PROC MEANS output has a print line width of 80 characters, but the PROCTABULATE output has no print line width.b.The PROC TABULATE output has no page numbers, but the PROC MEANS outputhas page numbers.c.Each page of output from both PROC steps is 55 lines long and has no page numbers,and the PROC MEANS output has a print line width of 80 characters.d.The date does not appear on output from either PROC step.Correct: answer:cWhen you specify a system option, it remains in effect until you change the option or end your SAS session, so both PROC steps generate output that is printed 55 lines per page with no page numbers. If you don't specify a system option, SAS uses the default value for that system option.2.In order for the date values 05May1955 and 04Mar2046 to be read correctly, what value mustthe YEARCUTOFF= option have?a. a value between 1947 and 1954, inclusiveb.1955 or higherc.1946 or higherd.any valueCorrect answer:dAs long as you specify an informat with the correct field width for reading the entire date value, the YEARCUTOFF= option doesn't affect date values that have four-digit years.3.When you specify an engine for a library, you are always specifyinga.the file format for files that are stored in the library.b.the version of SAS that you are using.c.access to other software vendors' files.d.instructions for creating temporary SAS files.Correct answer:aA SAS engine is a set of internal instructions that SAS uses for writing to and reading from files in a SAS library. Each engine specifies the file format for files that are stored in the library, which in turn enables SAS to access files with a particular format. Some engines access SAS files, and other engines support access to other vendors' files.4.Which statement prints a summary of all the files stored in the library named Area51?a.proc contents data=area51._all_ nods;b.proc contents data=area51 _all_ nods;c.proc contents data=area51 _all_ noobs;d.proc contents data=area51 _all_.nods;Correct answer:aTo print a summary of library contents with the CONTENTS procedure, use a period to append the _ALL_ option to the libref. Adding the NODS option suppresses detailed information about the files.5.The following PROC PRINT output was created immediately after PROC TABULATEoutput. Which SAS system options were specified when the report was created?a.OBS=, DATE, and NONUMBERb.PAGENO=1, and DATEc.NUMBER and DATE onlyd.none of the aboveCorrect answer:bClearly, the DATE and PAGENO= options are specified. Because the page number on the output is 1, even though PROC TABULATE output was just produced. If you don't specify PAGENO=, all output in the Output window is numbered sequentially throughout your SAS session.6.Which of the following programs correctly references a SAS data set named SalesAnalysisthat is stored in a permanent SAS library?a.data saleslibrary.salesanalysis;set mydata.quarter1sales;if sales>100000;run;b.data mysales.totals;set sales_99.salesanalysis;if totalsales>50000;run;c.proc print data=salesanalysis.quarter1;var sales salesrep month;run;d.proc freq data=1999data.salesanalysis;tables quarter*sales; run;Correct answer:bLibrefs must be 1 to 8 characters long, must begin with a letter or underscore, and can contain only letters, numbers, or underscores. After you assign a libref, you specify it as the first element in the two-level name for a SAS file.7.Which time span is used to interpret two-digit year values if the YEARCUTOFF= option isset to 1950?a.1950-2049b.1950-2050c.1949-2050d.1950-2000Correct answer:aThe YEARCUTOFF= option specifies which 100-year span is used to interpret two-digit year values. The default value of YEARCUTOFF= is 1920. However, you can override the default and change the value of YEARCUTOFF= to the first year of another 100-year span. If you specify YEARCUTOFF=1950, then the 100-year span will be from 1950 to 2049.8.Asssuming you are using SAS code and not special SAS windows, which one of thefollowing statements is false?a.LIBNAME statements can be stored with a SAS program to reference the SAS libraryautomatically when you submit the program.b.When you delete a libref, SAS no longer has access to the files in the library.However, the contents of the library still exist on your operating system.c.Librefs can last from one SAS session to another.d.You can access files that were created with other vendors' software by submitting aLIBNAME statement.Correct answer:cThe LIBNAME statement is global, which means that librefs remain in effect until you modify them, cancel them, or end your SAS session. Therefore, the LIBNAME statement assigns the libref for the current SAS session only. You must assign a libref before accessingSAS files that are stored in a permanent SAS data library.9.What does the following statement do?libname osiris spss 'c:\myfiles\sasdata\data';a.defines a library called Spss using the OSIRIS engineb.defines a library called Osiris using the SPSS enginec.defines two libraries called Osiris and Spss using the default engined.defines the default library using the OSIRIS and SPSS enginesCorrect answer:bIn the LIBNAME statement, you specify the library name before the engine name. Both are followed by the path.10.What does the following OPTIONS statement do?options pagesize=15 nodate;a.suppresses the date and limits the page size of the logb.suppresses the date and limits the vertical page size for text outputc.suppresses the date and limits the vertical page size for text and HTML outputd.suppresses the date and limits the horizontal page size for text outputCorrect answer:bThese options affect the format of listing output only. NODATE suppresses the date and PAGESIZE= determines the number of rows to print on the page.Chapter 3: Editing and Debugging SAS Programs Answer Key1.As you write and edit SAS programs it's a good idea toa.begin DATA and PROC steps in column one.b.indent statements within a step.c.begin RUN statements in column one.d.all of the aboveCorrect answer:dAlthough you can write SAS statements in almost any format, a consistent layout enhances readability and enables you to understand the program's purpose. It's a good idea to begin DATA and PROC steps in column one, to indent statements within a step, to begin RUN statements in column one, and to include a RUN statement after every DATA step or PROC step.2.What usually happens when an error is detected?a.SAS continues processing the step.b.SAS continues to process the step, and the log displays messages about the error.c.SAS stops processing the step in which the error occurred, and the log displaysmessages about the error.d.SAS stops processing the step in which the error occurred, and the program outputdisplays messages about the error.Correct answer:cSyntax errors generally cause SAS to stop processing the step in which the error occurred. When a program that contains an error is submitted, messages regarding the problem also appear in the SAS log. When a syntax error is detected, the SAS log displays the word ERROR, identifies the possible location of the error, and gives an explanation of the error.3. A syntax error occurs whena.some data values are not appropriate for the SAS statements that are specified in aprogram.b.the form of the elements in a SAS statement is correct, but the elements are not validfor that usage.c.program statements do not conform to the rules of the SAS language.d.none of the aboveCorrect canswer:Syntax errors are common types of errors. Some SAS system options, features of the Editorwindow, and the DATA step debugger can help you identify syntax errors. Other types oferrors include data errors, semantic errors, and execution-time errors.4.How can you tell whether you have specified an invalid option in a SAS program?a. A log message indicates an error in a statement that seems to be valid.b. A log message indicates that an option is not valid or not recognized.c.The message "PROC running" or "DATA step running" appears at the top of theactive window.d.You can't tell until you view the output from the program.Correct answer:bWhen you submit a SAS statement that contains an invalid option, a log message notifies you that the option is not valid or not recognized. You should recall the program, remove or replace the invalid option, check your statement syntax as needed, and resubmit the corrected program.5.Which of the following programs contains a syntax error?Correct answer:bThe DATA step contains a misspelled keyword (dat instead of data). However, this is such a common (and easily interpretable) error that SAS produces only a warning message, not an error.6.What does the following log indicate about your program?proc print data=sasuser.cargo99var origin dest cargorev;2276ERROR 22-322: Syntax error, expecting one of the following:;, (, DATA, DOUBLE, HEADING, LABEL, N, NOOBS, OBS, ROUND, ROWS, SPLIT, STYLE,UNIFORM, WIDTH.ERROR 76-322: Syntax error, statement will be ignored.11 run;a.SAS identifies a syntax error at the position of the VAR statement.b.SAS is reading VAR as an option in the PROC PRINT statement.c.SAS has stopped processing the program because of errors.d.all of the aboveCorrect answer:dBecause there is a missing semicolon at the end of the PROC PRINT statement, SAS interprets VAR as an option in PROC PRINT and finds a syntax error at that location. SAS stops processing programs when it encounters a syntax error.Chapter 4: Creating List Reports Answer Key 1.Which PROC PRINT step below creates the following output?Correct answer:cThe DATA= option specifies the data set that you are listing, and the ID statement replaces the Obs column with the specified variable. The VAR statement specifies variables and controls the order in which they appear, and the WHERE statement selects rows based on a condition. The LABEL option in the PROC PRINT statement causes the labels that are specified in the LABEL statement to be displayed.2.Which of the following PROC PRINT steps is correct if labels are not stored with thedata set?Correct aanswer:You use the DATA= option to specify the data set to be printed. The LABEL optionspecifies that variable labels appear in output instead of variable names.3.Which of the following statements selects from a data set only those observations forwhich the value of the variable Style is RANCH, SPLIT, or TWOSTORY?Correct answer:dIn the WHERE statement, the IN operator enables you to select observations based on several values. You specify values in parentheses and separate them by spaces or commas. Character values must be enclosed in quotation marks and must be in the same case as in the data set.4.If you want to sort your data and create a temporary data set named Calc to store thesorted data, which of the following steps should you submit?Correct answer:cIn a PROC SORT step, you specify the DATA= option to specify the data set to sort. The OUT= option specifies an output data set. The required BY statement specifies the variable(s) to use in sorting the data.5.Which options are used to create the following PROC PRINT output?13:27 Monday, March 22, 1999 Patient Arterial Heart Cardiac Urinary203 88 95 66 11054 83 183 95 0664 72 111 332 12210 74 97 369 0101 80 130 291 0a.the DATE system option and the LABEL option in PROC PRINTb.the DATE and NONUMBER system options and the DOUBLE and NOOBSoptions in PROC PRINTc.the DATE and NONUMBER system options and the DOUBLE option inPROC PRINTd.the DATE and NONUMBER system options and the NOOBS option in PROCPRINTCorrect answer:bThe DATE and NONUMBER system options cause the output to appear with the date but without page numbers. In the PROC PRINT step, the DOUBLE option specifies double spacing, and the NOOBS option removes the default Obs column.6.Which of the following statements can you use in a PROC PRINT step to create thisoutput?Correct answer:dYou do not need to name the variables in a VAR statement if you specify them in the SUM statement, but you can. If you choose not to name the variables in the VAR statement as well, then the SUM statement determines the order of the variables in the output.7.What happens if you submit the following program?proc sort data=clinic.diabetes;run;proc print data=clinic.diabetes;var age height weight pulse;where sex='F';run;a.The PROC PRINT step runs successfully, printing observations in their sortedorder.b.The PROC SORT step permanently sorts the input data set.c.The PROC SORT step generates errors and stops processing, but the PROCPRINT step runs successfully, printing observations in their original (unsorted)order.d.The PROC SORT step runs successfully, but the PROC PRINT step generateserrors and stops processing.Correct answer:cThe BY statement is required in PROC SORT. Without it, the PROC SORT step fails. However, the PROC PRINT step prints the original data set as requested.8.If you submit the following program, which output does it create?proc sort data=finance.loans out=work.loans;by months amount;run;proc print data=work.loans noobs; var months;sum amount payment;where months<360;run;a.b.c.d.Correct answer:aColumn totals appear at the end of the report in the same format as the values of the variables, so b is incorrect. Work.Loans is sorted by Month and Amount, so c isincorrect. The program sums both Amount and Payment, so d is incorrect.9.Choose the statement below that selects rows which•the amount is less than or equal to $5000•the account is 101-1092 or the rate equals 0.095.Correct answer:cTo ensure that the compound expression is evaluated correctly, you can use parentheses to groupaccount='101-1092' or rate eq 0.095OBS Account Amount Rate MonthsPayment1 101-1092 $22,000 10.00%60 $467.432 101-1731 $114,0009.50% 360 $958.573 101-1289 $10,000 10.50%36 $325.024 101-3144 $3,500 10.50%12 $308.525 103-1135 $8,700 10.50%24 $403.476 103-1994 $18,500 10.00%60 $393.077 103-2335 $5,000 10.50%48 $128.028 103-3864 $87,500 9.50% 360 $735.759 103-3891 $30,000 9.75% 360 $257.75For example, from the data set above, a and b above select observations 2 and 8 (those that have a rate of 0.095); c selects no observations; and d selects observations 4 and 7 (those that have an amount less than or equal to 5000).10.What does PROC PRINT display by default?a.PROC PRINT does not create a default report; you must specify the rows andcolumns to be displayed.b.PROC PRINT displays all observations and variables in the data set. If youwant an additional column for observation numbers, you can request it.c.PROC PRINT displays columns in the following order: a column forobservation numbers, all character variables, and all numeric variables.d.PROC PRINT displays all observations and variables in the data set, a columnfor observation numbers on the far left, and variables in the order in which they occur in the data set.Correct answer:dYou can remove the column for observation numbers. You can also specify the variables you want, and you can select observations according to conditions.Chapter 5: Creating SAS Data Sets from Raw Data Answer Key1.Which SAS statement associates the fileref Crime with the raw data fileC:\States\Data\Crime?a.filename crime 'c:\states\data\crime';b.filename crime c:\states\data\crime;c.fileref crime 'c:\states\data\crime';d.filename 'c:\states\data\crime' crime; Correct aanswer:Before you can read your raw data, you must reference the raw data file by creating afileref. You assign a fileref by using a FILENAME statement in the same way thatyou assign a libref by using a LIBNAME statement.2.Filerefs remain in effect untila.you change them.b.you cancel them.c.you end your SAS session.d.all of the aboveCorrect answer:dLike LIBNAME statements, FILENAME statements are global; they remain in effect until you change them, cancel them, or end your SAS session.3.Which statement identifies the name of a raw data file to be read with the filerefProducts and specifies that the DATA step read only records 1-15?a.infile products obs 15;b.infile products obs=15;c.input products obs=15;d.input products 1-15;Correct answer:bYou use an INFILE statement to specify the raw data file to be read. You can specify a fileref or an actual filename (in quotation marks). The OBS= option in the INFILE statement enables you to process only records 1 through n.4.Which of the following programs correctly writes the observations from the data setbelow to a raw data file?Correct answer:dThe keyword _NULL_ in the DATA statement enables you to use the power of the DATA step without actually creating a SAS data set. You use the FILE and PUT statements to write out the observations from a SAS data set to a raw data file. The FILE statement specifies the raw data file and the PUT statement describes the lines towrite to the raw data file. The filename and location that are specified in the FILE statement must be enclosed in quotation marks.5.Which raw data file can be read using column input?a.b.c.d.all of the aboveCorrect answer:bColumn input is appropriate only in some situations. When you use column input, your data must be standard character or numeric values, and they must be in fixed fields. That is, values for a particular variable must be in the same location in all records.6.Which program creates the output shown below?Correct answer:aThe INPUT statement creates a variable using the name that you assign to each field. Therefore, when you write an INPUT statement, you need to specify the variable names exactly as you want them to appear in the SAS data set.7.Which statement correctly reads the fields in the following order: StockNumber,Price, Item, Finish, Style?Field Name Start Column End Column Data TypeStockNumber 1 3 characterFinish 5 9 characterStyle 11 18 characterItem 20 24 characterPrice 27 32 numericCorrec t answer:bYou can use column input to read fields in any order. You must specify the variable name to be created, identify character values with a $, and name the correct starting column and ending column for each field.8.Which statement correctly re-defines the values of the variable Income as 100percent higher?a.income=income*1.00;b.income=income+(income*2.00);c.income=income*2;d.income=*2;Correct answer:cTo re-define the values of the variable Income in an Assignment statement, you specify the variable name on the left side of the equal sign and an appropriate expression including the variable name on the right side of the equal sign.9.Which program correctly reads instream data?a.data finance.newloan;input datalines;if country='JAPAN';MonthAvg=amount/12;1998 US CARS 194324.121998 US TRUCKS 142290.301998 CANADA CARS 10483.441998 CANADA TRUCKS 93543.641998 MEXICO CARS 22500.571998 MEXICO TRUCKS 10098.881998 JAPAN CARS 15066.431998 JAPAN TRUCKS 40700.34;b.data finance.newloan;input Year 1-4 Country $ 6-11Vehicle $ 13-18 Amount 20-28;if country='JAPAN';MonthAvg=amount/12;datalines;run;c.data finance.newloan;input Year 1-4 Country 6-11Vehicle 13-18 Amount 20-28;if country='JAPAN';MonthAvg=amount/12;datalines;1998 US CARS 194324.121998 US TRUCKS 142290.301998 CANADA CARS 10483.441998 CANADA TRUCKS 93543.641998 MEXICO CARS 22500.571998 MEXICO TRUCKS 10098.881998 JAPAN CARS 15066.431998 JAPAN TRUCKS 40700.34;d.data finance.newloan;input Year 1-4 Country $ 6-11Vehicle $ 13-18 Amount 20-28;if country='JAPAN';MonthAvg=amount/12;datalines;1998 US CARS 194324.121998 US TRUCKS 142290.301998 CANADA CARS 10483.441998 CANADA TRUCKS 93543.641998 MEXICO CARS 22500.571998 MEXICO TRUCKS 10098.881998 JAPAN CARS 15066.431998 JAPAN TRUCKS 40700.34;Correct answer:dTo read instream data, you specify a DATALINES statement and data lines, followed by a null statement (single semicolon) to indicate the end of the input data. Program a contains no DATALINES statement, and the INPUT statement doesn't specify the fields to read. Program b contains no data lines, and the INPUT statement in program c doesn't specify the necessary dollar signs for the character variables Country and Vehicle.10.Which SAS statement subsets the raw data shown below so that only the observationsin which Sex (in the second field) has a value of F are processed?a.if sex=f;b.if sex=F;c.if sex='F';d. a or bCorrect answer:cTo subset data, you can use a subsetting IF statement in any DATA step to process only those observations that meet a specified condition. Because Sex is a character variable, the value F must be enclosed in quotation marks and must be in the same case as in the data set.Chapter 6: Understanding DATA Step Processing Answer Key1.Which of the following is not created during the compilation phase?。

sas练习题

sas练习题

SAS练习题一、基础操作类1. 如何在SAS中创建一个数据集?2. 请写出SAS中读取外部数据文件的语句。

3. 如何在SAS中查看数据集的结构?4. 如何在SAS中对数据集进行排序?5. 请写出SAS中合并两个数据集的语句。

6. 如何在SAS中删除一个数据集?7. 请简述SAS中变量的命名规则。

8. 如何在SAS中修改数据集的属性?9. 请写出SAS中创建临时数据集和永久数据集的语句。

10. 如何在SAS中导入和导出Excel文件?二、数据处理类1. 如何在SAS中对缺失值进行处理?2. 请写出SAS中计算变量总和、平均数、最大值和最小值的语句。

3. 如何在SAS中进行条件筛选?4. 请简述SAS中日期和时间的处理方法。

5. 如何在SAS中实现数据的分组汇总?6. 请写出SAS中创建新变量的语句。

7. 如何在SAS中进行数据类型转换?8. 请写出SAS中替换变量值的语句。

9. 如何在SAS中实现数据的横向连接和纵向连接?10. 请简述SAS中数组的使用方法。

三、统计分析类1. 如何在SAS中进行单因素方差分析?2. 请写出SAS中进行t检验的语句。

3. 如何在SAS中计算相关系数?4. 请简述SAS中回归分析的基本步骤。

5. 如何在SAS中进行主成分分析?6. 请写出SAS中进行聚类分析的语句。

7. 如何在SAS中实现时间序列分析?8. 请简述SAS中生存分析的基本概念。

9. 如何在SAS中进行非参数检验?10. 请简述SAS中多重响应分析的方法。

四、图形绘制类1. 如何在SAS中绘制直方图?2. 请写出SAS中绘制散点图的语句。

3. 如何在SAS中绘制饼图?4. 请简述SAS中绘制箱线图的方法。

5. 如何在SAS中绘制条形图?6. 请写出SAS中绘制折线图的语句。

7. 如何在SAS中设置图表的颜色和样式?8. 请简述SAS中绘制雷达图的方法。

9. 如何在SAS中实现图表的交互功能?10. 请简述SAS中图表导出的方法。

SAS基础期末练习题

SAS基础期末练习题

选择题(50)1、input语句一般用来指定数据的读入方式,可以读取各种类型的数据,包括字符型,现有如下一段程序:data one;input name $ score;cards;wanglin 85zhang dong-feng 90;Run;那么在第二个观测中读取到的name为(B)A.zhang dong-fengB. zhangC. zhang doD.zhang dong2、data test;do I=1 to 3;put I= ;end;run;程序在log窗口输出形式为(A)A.I=1 I=2 I=3B. I=2 I=3 I=4C.不显示D. I=3 I=2 I=13、SAS数据集文件后缀名为(A)A、sas7bdatB、sasC、logD、list4、SAS程序由(D)组成,语句用分号结束。

A 过程步B 数据步C 函数步D 语句5、Delete语句表示从表中删去(B)表达式为()的所有行A where 假B where 真C if假D if 真6、假设变量X的值为5,有如下程序if x<5 thenX=x+3;Else x=x-2;则执行程序以后x的值为(B)A.5 B.3 C.8 D.程序错误7、一个完整的SAS程序通常包括和 (B)A、数据步——函数步B、数据步——过程步C、定义步——函数步D、定义步——过程步8、由(A)、分析变量和统计量关键词组成的表达式构成描述性统计报表。

A.分类变量B.sas变量C.sas函数D.sas语言9、SAS系统中除了(B)以外的逻辑库都是永久库。

A.SashelpB.WorkC.MapsD.Sasuser10、默认情况下,快捷键F1-F9中,哪一个键激活编辑器窗口?(A)A、F5B、F6C、F7D、F911、SAS变量的长度默认为(A)个字节。

A、8B、16C、32D、6412、SAS程序中一般不区分大小写,除了(D)中要区分大小写A、数据步B、过程步C、SAS语句D、字符串13、以下不能搭配使用的是(D)A.do…endB.start…finishC.if…thenD.ods…print15 在SAS中建立逻辑库实质上是建立逻辑名和__A______的对应关系A 磁盘上的目录B 磁盘上的数据文件C SAS数据集D Excel文件16 与CARDS语句等价的是_____D___语句A DATAB ENDC FORMATD DATALINES17 在SAS中,如果不经____C____语句特别设置,字符串变量的缺省长度最大为________A LENGTH 16B VAR 8C LENGTH 8D DEFINE 1618 解读下语句的意义 INPUT (name score1-score5) ($10. 5*4.); 是___A______A 变量name长度为10,score1到score5这五个变量长度为4B 变量name长度为10,score1到score5这五个变量长度为5C 所有变量长度均为10,初值为20D 所有变量长度均为20,初值为1019、假设变量X的值为5,有如下程序:IF X THENY=X;ELSEY=X-2;则执行程序以后变量Y的值为(A)A 、5 B、3 C、8 D、程序错误20、假设变量X1=9,X2=5.752,则MOD[X1,LNT(X2)]/SIGN(X2)的运算结果为(C)A、-4B、0.4C、4D、-0.421、数值型常用缺省值用(B)表示A ’—‘B ‘.’C ‘空格’D _22、可以表示缺失值的字符不正确的是(D)A 空格B 点C MISSING语句规定的字符D 横线23、下列配套语句中不一定正确的是(D)A do endB point stopC select fromD if else24、下面那个不是函数自变量的类型(B)A 变量名B 运算符C 函数D 常数25、PUT 是(C)A 保留字B 代码C 关键字D 输入函数26、如下一段程序:Data;Input x @@;Cards;2 3 4 9 1;Run;模块当运行程序以后SAS系统会产生SAS数据集(C)A dataB nullC data1D 程序错误27、data test;Do i=1 to 3;End;Run;程序结果在log窗口输出形式为(A)A i=1 i=2 i=3B i=2 i=3 i=4C 不显示D i=3 i=2 i=128、SAS在读入外部数据文件时的数据,用(B)语句A INFILEB INPUTC OUTPUTD FILE29、横向合并时需要用什么语句?(D)A outputB fileC inputD merge30、指数算符R=1:5;产生的向量是(A)A、R={1 2 3 4 5}B、R={1, 2 ,3, 4, 5}C、R={1 5}D、R={1 3 5}31、data ex;input date mmddyy10.;format date date9.;put date=;cards;12-01-2016 ;proc print;run; 正确的运行结果是(D)A:12/01/2016B:01/12/2016C:12JAN2016D:01DEC201632、data test;do l=1 to 3;put l=;end;run;程序结果在log窗口输出形式为(A)A.l=1 l=2 l=3B.l=2 l=3 l=4C.不显示D.l=3 l=2 l=133、RUN是(D)A、核心字B、过程步C、数据步D、关键字34、字符变量y占5列且保留两位小数的输入格式为(B)rmat y$7.2rmat y$5.2C.format y$5.2D.input y$7.235、下列每组的两个语句中,不等价的是(D)A.sum(of x1-x5);B.put x 1-8.2;sum(x1,x2,x3,x4,x5); put @1 x 8.2;C.Z=min(A,B);D.%let DSN=ResDat.class;Z=A><B; %macro MAC;文本;%mend MAC;36、在prociml中,如果有关键字start,后面一定要接(D)A、quitB、stopC、pointD、finish37下列引用SAS常数的方法,正确的是(D)=”TOM””S”;=’TOM’S’;=”TOM”S”;=”TOM’s”;38选择矩形的子阵,下列语句正确的是(A)A.summat1=coffee[ {1 3 } , {2 3 5} ];B.summat1=coffee( 1 ,3 ; 2 ,3, 5 );C.summat1=coffee {1 3 } , {2 3 5} ;D.summat1=coffee[ 1 3 , 2 3 5 ];39下列语句中,正确的是(D)A.sin0;B.data aC.ln(x);D.put x=’’;40、有如下SAS程序:data fh;Input x 4.2;Cards;122.115.623.46;Proc print;Run;则运行结果是:(A)A:0.12 2.10 15.60 23.40 B:12 2.1 15.6 23.46 C:0.12 2.1 15.6 23.46 D:12 2.1 15.60 26.4041、选出下面中是求行最大值和的语句(C)A. B=A[,<>[,+]]B. B=A[<>,][,+]C. B=A[,<>][+,]D. B=A[<>,][+,]42、下列哪一个程序不能创建五阶矩阵(A)A. proc iml;aa=shape({1,5}1,5);print ;run;B. proc iml;a=uniform(repeat(0,5,5);print a;run;C. proc iml;one=j(5,5,7);print one;run;D. proc iml;a={1 2 3 4 52 3 4 5 63 4 5 6 74 5 6 7 55 6 9 6 6};Print;Run;43、对变量x1—x5求和的程序步是:(B)A:sum of (x1—X5);B: sum (of x1—x5);C:sum (x1—x5)‘D:sum x;44、间接引用宏变量%let data1=x;%let data2=y;%let data3=z;%macro test;____C______;%put &&data%i;%end;%mend test;%test;A.do i=1 to 3B.%do i=1 to 3C.%do i=1 %to 3D.do i=1 %to 345、自然数求和Data a;T=0;___A_____;T=t+n;Output;End;Proc print;Run;B.do n=1 to 100 B.n=1 to 100C.1 to 100D.do n=1 to n=10046、姓名属于(D)A、分类变量B、分析变量C、自变量D、其他47、功能键F8的功能是(D)A、显示帮助B、进入编辑窗口C、进入日志窗口D、程式提交运行48、point必须与(D)配对?A、endB、finishC、procD、stop49、最简单的定义宏变量的方式就是使用程序语句(B)A、%macro macB、%letC、%macD、%if50、可以在(D)使用全局通用语句A、data步B、过程步C、数据步D、任何地方填空题(70道)1、一个完整的SAS程序由二部分组成:数据步与过程步。

全等三角形的判定SAS练习题

全等三角形的判定SAS练习题

D C BA 全等三角形的判定(SAS)1、如图1,AB ∥CD ,AB=CD ,BE=DF ,则图中有多少对全等三角形( )A.3B.4C.5D.62、如图2,AB=AC ,AD=AE ,欲证△ABD ≌△ACE ,可补充条件( )A.∠1=∠2B.∠B=∠CC.∠D=∠ED.∠BAE=∠CAD3、如图3,AD=BC ,要得到△ABD 和△CDB 全等,可以添加的条件是( )A.AB ∥CDB.AD ∥BCC.∠A=∠CD.∠ABC=∠CDA4、如图4,AB 与CD 交于点O ,OA=OC ,OD=OB ,∠AOD=________,•根据_________可得到△AOD ≌△COB ,从而可以得到AD=_________.5、如图5,已知△ABC 中,AB=AC ,AD 平分∠BAC ,请补充完整过程说明△ABD ≌△ACD 的理由. ∵AD 平分∠BAC , ∴∠________=∠_________(角平分线的定义).在△ABD 和△ACD 中,∵____________________________, ∴△ABD ≌△ACD ( )6、如图6,已知AB=AD ,AC=AE ,∠1=∠2,求证∠ADE=∠B.7、如图,已知AB=AD ,若AC 平分∠BAD ,问AC 是否平分∠BCD ?为什么?8、如图,在△ABC 和△DEF 中,B 、E 、F 、C ,在同一直线上,下面有4个条件,请你在其中选3个作为题设,余下的一个作为结论,写一个真命题,并加以证明.①AB=DE ; ②AC=DF ; ③∠ABC=∠DEF ; ④BE=CF.9、如图⑴,AB ⊥BD ,DE ⊥BD ,点C 是BD 上一点,且BC=DE ,CD=AB .⑴试判断AC 与CE 的位置关系,并说明理由.⑵如图⑵,若把△CDE 沿直线BD 向左平移,使△CDE 的顶点C 与B 重合,此时第⑴问中AC 与BE 的位置关系还成立吗?(注意字母的变化)。

12.2全等三角形的判定(SSS、SAS、ASA、AAS)练习题

12.2全等三角形的判定(SSS、SAS、ASA、AAS)练习题

12.2全等三角形的判定(SSS 、SAS 、ASA 、AAS )练习题1.下列说法正确的是( )A .全等三角形是指形状相同的两个三角形B .全等三角形的周长和面积分别相等C .全等三角形是指面积相等的两个三角形D .所有等边三角形都全等.2.如图,在ABC ∆中,AC AB =,D 为BC 的中点,则下列结论中:①ABD ∆≌ACD ∆;②C B ∠=∠; ③AD 平分BAC ∠;④BC AD ⊥,其中正确的个数为( ) A .1个 B .2个 C .3个 D .4个 3.在ABC ∆和111C B A ∆中,已知11B A AB =,11C B BC =,则补充条件____________,可得到ABC ∆≌111C B A ∆. 4.如图,CD AB =,DE BF =,E 、F 是AC 上两点,且CF AE =.欲证D B ∠=∠,可先运用等式的性质证明AF =________,再用“SSS ”证明________≌_________•得到结论.2题图 4题图 5题图 6题图 5.如图,下列条件中能使ABD ∆≌ACD ∆的是( )A .AC AB =,C B ∠=∠ B .AC AB =,ADC ADB ∠=∠ C .AC AB =,CAD BAD ∠=∠ D .CD BD =,CAD BAD ∠=∠6.如图,线段AB 、CD 互相平分交于点O ,则下列结论错误的是( ) A .BC AD = B .D C ∠=∠ C .BC AD // D .OB OC =7.已知两边及其中一边的对角,作三角形,下列说法中正确的是( ) A .能作唯一的一个三角形 B .最多能作两个三角形 C .不能作出确定的三角形 D .以上说法都不对 8.如图,已知1∠=∠B ,CF BE =,要使ABC ∆≌DEF ∆,下面所添的条件正确的是( ) A .DF AC = B .EF BC = C .EF AC = D .DE AB =8题图 9题图 11题图 12题图 15题图9.如图,在ABC ∆中,AC AB =,点E 、F 是中线AD 上的两点,则图中可证明为全等的三角形有( ) A . 3对 B .4对 C .5对 D .6对 10.如图,ABC ∆和DEF ∆中,下列能判定ABC ∆≌DEF ∆的是( )A .DF AC =,EF BC =,D A ∠=∠B .E B ∠=∠,FC ∠=∠,DF AC = C .D A ∠=∠,E B ∠=∠,F C ∠=∠ D .E B ∠=∠,F C ∠=∠,DE AC = 11.如图,BC AD =,BD AC =,则图中全等三角形有( ) A .1对 B .2对 C .3对 D .4对12.如图,AB CD ⊥于D ,AC BE ⊥于E ,AO 平分BAC ∠,则图中全等三角形有( ) A .1对 B .2对 C .3对 D .4对13.已知B A AB ''=,A A '∠=∠,B B '∠=∠,则ABC ∆≌C B A '''∆的根据是( ) A .SAS B .SSA C .ASA D .AAS 14.ABC ∆和DEF ∆中,DE AB =,E B ∠=∠,要使ABC ∆≌DEF ∆ ,则下列补充的条件中错误的是( ) A .DF AC = B .EF BC = C .D A ∠=∠ D .F C ∠=∠15.如图,AD 平分BAC ∠,AC AB =,则图中全等三角形的对数是( )16.如图,AC AB ⊥,CD BD ⊥,21∠=∠,欲得到CE BE =,•可先利用_______, 证明ABC ∆≌DCB ∆,得到______=______,再根据___________,•证明________•≌________,即可得到CE BE =.17.如图,已知BC AD //,BC AD =.求证:ADC ∆≌CBA ∆18.如图,D 是ABC ∆中边BC 的中点,ACD ABD ∠=∠,且AC AB =. 求证:⑴ABD ∆≌ACD ∆ ⑵EC EB =19.如图,点A 、E 、B 、D 在同一直线上,DE AB =,DF AC =,DF AC //. ⑴求证:ABC ∆≌DEF ∆⑵你还可以得到的结论是 (写出一个即可)20.如图,AE AC =,E C ∠=∠,21∠=∠.求证:ABC ∆≌ADE ∆.21.如图,点B 、E 、C 、F 在同一直线上,CF BE =,DE AB =,DF AC =. 求证:D EGC ∠=∠精品文档22.如图,CE AE =,CE AE ⊥,︒=∠=∠90B D ,求证:DB AB CD =+23.如图,已知: AD 是BC 上的中线 ,且DF=DE .求证:BE ∥CF .24.如图,已知21∠=∠,43∠=∠ 求证:BE BD =25.如图,已知CD AB =,BD AC =,求证:BE CE =.26. 如图:AB=CD ,AE=DF ,CE=FB ,求证:AF=DE 。

sas初赛练习题

sas初赛练习题

sas初赛练习题SAS(Statistical Analysis System)初赛练习题旨在测试参赛者对SAS软件的使用能力以及数据分析的基本方法。

本文将以问题-解决方案的形式来回答各个练习题,并附上相应的代码和结果。

问题一:计算BMI指数BMI指数(Body Mass Index)是一种常用的身体质量指数计算方法,通过以下公式计算:BMI = 体重(kg)/ 身高(m)^2假设有一组数据,记录了50位参赛者的身高(单位:cm)和体重(单位:kg),请编写SAS代码计算每位参赛者的BMI指数,并输出结果。

解决方案:```sasdata participants;input height weight;/* 将身高转换为米 */height = height / 100;BMI = weight / (height * height);datalines;160 60165 65170 70175 75180 80/* 其他参赛者数据 */;run;proc print data=participants;var height weight BMI;run;```运行以上代码,你将得到一个包含BMI指数的数据集。

你可以使用`proc print`命令来查看计算结果。

问题二:筛选数据假设你的队友已经给出了一个数据集,其中记录了参赛者的姓名(name)、年龄(age)和成绩(score)。

现在需要对数据进行筛选,要求只保留年龄在20岁以上并且成绩大于80分的参赛者数据。

请编写SAS代码完成此筛选。

解决方案:```sasdata selected_participants;set participants;where age > 20 and score > 80;run;proc print data=selected_participants;var name age score;run;```以上代码将针对之前问题一的数据集进行筛选,将满足条件的参赛者数据保存在一个新的数据集中,并使用`proc print`查看结果。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

练习:
1、现对3个草地类型(A、 B、 C)做比较试验,比较的指标有:密度、生物量和草层高度,每个指标重复测定5次,测得的数据如下:
变异系数和方差。

2、有一水稻施肥试验,A因素为肥料种类,3个水平(A1、A2、A3),B因素为剂量,2个水平(B1、B2),C因素为重复,3个水平(C1、C2、C3),随机区组设计,3次重复;得水稻产量为:
A1B1C1 25 20 28 A1B1C2 32 39 35 A1B1C3 53 61 57
A1B2C1 45 50 40 A1B2C2 63 61 70 A1B2C3 72 80 76
A2B1C1 13 20 23 A2B1C2 12 25 18 A2B1C3 25 28 30
A2B2C1 32 38 30 A2B2C2 54 50 60 A2B2C3 43 48 51
A3B1C1 25 18 29 A3B1C2 30 36 38 A3B1C3 37 44 41
A3B2C1 47 52 56 A3B2C2 40 48 51 A3B2C3 25 26 30
试分别计算A、B、C的平均数、平均数标准误、变异系数和方差。

3、玉米品种的10个果穗长度为:19、21、20、20、18、19、22、21、21、19,相应的籽粒数为:35 、32、 36、 3
4、 30、 29、 40、 3
5、 39、 37 ,试计算:
1> 果穗长度和籽粒数的平均数、标准差、标准误、变异系数;
2> 分别对10个果穗长度和籽粒数做z=y+1变换,试计算:变换后果穗长度和籽粒数的平均数、标准差、标准误、变异系数;
4、某草地1990年至1997年9年中的草地群落特征:平均生物量为Y (g/m2),植物种类数X1(种/m2),草层高度X2(cm),密度X3(株/m2),试写出该数据集。

Y X1 X2 X3
137 4 15 27
148 6 26 38
154 10 33 20
157 18 38 99
153 13 41 43
…..
5、研究践踏对高羊茅草坪密度的影响,试验设践踏处理(人工模拟)和未践踏(ck)二个处理,践踏持续30天,每10天测定草坪密度一次,测定结果如下,试分析践踏和ck处理在10天、20天和30天的草坪密度的平均数和平均标准误。

相关文档
最新文档