programming languages Online Quiz - 223
Description: programming languages Online Quiz - 223 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What are the two parts of a value of type double?
After the following code fragment, what is the value in a?String s;int a;s = "Foolish boy.";a = s.indexOf("fool");
What is the value of k after the following code fragment? int k = 0; int n = 12 while (k < n) { k = k + 1; }
Given the following code fragment:int A[];int i = 0;A = new int A[4];while (i < 4){A[i] = 10;i = i + 1;}
Given the following statement:huey.setDouble(8.0*32.2+1.0);What must be the data type of huey?
The method setLabel can be used with what type of Object?
A function is:
A signed data type has an equal number of non-zero positive and negative values available.TRUE/FALSE ?
class C1 { static interface I { static class C2 { } } public static void main(String a[]) { C1.I.C2 ob1=new C1.I.C2(); System.out.println("object created"); } } What is the result of attempting to compile and run the program?
class C1 { static class C2 { static int i1; } public static void main(String a[]) { System.out.println(C1.C2.i1); } } What is the result of attempting to compile and run the program?
Which declare a compilable abstract class? (Choose all that apply.)
Which are legal declarations?
Which is true? (Choose all that apply. )
Given: 1. class Voop { 2. public static void main(String [] args) { 3. doStuff(1); 4. doStuff(1, 2); 5. } 6. // insert code here 7. } Which, inserted independently at line 6, will compile? (Choose all that apply.)
Given the following, 1. interface Base { 2. boolean m1 (); 3. byte m2(short s); 4. } Which code fragments will compile? (Choose all that apply.)
Which declare a compilable abstract class? (Choose all that apply.)
Which is true? (Choose all that apply. )
Given: 1. class Voop { 2. public static void main(String [] args) { 3. doStuff(1); 4. doStuff(1, 2); 5. } 6. // insert code here 7. } Which, inserted independently at line 6, will compile? (Choose all that apply.)
Which are legal declarations? (Choose all that apply. )
Can there be multiple tag in tiles-defs.xml?