LẬP TRÌNH HĐT - BÀI 8

LẬP TRÌNH HĐT - BÀI 8

University

33 Qs

quiz-placeholder

Similar activities

HỆ ĐIỀU HÀNH - BÀI 9

HỆ ĐIỀU HÀNH - BÀI 9

University

30 Qs

ITC102 Quiz 1

ITC102 Quiz 1

University

35 Qs

ON TIN 3_HK1

ON TIN 3_HK1

3rd Grade - University

30 Qs

SurFrieess HAHAHAHA

SurFrieess HAHAHAHA

University

30 Qs

Câu hỏi về mô hình OSI và TCP/IP

Câu hỏi về mô hình OSI và TCP/IP

University

32 Qs

 Introduction To C Readings Chapters 1-3

Introduction To C Readings Chapters 1-3

University

36 Qs

HỆ ĐIỀU HÀNH - BÀI 4

HỆ ĐIỀU HÀNH - BÀI 4

University

34 Qs

LẬP TRÌNH HĐT - BÀI 8

LẬP TRÌNH HĐT - BÀI 8

Assessment

Passage

Information Technology (IT)

University

Practice Problem

Medium

Created by

English Sunny

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...

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp nào dùng để khai báo và khởi tạo một mảng số nguyên có tên là numbers và có kích thước 20?

int[] numbers = new int[20];

int [20] numbers;

int numbers = new int[20];

int numbers[] = new int(20);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào trong lớp Object được sử dụng để so sánh hai đối tượng có bằng nhau hay không?

compare()

compareTo()

equals()

isEquals()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tính căn bậc hai của một số trong java, phương thức nào trong lớp Math được sử dụng?

Math.square()

Math.sqrt()

Math.pow()

Math.root()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Điều gì xảy ra khi chúng ta khởi tạo mảng với kích thước âm?

Chương trình có lỗi thực thi

Mảng sẽ có kích thước mặc định là 1

Chương trình có lỗi cú pháp

Mảng sẽ được tạo với kích thước 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn mã sau là gì?

int[] arr = {0, 1, 2, 3};

System.out.println(arr.length);

4

Lỗi biên dịch

3

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm phần tử vào ArrayList, chúng ta sử dụng phương thức nào?

insert()

put()

add()

append()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

Python

C++

Java

Lỗi khi thực hiện chương trình

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?