programming languages Online Quiz - 146
Description: programming languages Online Quiz - 146 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Dataset x Rev1 Rev2 Rev3 Rev4 1 3 4 5 data y; set x; z=mean(?); run; Fill in the mean function call.
The function that gives the day of the week is
The Follwing code will result in a compiler error. Why? class Test { void doStuff() { private int x = 7; this.doMore(x); } }
A class can be marked 'Abstract' even if has no abstract methods .
Which of the following can be marked Static ? (A)Initialization blocks (B)A class nested within another class, but not within a method
The overriding method CAN throw any unchecked (runtime) exception.
x=input('13mar2010'd,date9.) What is the length and type of the variable x
x='Hi' y='Everybody' z='Hello' The value of z should be "Hi Everyone Hello" Which of the below options can be used to generate this?
x=day() y=month() z=year() What is true about these variables
banks {x y} {1 A} {2 B} {3 C} data newbank; set banks; do year=1 to 3; capital + 5000; end; run; What is the value of capital and year for the last observation?
Comma informat removes any embedded
What is true about the user defind format
Choose the correct option for specifying the libname for an excel sheet
Consider a Base Class 'A' and a Derived Class 'B'. Case 1 B b=new B(); A a= A(b); Case 2 A a=new A(); B b=B(a); Choose the correct option(s)
dataset new {x y} {1 2} {6 4} {7 5} data s1 s2 s3; set new; if x > 5 then output s1; if y < 5 then output s2; output; run; Choose the correct answer about s1 s2 and s3
In order to select a particular sheet- Ages in an excel for printing using proc print, select the correct option
sales product qty soap-t1 20 comb 10 oil 20 soap-t2 30 soap-t3 20 How many observations will be present in the newsale dataset?
public class Test { public static void main(String [] args) { int x =5; boolean b1 = true; boolean b2 = false; if((x==4) && !b2) System.out.print(”l “); System.out.print(”2 “); if ((b2 = true) && b1) System.out.print(”3 “); } } What is the result?
public class Counter { public static void main(String[] args) { int numArgs = /* insert code here */; } } and the command line: java Counter one fred 42 Which code, inserted at line 3, captures the number of arguments passed into the program?
which of the statements is incorrect