int a[]={1,2,3};
int b[]=a;
a[0]+=1;
a[1]+=1;
System.out.println(b[0]+b[1]+b[2]);
Strings & Arrays
Quiz
•
English
•
University
•
Hard
Abdul Rahman
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a[]={1,2,3};
int b[]=a;
a[0]+=1;
a[1]+=1;
System.out.println(b[0]+b[1]+b[2]);
8
6
123
233
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a='mango';
String b='MANGO';
System.out.println(a.equals(b));
error
true
false
nothinng will be printed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a="mango";
String b="MANGO";
System.out.println(a==b);
true
false
error
Nothing will be printed
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a=new String("APPLE");
String b=new String("APPLE");
System.out.println(a==b);
true
false
error
Nothing will be printed
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int a[]=new int[3];
a[0]=1;
a[1]=2;
System.out.println(a[0]+a[1]+a[2]);
3
123
out of bound error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
System.out.println(1+2+""+3+4);
334
1234
10
37
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String a="12";
for(int i=0;i<a.length();i++){
a+='1';
}
System.out.println(a);
121
12
infinite loop
31
15 questions
Main Idea and Supporting Details
Quiz
•
5th Grade - University
11 questions
Science Test: 1st Six Weeks
Quiz
•
1st Grade - University
10 questions
PRACTICE PARTS OF A COMPUTER
Quiz
•
University
15 questions
Main Idea
Quiz
•
12th Grade - University
10 questions
JOB - vocabulary (Pioneer B1+)
Quiz
•
10th Grade - University
15 questions
Percy Jackson and the Olympians: The Lightning Thief
Quiz
•
6th Grade - University
13 questions
Loops and operators java
Quiz
•
University
10 questions
Java Basics Assessment
Quiz
•
University
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade