MCQOPTIONS
Bookmark
Saved Bookmarks
→
Lisp
→
Predicates
→
Which symbol holds the first element and also an i...
1.
Which symbol holds the first element and also an index?
A.
Nail
B.
Tail
C.
Initial
D.
All of the mentioned
Answer» B. Tail
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the program?public class Test{public static void main(String [] args){String s1 = args[1];String s2 = args[2];String s3 = args[3];String s4 = args[4];System.out.print(" args[2] = " + s2);}}and the command-line invocation is C:Java> java Test 1 2 3 4
What would be the result of attempting to compile and run the following code?public class HelloWorld{public static void main(String[] args){double[] x = new double[]{1, 2, 3};System.out.println("Value is " + x[1]);}}
What will be the output?public class Test{public static void main(String[] args){int[] a = new int[4];a[1] = 1;a = new int[2];System.out.println("a[1] is " + a[1]);}}
Determine output:public class Test{public static void main(String[] args){int[] x = {1, 2, 3, 4};int[] y = x;x = new int[2];for(int i = 0; i < x.length; i++)System.out.print(y[i] + " ");}}
What is output of the following code:public class Test{public static void main(String[] args){int[] x = {120, 200, 016 };for(int i = 0; i < x.length; i++)System.out.print(x[i] + " ");}}
What will be the output?public class Test{public static void main(String[] args){int[] x = new int[3];System.out.println("x[0] is " + x[0]);}}
E?$
Done
Which keyword embeds the initial element in an array?
Which is present in the writer procedure for arrays?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies