0

programming languages Online Quiz - 251

Description: programming languages Online Quiz - 251
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Bottenbruch

  2. Dennis Ritchie

  3. McCarthy

  4. Martin Richards


Correct Option: B

Who designed BCPL (Basic Combined Programming Language)?

  1. W. A. Wulf

  2. Martin Richards

  3. D. B. Russell

  4. A. N. Habermann


Correct Option: B

Who developed J# (pronounced 'jay-sharp')?

  1. Google

  2. Microsoft

  3. Oracle

  4. Sun


Correct Option: B

Who developed Oak ?

  1. Guido van Rossum

  2. Dennis Ritchie

  3. James Gosling

  4. Won Neuman


Correct Option: C

Who designed Ruby ?

  1. James Smith

  2. Carl Hofman

  3. Yukihiro Matsumoto

  4. J Bannerji


Correct Option: C

The value 38245.3975 displayed using the format DOLLAR12.2 and DOLLAR8.2 are:

  1. $38,245.39 and 38245.39

  2. $38,245.40 and $38245.40

  3. $38,245.40 and 38245.40

  4. $38,245.40 and 38,245.40


Correct Option: C

Filerefs remain in effect until

  1. you change them

  2. you cancel them

  3. you end your SAS session

  4. all of the above


Correct Option: D

Suppose you want to create a report using both character and numeric variables. If you don't use any DEFINE statements in your PROC REPORT step

  1. your PROC REPORT step will not execute successfully

  2. you can produce only list reports

  3. you can order rows by specifying options in the PROC REPORT statement

  4. you can produce only summary reports


Correct Option: B

Which time span is used to interpret two-digit year values if the YEARCUTOFF= option is set to 1950?

  1. 1950-2049

  2. 1950-2050

  3. 1949-2050

  4. 1950-2000


Correct Option: A

AI Explanation

To answer this question, we need to understand the concept of the YEARCUTOFF option in SAS.

In SAS, the YEARCUTOFF option is used to interpret two-digit year values. It specifies the cutoff year for interpreting two-digit years as four-digit years.

If the YEARCUTOFF option is set to 1950, it means that any two-digit year values from 50 to 99 will be interpreted as 1950 to 1999, and any two-digit year values from 00 to 49 will be interpreted as 2000 to 2049.

The correct answer is A) 1950-2049. This time span is used to interpret two-digit year values if the YEARCUTOFF option is set to 1950.

PROC CONTENTS can read sequential files. The CONTENTS statement cannot.True or False?

  1. True

  2. False


Correct Option: B

You can use only one DATALINES statement in a DATA step.True or False?

  1. True

  2. False


Correct Option: B

While working with Formats,If you don't specify the LIBRARY= option, your formats are stored in Work.Formats, and they exist

  1. only for the current procedure

  2. only for the current DATA step

  3. only for the current SAS session

  4. permanently


Correct Option: C

The default statistics produced by the MEANS procedure are n-count, mean, minimum, maximum, and

  1. median

  2. range

  3. standard deviation

  4. standard error of the mean


Correct Option: C

AI Explanation

To answer this question, we need to understand the default statistics produced by the MEANS procedure.

The MEANS procedure in statistical software, such as SAS or SPSS, calculates descriptive statistics for a given variable or set of variables. These statistics provide a summary of the data distribution.

The default statistics produced by the MEANS procedure are:

  1. n-count: This represents the number of non-missing values for the variable(s) being analyzed.
  2. mean: This represents the average value of the variable(s) being analyzed.
  3. minimum: This represents the smallest value observed in the variable(s).
  4. maximum: This represents the largest value observed in the variable(s).

The correct answer is C) standard deviation.

Option A) median: The median is not a default statistic produced by the MEANS procedure. The median represents the middle value in a set of data, which is not included in the default statistics.

Option B) range: The range is not a default statistic produced by the MEANS procedure. The range represents the difference between the maximum and minimum values, which are already included in the default statistics.

Option C) standard deviation: The standard deviation is a measure of the dispersion or spread of the data. It is not included in the default statistics produced by the MEANS procedure.

Option D) standard error of the mean: The standard error of the mean measures the variability of sample means from different samples. It is not included in the default statistics produced by the MEANS procedure.

Therefore, the correct answer is C) standard deviation.

Which statement will limit a PROC MEANS analysis to the variables Boarded, Transfer, and Deplane

  1. by boarded transfer deplane;

  2. class boarded transfer deplane;

  3. output boarded transfer deplane;

  4. var boarded transfer deplane;


Correct Option: D
Explanation:

To limit a PROC MEANS analysis to the variables Boarded, Transfer, and Deplane, we need to specify the variables in the procedure statement.

Option A "by boarded transfer deplane" is used to specify the variables used in the BY statement for the procedure. This is not used to limit the variables in the analysis.

Option B "class boarded transfer deplane" is used to classify variables. This option is not used to limit the variables in the analysis.

Option C "output boarded transfer deplane" is used to specify the variables to be included in the output dataset. This option is not used to limit the variables in the analysis.

Option D "var boarded transfer deplane" is used to specify the variables to be analyzed in the PROC MEANS statement. This option is correct as it limits the analysis to the specified variables.

Therefore, the answer is: D. var boarded transfer deplane;

Which of the following statements is true regarding BY-group processing

  1. BY variables must be either indexed or sorted

  2. Summary statistics are computed for BY variables

  3. BY-group processing is preferred when you are categorizing data that contains few variables

  4. BY-group processing overwrites your data set with the newly grouped observations


Correct Option: A

The WHERE statement does not perform automatic conversions(character/numeric) in comparisons :True or False?

  1. True

  2. False


Correct Option: B

The Equivalent Code for CATX(SP, OF X1-X4) is

  1. X1||SP ||X2||SP||X3||SP||X4

  2. TRIM(X1)||SP||TRIM(X2)||SP||TRIM(X3)||SP||TRIM(X4)

  3. TRIM(LEFT(X1))||TRIM(LEFT(X2))||TRIM(LEFT(X3))||TRIM(LEFT(X4))

  4. TRIM(LEFT(X1))||SP||TRIM(LEFT(X2))||SP||TRIM(LEFT(X3))||SP||TRIM(LEFT(X4))


Correct Option: D

In a PROC PRINT step,to control the order in which the variables appear you can use:

  1. VAR statement

  2. VARNUM Option

  3. Variables Statement

  4. all of the above


Correct Option: A
- Hide questions