Certificación Java

Quiz
•
Computers
•
3rd Grade
•
Hard
Jose Matos
Used 25+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Domain:Creating and Using Arrays
What will be the output of this program code?
public class Whiz{
public static void main(String[] args){
String[][] strs=new String[5][];
strs[1]=new String[2];
System.out.print(strs.length + strs[1].length);
}
}
2
7
4
A null pointer exception is thrown
Compilation fails
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of this program
public class Whiz{
public static void main(String[] args){
do{
int i=1;
System.out.print(i++ + "");
}while(i<=5);
}
}
11111
An infinite loop
compilation fails
12345
123456
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Domain Java Basics
Which of the following will import only static members of java.util.Arrays
static import java.util.Arrays;
import java.util.Arrays.*;
import java.util.Arrays;
import static java.util.Arrays;
import static java.util.Arrays.*;
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Domain Handling Exceptions
Which of the following can be inserted at line2, to make this code compilable
1. public void exc() throws FileNotFoundException{
2. // INSERT CODE HERE
3.}
throw new RuntimeException();
throw new java.io.IOException();
throw new Exception();
throw new IOException():
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Domain:Using Operators and Decision Constructs
Which of the following operator is used by Java to create an instance of class
create
instanceof
new
free
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Dornain:Using Operators and Decision Constructs
Which of the following has higher operator precedence than "/" operator
!
+
-
*
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Domain Java Basics
Consider the following content of a source code file
import myLibrary.*;
public class Whiz{
//code for the class
}
class Lab{
//code for the class ....
}
What could be the name of the java file containing this source?
This can't be included in one source.
This can be included in any file name with having java file extension
Lab.java
Whiz.java
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
SAINS KOMPUTER TINGKATAN 4 (BAB1)

Quiz
•
KG - University
17 questions
Estructura de control 1 parcial

Quiz
•
3rd Grade
15 questions
Quiz sur la Programmation Orientée Objet en Java

Quiz
•
3rd Grade
20 questions
Evaluación intermedia once

Quiz
•
1st - 11th Grade
20 questions
Programowanie

Quiz
•
1st - 6th Grade
20 questions
programação

Quiz
•
3rd - 6th Grade
18 questions
Kuis Pemrograman Java

Quiz
•
3rd Grade
15 questions
Основы Unity и C#

Quiz
•
3rd Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
9 questions
A Fine, Fine School Comprehension

Quiz
•
3rd Grade
12 questions
Passport Quiz 1

Quiz
•
1st - 5th Grade
10 questions
Place Value

Quiz
•
3rd Grade
8 questions
Writing Complete Sentences - Waiting for the Biblioburro

Lesson
•
3rd Grade
10 questions
Third Grade Angels Vocab Week 1

Quiz
•
3rd Grade
12 questions
New Teacher

Quiz
•
3rd Grade