6. Method

6. Method

Professional Development

10 Qs

quiz-placeholder

Similar activities

Hàm

Hàm

Professional Development

10 Qs

Security Quiz 4

Security Quiz 4

Professional Development

6 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Kiểm tra miệng: Bài 18 - Tin học 10

Kiểm tra miệng: Bài 18 - Tin học 10

Professional Development

10 Qs

Tin học 7 - ÔT Cuối kì 2 CĐ Bảng tính  - Trình chiếu

Tin học 7 - ÔT Cuối kì 2 CĐ Bảng tính - Trình chiếu

Professional Development

14 Qs

Khám phá máy tính lớp 5

Khám phá máy tính lớp 5

10th Grade - Professional Development

10 Qs

BIS - Database

BIS - Database

Professional Development

12 Qs

Python

Python

University - Professional Development

10 Qs

6. Method

6. Method

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Lê Thành

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khai báo một hàm có hai tham số đầu vào lần lượt thuộc kiểu chuỗi và số nguyên, có kiểu trả về là số thực thì cách khai báo nào là đúng?

public static void func1(String a, int b)

public static double func2(int a, String b)

public static double func3(String a, int b)

public static int func4(String a, int b)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Từ khóa return có chức năng gì đối với một hàm?

Trả về giá trị của hàm

Ngắt hàm

Ngắt các vòng lặp trong hàm

Không có chức năng gì hết

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Một hàm có kiểu trả về là void thì hàm này có được phép sử dụng từ khóa return hay không, và mục đích để sử dụng từ khóa return là gì đối với hàm này?

Có, để trả về giá trị của hàm

Không

Có, để ngắt hàm

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Trên màn hình console sẽ in ra thông tin gì?

[2, 4, 6, 8]

-10

[-10, 2, 4, 6, 8]

[-10, 4, 6, 8]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Trên màn hình console sẽ in ra thông tin gì?

[-10]

[-10, 2, 4, 6, 8]

[-10, 4, 6, 8]

-10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Trên màn hình console sẽ in ra thông tin gì?

20

1

21

Thông báo lỗi

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Trên màn hình console sẽ in ra thông tin gì?

20

1

21

Thông báo lỗi

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?