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.
Questions
INFORMATS are used in SAS for
- To instruct SAS to read in values.
- instruct SAS to drop the variables.
- instructs SAS to write the values of the variable.
- To provide value for the variables.
SAS DATES and TIME variables are numeric variables.
- True
- False
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.
- automatic
- enigmatic
- pragmatic
- syntactic
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.
- generates
- articulates
- manipulates
- eradicates
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.
- flouted
- routed
- scouted
- touted
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.
- obtuse
- abstract
- abstruse
- oblique
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.
- profligate
- spectral
- surrogate
- virtual
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.
- bilk
- leave
- fool
- set
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.
- leak
- ripple
- seep
- wander
......... 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.
- Adaptation
- Adherence
- Cohabitation
- Cohesion
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.
- contributions
- tribulations
- attributes
- tributes
It seems that every new OO language author ......... the need to distinguish their language by coming up with new terminology.
- feels
- gets
- senses
- urges
How many columns are presented after executing the below query:SELECT name||','||age||','||address "emp_details" FROM employee;
- 1
- 2
- 3
- 0
Which Oracle access method is the fastest way for Oracle to retrieve a single row?
- Full table scan
- Table access by ROWID
- Access via unique index
- Primary key access
Which command will delete all data from a table and will not write to the rollback segment?
- DROP
- TRUNCATE
- DELETE
- CASCADE
Which character function can be used to return a specified portion of a character string?
- SUBSTR
- INSTR
- SUBSTRING
- POS
Which of the following SQL functions can operate on any datatype?
- MAX
- TO_CHAR
- LOWER
- CEIL
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?
- True
- False
If you want to analyze mean value of the numeric variable Salary based on gender of a given organization then you will keep:
- Analysis Variable: Salary; Classification variable: Gender; Statistics: Mean
- Analysis Variable: Gender; Classification variable: Salary; Statistics: Mean
- Analysis Variable: Salary; Classification variable: Mean; Statistics: Salary
- Analysis Variable: Mean; Classification variable: Salary; Statistics: Mean
Which one of the following is NOT the default statistical measures calculated by Proc Means:
- N
- MEAN
- STD
- SUM