0
Alien head

programming languages Online Quiz - 78

Description: programming languages Online Quiz - 78
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Thread Synchronization protects access to _____.

  1. Code

  2. Data

  3. Both

  4. None of these


Correct Option: A

Is JAVA priority preemptive?

  1. True

  2. False


Correct Option: A

Can primitive data types be serialized, technically?

  1. True

  2. False


Correct Option: B

Is clonable marker interface?

  1. True

  2. False


Correct Option: A

Which method calls another constructor from within a constructor within a class?

  1. this()

  2. super()

  3. both

  4. none of these


Correct Option: A

Does Orcale 8i support Full Outer Join?

  1. True

  2. False


Correct Option: A

How many types of streams are there in JAVA IO Stream?

  1. Bit-oriented

  2. Byte-oriented

  3. Character Oriented

  4. 1+2

  5. 2+3

  6. All of these


Correct Option: E

All local and reference variables are stored in _______ area.

  1. Code Area

  2. Data Area

  3. Stack Area

  4. Heap Area


Correct Option: C

JAVA supports UNICODE Character set?

  1. True

  2. False


Correct Option: A

In the previous question, what are the maximum possibilities?

  1. 0 and 9

  2. 0

  3. 3 and 4 and 5

  4. 9


Correct Option: A
  1. u take a 4 digit number 2. subtract sum of its digits 3. delete any one digit from the result. 4. tell the sum of the remaining three Now, i can tell always the deleted digit with no of maximum possibilities:
  1. 2

  2. 1

  3. 3

  4. 4


Correct Option: A

In order for the date values 05May1955 and 04Mar2046 to be read correctly, what value must the YEARCUTOFF= option have?

  1. a value between 1947 and 1954, inclusive

  2. 1955 or higher

  3. 1946 or higher

  4. any value


Correct Option: D

What does PROC PRINT display by default?

  1. a.PROC PRINT does not create a default report; you must specify the rows and columns to be displayed.

  2. PROC PRINT displays all observations and variables in the data set. If you want an additional column for observation numbers, you can request it.

  3. PROC PRINT displays columns in the following order: a column for observation numbers, all character variables, and all numeric variables.

  4. a.PROC PRINT displays all observations and variables in the data set, a column for observation numbers on the far left, and variables in the order in which they occur in the data set.


Correct Option: D

Which of the following statements selects from a data set only those observations for which the value of the variable Style is RANCH, SPLIT, or TWOSTORY?

  1. a.where style='RANCH' or 'SPLIT' or 'TWOSTORY';

  2. a.where style in 'RANCH' or 'SPLIT' or 'TWOSTORY';

  3. a.where style in (RANCH, SPLIT, TWOSTORY);

  4. a.where style in ('RANCH','SPLIT','TWOSTORY');


Correct Option: D

What does the following log indicate about your program? proc print data=sasuser.cargo99 var origin dest cargorev; 22 76 ERROR 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;

  1. a.SAS identifies a syntax error at the position of the VAR statement.

  2. a.SAS is reading VAR as an option in the PROC PRINT statement.

  3. a.SAS has stopped processing the program because of errors.

  4. a.all of the above


Correct Option: D

What usually happens when a syntax error is detected?

  1. a.SAS continues processing the step.

  2. a.SAS continues to process the step, and the SAS log displays messages about the error.

  3. a.SAS stops processing the step in which the error occurred, and the SAS log displays messages about the error.

  4. SAS stops processing the step in which the error occurred, and the Output window displays messages about the error.


Correct Option: C

What does the following statement do? libname osiris spss 'c:\myfiles\sasdata\data';

  1. a.defines a library called Spss using the OSIRIS engine

  2. a.defines a library called Osiris using the SPSS engine

  3. a.defines two libraries called Osiris and Spss using the default engine

  4. a.defines the default library using the OSIRIS and SPSS engines


Correct Option: B

Which of the following correctly references a SAS data set named SalesAnalysis that is stored in a permanent SAS library?

  1. a.data saleslibrary.salesanalysis;

  2. set sales_99.salesanalysis;

  3. proc print data=salesanalysis.quarter1;

  4. a.proc freq data=1999data.salesanalysis;


Correct Option: B

Which statement prints a summary of all the files stored in the library named Area51?

  1. a.proc contents data=area51.all nods;

  2. a.proc contents data=area51 all nods;

  3. a.proc contents data=area51 all noobs;

  4. a.proc contents data=area51 all.nods;


Correct Option: A

Which of the following files is a permanent SAS file?

  1. Sashelp.PrdSale

  2. Sasuser.MySales

  3. Profits.Quarter1

  4. all of the above


Correct Option: D
+ View questions