Cho đoạn mã sau, cho biết giá trị của biến c?
int a = 5; int b = 7; int c = (a + b) % 5 * 2;
java revews
Quiz
•
Computers
•
Professional Development
•
Medium
Phạm Tính
Used 125+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho đoạn mã sau, cho biết giá trị của biến c?
int a = 5; int b = 7; int c = (a + b) % 5 * 2;
2
5
4
12
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho đoạn mã sau, cho biết giá trị của biến c?
int a = 5;
int b = 7;
int c = a++ + ++b;
13
7
15
14
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Lưu trữ giá trị "True" hay "False" ta sử dụng kiểu dữ liệu nào?
byte
boolean
char
string
4.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Chương trình Java bắt đầu chạy từ đâu?
start()
main()
init()
begin()
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Chương trình viết bằng ngôn ngữ Java có thể chạy trên hệ điều hành nào ?
Win
Linux
Mac OS
Tất cả mọi hệ điều hành
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Chọn khai báo biến sai
int a, b=5, c=2;
int a, b, c;
int a, b=5, c;
int a; b=5;
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cú pháp đúng của phương thức main() là
static void main(String args)
static void main(String[] args)
public static void main()
public static void main(String[] args)
17 questions
Java Basics
Quiz
•
Professional Development
20 questions
first round quiz
Quiz
•
Professional Development
20 questions
UAS Android
Quiz
•
Professional Development
20 questions
CodeHS - Intro to Python - Basics and Console Interaction
Quiz
•
9th Grade - Professio...
16 questions
Sains Komputer Tingkatan 4 - 1.6.3 Membezakan antara
Quiz
•
1st Grade - Professio...
15 questions
FORMATIVE ASSESSMENT 2 OOPS
Quiz
•
Professional Development
15 questions
Tipos de datos y variables
Quiz
•
Professional Development
25 questions
WOMANIA PRELIMS
Quiz
•
Professional Development
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade