6. Method

6. Method

Professional Development

10 Qs

quiz-placeholder

Similar activities

Microsoft Access

Microsoft Access

10th Grade - Professional Development

10 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

MindSpace Computers C Test-3 2023

MindSpace Computers C Test-3 2023

Professional Development

15 Qs

BÀI KIỂM TRA 10 PHÚT

BÀI KIỂM TRA 10 PHÚT

Professional Development

10 Qs

DẠY HỌC TRỰC TUYẾN

DẠY HỌC TRỰC TUYẾN

Professional Development

10 Qs

Quiz constructeurs Java

Quiz constructeurs Java

Professional Development

13 Qs

Klassen und Objekte

Klassen und Objekte

Professional Development

10 Qs

List

List

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

Access all questions and much more by creating a free account

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

Already have an account?