|Description: programming languages Online Quiz - 164|
|Number of Questions: 20|
|Created by: Aliensbrain Bot|
|Tags: programming languages|
Assume you create a Student class with the variables name, ID, and course. You then create a method called gradeStudent. If you create a subclass of the Student class called GraduateStudent, what does it inherit?
When do you need to use an array?
What is the correct way to declare and initialize a string object, "start", whose value - "Welcome to Java Programming" - can be shared?
Identify the type of the following comment: /* this method prints out all *the employee's information */ Choose an option.
Which Java keywords do you use in conditional statements to control program flow? Choose more than one option.
You are required to represent the employees at a company in Java code. The employees are categorized according to their position and salary. You also need to be able to change the state of an employee due to a promotion. How could you represent this?
Assume you have created a piece of Java source code and compiled it successfully. How does the Java platform execute the code?
Which lexical elements do you use to start and end a comment that you wish to include as part of documentation? Choose more than one option.
Which range of values is valid for all integral types, where n is the number of bits?
Suppose you want to declare an array of the first five letters of the alphabet. How do you declare and initialize the array?
Suppose you are using a Windows operating system and you wish to run an application. The application class is named App1 and is contained within the samples.java package. Choose the command that will run the application.
Suppose you want to define a class named Application1. This is the only class in the application. Which code completes the declaration of the class?
A variable defined in a report is available
Which of the following code can obtain a 95 percent confidence interval around the mean total KwH consumption and around the mean billed revenue, along with the mean and median from the dataset ORGANIZATION.
data test; input region $ totrev tothrs totkwh; datalines; north 3 45 55 north 345 64 64 south 235 34 345 east 23 346 576 south 23 5 4 ; run; PROC MEANS DATA=TEST1 NOPRINT; VAR TOTREV TOTKWH TOTHRS; OUTPUT OUT=TEST2 sum(TOTREV TOTKWH) = mean(TOTREV) = median(TOTHRS) = / AUTONAME; run; What are the column names of the dataset TEST2?
What does the following code do? PROC MEANS DATA= ORGANIZATION(WHERE=(REGION IN('WESTERN','SOUTHERN') and SUBSTR(RATE_SCHEDULE,1,2) = 'E1')) MAXDEC = 0 MEAN SUM NONOBS; VAR TOTREV; CLASS REGION RATE_SCHEDULE; run;
How to obtain only the MEAN and SUM of TOTREV classified by REGION in the ORGANIZATION data set.
There are 45 records having the variable REGION value as missing.How to display the SUM and MEAN of TOTREV for these records?
Which of the following code gives the output : The MEANS Procedure Analysis Variable : totrev Mean Sum 753.82 12349156.38
While using CLASS and BY Statements in PROC MEANS one should keep in mind :