6. Method
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Lê Thành
Used 10+ times
FREE Resource
Enhance your content in a minute
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
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
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
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
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

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
10 questions
C Language Basic Quiz
Quiz
•
7th Grade - Professio...
15 questions
Repaso de Python
Quiz
•
5th Grade - Professio...
10 questions
kiểm tra 15p tin 9
Quiz
•
Professional Development
11 questions
Câu hỏi ôn tập HKII_Tin học 6
Quiz
•
8th Grade - Professio...
10 questions
05 HTML/CSS Vertiefung
Quiz
•
Professional Development
10 questions
PreTrainingClassesObjectsMethods
Quiz
•
Professional Development
14 questions
Bài 3: Tệp tin và thư mục
Quiz
•
1st Grade - Professio...
13 questions
Examen 2
Quiz
•
Professional Development
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
