999kao.com
SASBase认证考试(70真题+答案详解

有以下类定义 class MyClass { private: int id; Char gender; Char*phone; public: MyClass():id(0),gender(‘#’),phone(NULL){} MyClass(int no,charge=’#’,char*ph=NULL) {id=no;gender=ge;phone=ph;} ); 下列类对象定义语句中错误的是( )。

A.MyClass myObj;

B.MyClass myObj(11,”13301111155”);

C.MyClassmyObj(12,’m’);

D.MyClassmyObj(12);


正确答案:B
解析: 本题考查构造函数的应用。对象建立用初始化列表对数据成员进行时,列表中的参数类型要与构造函数中形参类型一致。B选项中第二个参数为”13301111155”是字符串,而构造函数中第二个形参为char型,两者不一致造成错误。


Given:Which code, inserted at line 4, guarantees that this program will output [1, 2]()?

A.Set set = new TreeSet();

B.Set set = new HashSet();

C.Set set = new SortedSet();

D.List set = new SortedList();

E.Set set = new LinkedHashSet();


参考答案:A


有以下类定义: class MyClass { private: int id; char gender; char *phone; public: MyClass():id(0),gender('#'),phone(NULL){} MyClass(int no,char ge='#',char *ph=NULL) {id=no;gender=ge;phone=ph; } };下列类对象定义语句中错误的是______。

A.MyClass myObj;

B.MyClass myObj(11,"13301111155");

C.MyClass my0bj(12,'m');

D.MyClass myObj(12);


正确答案:B
解析:初始化应该和构造函数相同。


Which of the following is the correct configuration for a RAID 5 array?()

A. A two disk set with one data strip

B. A three disk set with two data strips and a parity strip

C. A two disk set with two data strips

D. A four disk set with two sets of data strips


参考答案:B


Where is the run date for an ‘at’ job located?()

A.Within the job environment set up

B.Within the user data of the at job

C.In the file name preceeded with a userid

D.In a special file used by the cron daemon


参考答案:A


SAS Base认证考试70题SAS分多个认证种类:base,advanced,clinic等,但大多需要先通过base认证。但凡这类商业组织提供的考证,基本都是题库型,所以想考过难度并不大。对于只想拿SAS认证的人,如果熟练掌握网上流传甚广的sas真题70题,通过base认证基本就没问题。Q 11. The following SAS program is submitted:data WORK.TOTAL;set WORK.SALARY;by Department Gender;if First. then Payroll=0; Payroll+Wagerate;if Last.;run;The SAS data set WORK.SALARY is currently ordered by Gender within Department.Which inserted code will accumulate subtotals for each Gender within Department?A. GenderB. DepartmentC. Gender DepartmentD. Department Gender答案:A本题知识点:自动变量在SAS读取数据时,在PDV过程中会产生很多自动变量,在输出的数据集中是不可见的。 FIRST.VARIABLE:同一个BY变量(组),若新的变量值第一次出现时,其first.variable值为1。 LAST.VARIABLE:同一个BY变量(组),若新的变量值最后一次出现时,其last.variable值为1。另外,在BY变量右面有多个变量时,先按第一个变量排序,若第一个变量的观测存在重复时,才按第二个变量排序。Q 2Given the following raw data records in TEXTFILE.TXT: -|-10-|-20-|-30 John,FEB,13,25,14,27,Final John,MAR,26,17,29,11,23,Current Tina,FEB,15,18,12,13,Final Tina,MAR,29,14,19,27,20,CurrentThe following output is desired:Obs Name Month Status Week1 Week2 Week3 Week4 Week5 1 John FEB Final $13 $25 $14 $27 . 2 John MAR Current $26 $17 $29 $11 $23 3 Tina FEB Final $15 $18 $12 $13 . 4 Tina MAR Current $29 $14 $19 $27 $20Which SAS program correctly produces the desired output?A. data WORK.NUMBERS;length Name $ 4 Month $ 3 Status $ 7;infile TEXTFILE.TXT dsd;input Name $ Month $;if Month=FEB then input Week1 Week2 Week3 Week4 Status $;else if Month=MAR then input Week1 Week2 Week3 Week4 Week5 Status $;format Week1-Week5 dollar6.;run;proc print data=WORK.NUMBERS;run;B. data WORK.NUMBERS;length Name $ 4 Month $ 3 Status $ 7;infile TEXTFILE.TXT dlm=, missover;input Name $ Month $;if Month=FEB then input Week1 Week2 Week3 Week4 Status $;else if Month=MAR then input Week1 Week2 Week3 Week4 Week5 Status $;format Week1-Week5 dollar6.;run;proc print data=WORK.NUMBERS;run;C. data WORK.NUMBERS;length Name $ 4 Month $ 3 Status $ 7;infile TEXTFILE.TXT dlm=,;input Name $ Month $ ;if Month=FEB then input Week1 Week2 Week3 Week4 Status $;else if Month=MAR then input Week1 Week2 Week3 Week4 Week5 Status $;format Week1-Week5 dollar6.;run;proc print data=WORK.NUMBERS;run;D. data WORK.NUMBERS;length Name $ 4 Month $ 3 Status $ 7;infile TEXTFILE.TXT dsd ;input Name $ Month $;if Month=FEB then input Week1 Week2 Week3 Week4 Status $;else if Month=MAR then input Week1 Week2 Week3 Week4 Week5 Status $;format Week1-Week5 dollar6.;run;proc print data=WORK.NUMBERS;run;答案:C本题知识点:INFILE语句与指示器、INFILE filespecification options;其中,filespecification用来定义文件, options给出选择项; filespecification有以下三种形式:、fileref(文件标志)、filename(文件名)、CARDS指明输入的数据,紧跟着CARDS语句 下列选择项(options)可以出现在INFILE语句中:、COLUMN=variable或COL=variable 定义一个变量, 其值是指针所在的当前列位置。、END=variable 定义一个变量, 作为文件结束的标志。、EO、F=label是一个语句标号, 当INFILE语句读到文件末尾时, 作为隐含的GOTO语句的目标。、LENGHT=variable 定义一个变量, 其值是当前输入数据行的长度。、FIRSTOBS=linenumber 要求从指定的行开始读取数据, 而不是从文件的第一个记录开始。、OBS=n 指定从一个顺序输入文件中读取数据的最后一个行(即第1第n行)。一个观察可能占n行。、DLM= 若分隔符不是空格,则使用DLM=指定、DSD 忽略引号中数值的分隔符;自动将字符数据中的引号去掉;将两个相邻分隔符视为缺失值处理。、MISSOVER 阻止INPUT进入下一行读取,未赋值变量视为缺失值。、TRUNC、OVER 与MISSOVER相似,但在COLUMN INPUT或FORMATTED INPUT中使用。比较 与 的区别: 用于1个数据行用多个input语句读取,停留到下一个INPUT语句。 用于1个数据行含有多个观测值读取时,停留到下一个DATA步。Q 3The following SAS program is submitted:data WORK.DATE_INFO; Day=01 ; Yr=1960 ; X=mdy(Day,01,Yr) ;run;What is the value of the variable X?A. the numeric value 0B. the chara

All client computers on your company network run Windows 7. The Finance department staff run an application that collects data from 09.30 hours to 15.00 hours everyday. After data collection, the application generates reports that contain data aggregation for the day and the previous week. During report generation, the Finance department staff experience slow performance on their computers. You discover that the usage of the processor on these computers is between 90 and 100 percent. You need to reduce the impact of report generation on the Finance computers. What should you do?()

A.Set the priority of the application to Low.

B.Set the priority of the application to Real-time.

C.Configure the processor affinity mask to ensure that the application uses all the available processors.

D.Modify the memory settings of the computers to optimize the performance of the background applications.


参考答案:A


Some women in recent years have brought successful court challenges to gender discrimination in job ads,but the______the companies were ordered to pay was low。

A.regulation
B.occupation
C.permission
D.compensation

答案:D
解析:
本题考查近义词辨析。题目意为“近年来,一些女性成功地在法庭中打赢了招聘广告中性别歧视的官司,但公司被要求支付的赔偿却往往不高。”A选项“管理,规则”,B选项“职业,占有”,C选项“许可,准许”,D选项“补偿,赔偿”。根据句意,公司需要向女性支付赔偿金,选项D正确。
  


Which of the following is the correct configuration for a RAID 5 array?()

  • A、A two disk set with one data strip
  • B、A three disk set with two data strips and a parity strip
  • C、A two disk set with two data strips
  • D、A four disk set with two sets of data strips

正确答案:B


The SET CONTROLFILE AUTOBACKUP FORMAT command, which you can specify either within a RUN block or at the RMAN prompt, overrides the configured autobackup in the session only.  What is the order of precedence?() 1. SET within RUN  2. SET at RMAN prompt  3. CONFIGURE

  • A、1,2,3 
  • B、2,3,1 
  • C、3,2,1 
  • D、There is no precedence between RUN and the RMAN prompt. Each will override CONFIGURE in the session. 

正确答案:A


You want to perform in incomplete recovery of your database.  You plan to use these commands to recover your database:  SET UNTIL TIME = ’2000-12-09:11:44:00’;  RESTORE DATABASE; RECOVER DATABASE;  How should the commands be executed? ()

  • A、Only the SET command must be within a RUN block.
  • B、All commands should be executed at the RMAN prompt.
  • C、All three commands must be within a single RUN block.
  • D、Only the RESTORE and RECOVER commands must be within a single RUN block.

正确答案:C

更多 “SASBase认证考试(70真题+答案详解” 相关考题
考题 Which action(s) will cause a compression dictionary to be removed from a table?()A、Set the table COMPRESS attribute to NO.  B、Set the table COMPRESS attribute to NO; run REORG against the table.  C、Set the table COMPRESS attribute to NO; run INSPECTRESETDICTIONARY against the table.  D、Set the table COMPRESS attribute to NO; run RUNSTATS against the table.正确答案:B

考题 The warning level threshold value for a tablespace, DATA1, is set to 60% and the critical level threshold value is set to 80%. The tablespace, DATA1, is infrequently used and is not a part of the production environment. You issued the following command:        SQL> EXECUTE   DBMS_SERVER_ALERT.SET_THRESHOLD        (dbms_server_alert.tablespace_pct_full,        dbms_server_alert.operator_ge,80,        dbms_server_alert.operator_ge,90,        1,1,NULL,   dbms_server_alert.object_type_tablespace,’DATA’);   What will be the result of the command?()  A、 The command will be executed successfully only if the tablespace DATA1 is a dictionary-managed tablespace.B、 The total numbers of alerts that you receive every day will be reduced.C、 The total number of alerts that you receive every day will be increased.D、 No more data will be added to the DATA1 tablespace if 80% of the space allocated to the DATA1 tablespace is used.正确答案:B

考题 Which of the following datatypes are used in situations where you want an ordered set of data elements, where every element is the same datatype, and where you predefine the number of elements that appear in the set?()A、REF B、TABLE C、CLOB D、VARRAY正确答案:D

考题 When CONFIGURE CONTROLFILE AUTOBACKUP is set to ON, RMAN automatically performs a control file autobackup in which three situations?()A、At the end of every RUN block. B、After every SET CONTROLFILE AUTOBACKUP FORMAT command. C、After every BACKUP or COPY command issued at the RMAN prompt. D、At the end of every RUN block if the last command in the block was either BACKUP or COPY. E、Whenever a BACKUP or COPY command within a RUN block is followed by a command that is neither BACKUP nor COPY. F、After every BACKUP or COPY command within a RUN block that is followed by the CONFIGURE CONTROLFILE AUTOBACKUP FORMAT command.正确答案:C,D,E

考题 You need to meet the business requirements of the packaging department. What should you do?()A、Add the ProductSize data table and the ProductSizeDescriptor column to the Product dimension. Set the order of the ProductSKU attribute to the ProductSizeDescriptor column.B、Add the ProductSize data table as a dimension and then add this dimension to the cube as a Referenced dimension. Set the order of the key attribute of the ProductSize dimension to the ProductSizeDescriptor column.C、Add the ProductSize data table and the ProductSizeDescriptor column to the Product dimension. Create a user-defined hierarchy that has ProductSKU as the top-level attribute and ProductSizeDescriptor as the bottom-level attribute.D、Add the ProductSize data table as a dimension and then add this dimension to the cube as a Referenced dimension. Create a user-defined hierarchy within the ProductSize dimension. Set the ProductSizeDescriptor attribute as the top-level attribute.正确答案:A

考题 Which of the following RMAN structures can data from a datafile span?()A、 RMAN backup-set pieces spanning backup setsB、 RMAN backup-set pieces within a given backup setC、 RMAN backupsD、 RMAN channelsE、 None of the above正确答案:B

考题 单选题1. import java.util.*;  2. public class Example {  3. public static void main(String[] args) {  4. // insert code here  5. set.add(new integer(2));  6. set.add(new integer(l));  7. System.out.println(set);  8. }  9. }  Which code, inserted at line 4, guarantees that this program will output [1,2]? ()ASet set = new TreeSet();BSet set = new HashSet();CSet set = new SortedSet();DList set = new SortedList();ESet set = new LinkedHashSet();正确答案:D解析:暂无解析

考题 1. import java.util.*;  2. public class Example {  3. public static void main(String[] args) {  4. // insert code here  5. set.add(new integer(2));  6. set.add(new integer(l));  7. System.out.println(set);  8. }  9. }  Which code, inserted at line 4, guarantees that this program will output [1,2]? ()A、 Set set = new TreeSet();B、 Set set = new HashSet();C、 Set set = new SortedSet();D、 List set = new SortedList();E、 Set set = new LinkedHashSet();正确答案:A

考题 单选题hich of the following RMAN structures can data from a datafile span?()A RMAN backup-set pieces spanning backup sets B RMAN backup-set pieces within a given backup sets C RMAN backups D RMAN channels E None of the above正确答案:E解析:暂无解析

考题 Your network consists of a single Active Directory domain.? All domain controllers run Windows Server 2008. You need to identify the Lightweight Directory Access Protocol (LDAP) clients that are using the largest amount of available CPU resources on a domain controller. What should you do()A、Review performance data in Resource Monitor.B、Review the Hardware Events log in the Event Viewer.C、Run the LAN Diagnostics Data Collector Set. Review the LAN Diagnostics report.D、Run the Active Directory Diagnostics Data Collector Set. Review the Active DirectoryDiagnostics正确答案:D