Programming Languages and Concepts: SAS, SQL, and Object-Oriented Design

Test your knowledge of multiple programming languages and concepts including SAS procedures, SQL functions and queries, Oracle database access, and Object-Oriented programming principles like coupling, cohesion, and object mapping.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

INFORMATS are used in SAS for

  1. To instruct SAS to read in values.
  2. instruct SAS to drop the variables.
  3. instructs SAS to write the values of the variable.
  4. To provide value for the variables.
Question 2 True/False

SAS DATES and TIME variables are numeric variables.

  1. True
  2. False
Question 3 Multiple Choice (Multiple Answers)

Many modern programming languages depend largely or exclusively on the concept of objects: a close ......... binding of data to the operations that can be performed upon that data.

  1. automatic
  2. enigmatic
  3. pragmatic
  4. syntactic
Question 4 Multiple Choice (Multiple Answers)

In these Object-Oriented languages — C, C#, Java, Eiffel, Smalltalk, Visual Basic.NET, Perl, and many others programmers create classes, each of which defines the behavior and structure of a number of similar objects; then they write code that creates and manipulates objects that are instances of those classes.

  1. generates
  2. articulates
  3. manipulates
  4. eradicates
Question 5 Multiple Choice (Multiple Answers)

One reason why objects are a powerful programming technique — the reason most often ......... in the early literature on Object-Oriented Programming — is that programmatic objects map naturally to real world objects.

  1. flouted
  2. routed
  3. scouted
  4. touted
Question 6 Multiple Choice (Multiple Answers)

This mapping between objects in the real world and more abstract code objects encourages programmers to think in the problem domain, rather than in computer science terms.

  1. obtuse
  2. abstract
  3. abstruse
  4. oblique
Question 7 Multiple Choice (Multiple Answers)

This benefit has perhaps been overstated, however; unless you're building a simulator of a real-world process, such ......... 'real-world' objects form just the surface of your system.

  1. profligate
  2. spectral
  3. surrogate
  4. virtual
Question 8 Multiple Choice (Multiple Answers)

The complexity of your design lies underneath that surface, in code that reflects business rules, resource allocation, algorithms, and other computer science concerns; if you only use objects to reflect the real world, you leave yourself with a lot of work.

  1. bilk
  2. leave
  3. fool
  4. set
Question 9 Multiple Choice (Multiple Answers)

Coupling refers to the ways in which and degrees to which one part of the system relies on the details of another part: the tighter the coupling, the more changes in one part of the system will ......... throughout the system, while with loose coupling, the interfaces between subsystems are well defined and restricted.

  1. leak
  2. ripple
  3. seep
  4. wander
Question 10 Multiple Choice (Multiple Answers)

......... refers to the degree in which elements within a subsystem form a single, unified concept, with no excess elements: where it is strong, there is easier comprehension and thus more reliable code.

  1. Adaptation
  2. Adherence
  3. Cohabitation
  4. Cohesion
Question 11 Multiple Choice (Multiple Answers)

Some Object-Oriented languages are less rigid than others in how much they require you to design around objects, but OO languages certainly support these quality ......... if you take the time to pursue them.

  1. contributions
  2. tribulations
  3. attributes
  4. tributes
Question 12 Multiple Choice (Multiple Answers)

It seems that every new OO language author ......... the need to distinguish their language by coming up with new terminology.

  1. feels
  2. gets
  3. senses
  4. urges
Question 13 Multiple Choice (Single Answer)

How many columns are presented after executing the below query:SELECT name||','||age||','||address "emp_details" FROM employee;

  1. 1
  2. 2
  3. 3
  4. 0
Question 14 Multiple Choice (Single Answer)

Which Oracle access method is the fastest way for Oracle to retrieve a single row?

  1. Full table scan
  2. Table access by ROWID
  3. Access via unique index
  4. Primary key access
Question 15 Multiple Choice (Single Answer)

Which command will delete all data from a table and will not write to the rollback segment?

  1. DROP
  2. TRUNCATE
  3. DELETE
  4. CASCADE
Question 16 Multiple Choice (Single Answer)

Which character function can be used to return a specified portion of a character string?

  1. SUBSTR
  2. INSTR
  3. SUBSTRING
  4. POS
Question 17 Multiple Choice (Single Answer)

Which of the following SQL functions can operate on any datatype?

  1. MAX
  2. TO_CHAR
  3. LOWER
  4. CEIL
Question 18 True/False

While using the WEIGHT option in Proc Means,If a WEIGHT variable value is missing, then PROC MEANS excludes the observation from the analysis.TRUE or FALSE?

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

If you want to analyze mean value of the numeric variable Salary based on gender of a given organization then you will keep:

  1. Analysis Variable: Salary; Classification variable: Gender; Statistics: Mean
  2. Analysis Variable: Gender; Classification variable: Salary; Statistics: Mean
  3. Analysis Variable: Salary; Classification variable: Mean; Statistics: Salary
  4. Analysis Variable: Mean; Classification variable: Salary; Statistics: Mean
Question 20 Multiple Choice (Single Answer)

Which one of the following is NOT the default statistical measures calculated by Proc Means:

  1. N
  2. MEAN
  3. STD
  4. SUM