programming languages Online Quiz - 203
Description: programming languages Online Quiz - 203 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Given: 1. class Ring { 2. final static int x2 = 7; 3. final static Integer x4 = 8; 4. public static void main(String[] args) { 5. Integer x1 = 5; 6. String s = "a"; 7. if(xl < 9) s += "b"; 8. switch(x1) { 9. case 5: s += "c"; 10. case x2: s += "d"; 11. case x4: s += "e"; 12. } 13. System.out.println(s); 14. } 15. } What is the result?
System.out.format("Pi is approximately %d.", Math.PI); What is the result?
Which two statements are true about has-a and is-a relationships? (Choose two.)
public static void test(String str) { if (str == null | str.length() == 0) { System.out.println("String is empty"); } else { System.out.println("String is not empty"); } } And the invocation: test(null); What is the result?
public class TestOne { public static void main (String[] args) throws Exception { Thread.sleep(3000); System.out.println("sleep"); } } What is the result?
It is recommended to overload run() in your Thread class
1 String #name = "Jane Doe"; 2 int $age = 24; 3 Double _height = 123.5; 4 double ~temp = 37.5; Which two statements are true?
The primary key on table EMP is the EMPNO column. Which of the following statements will not use the associated index on EMPNO?
Assuming today is Monday, 10 July 2000, what is returned by this statement: SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;
How many columns are presented after executing this query: SELECT address1||','||address2||','||address2 "Adress" FROM employee;
Which character function can be used to return a specified portion of a character string?
Which character is used to continue a statement in SQL*Plus?
This Contains all of the classes for creating user interfaces and for painting graphics and images
What does API stand for?
Which API provides classes that are fundamental to the design of the Java programming language?
java.sql API is used for accessing and processing data stored in a data source (usually a relational database) using the Java programming language
Which of the following is not a Java API?
Which of the following APIs provides the classes and interfaces for the security framework?
COBOL stands for:
These element according to COBOL programming standard need not to be vertically aligned: