quiz 2nd/3rd year

quiz 2nd/3rd year

University

21 Qs

quiz-placeholder

Similar activities

Algoritma Remedial RPL

Algoritma Remedial RPL

University

20 Qs

Arduino ม.2 และ ม.3 ฉบับที่ 2

Arduino ม.2 และ ม.3 ฉบับที่ 2

KG - Professional Development

20 Qs

Revisão Prova 2 (Vetores e Matrizes)

Revisão Prova 2 (Vetores e Matrizes)

University

16 Qs

IT Essential UIUX Chapter 03 (Typography)

IT Essential UIUX Chapter 03 (Typography)

University

20 Qs

Entrada e Saída em Python

Entrada e Saída em Python

University

16 Qs

Repaso segundo parcial programación intermedia

Repaso segundo parcial programación intermedia

University

20 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Fun with ML

Fun with ML

10th Grade - Professional Development

20 Qs

quiz 2nd/3rd year

quiz 2nd/3rd year

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

academicclub academicclub

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?

It is used to initialize the attributes of an object
It is used to delete an object
It is used to create a new object
It is used to modify an object

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?