quiz 2nd/3rd year
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
academicclub academicclub
Used 1+ times
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the `_init_` method in a Python class?
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Arrays in Java are dynamically allocated using the . . . . operator.
create
dynamic
arrayList
new
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
An Array in Java is a collection of elements of ___ data type.
Same
Different
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is correct about features of JavaScript?
It can not Handling dates and time.
JavaScript is a object-based scripting language.
JavaScript is not interpreter based scripting language.
All of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
public class Main {
public static void main(String args[]) {
int arr[][] = new int[4][];
arr[0] = new int[1];
arr[1] = new int[2];
arr[2] = new int[3];
arr[3] = new int[4];
int i, j, k = 0;
for (i = 0; i < 4; i++) {
for (j = 0; j < i + 1; j++) {
arr[i][j] = k;
k++;
}
}
for (i = 0; i < 4; i++) {
for (j = 0; j < i + 1; j++) {
System.out.print(" " + arr[i][j]);
k++;
}
System.out.println();
}
}
}
Compiler Error
0
1 2
3 4 5
6 7 8 9
0
0 0
0 0 0
0 0 0 0
9
7 8
4 5 6
0 1 2 3
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
what is the output of this question?
class Test1 {
public
static void main(String[] args)
{
int x = 20;
System.out.println(x);
}
static
{
int x = 10;
System.out.print(x + " ");
}
}
10 20
20 10
10 10
20 20
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Predict the output?
public class Main {
public static void main(String args[]) {
int arr[] = {10, 20, 30, 40, 50};
for(int i=0; i < arr.length; i++)
{
System.out.print(" " + arr[i]);
}
}
}
10 20 30 40 50
Compiler Error
10 20 30 40
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Asesmen Diagnostik Algoritma dan Pemrograman Kelas 9
Quiz
•
9th Grade - University
19 questions
HTML
Quiz
•
University
18 questions
SAINS KOMPUTER TING 4 - 1.5 AMALAN TERBAIK PENGATURCARAAN
Quiz
•
12th Grade - University
20 questions
POO_BasicoyJava
Quiz
•
University
20 questions
FREE TEST FULLSTACK PRAKTIKUM 2
Quiz
•
University
20 questions
Control Structures C#
Quiz
•
University
20 questions
ทดสอบย่อย 3 หลักการเขียนโปรแกรม
Quiz
•
University
20 questions
L73_118 Prep for Test
Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
