
Quizizz - SS02 - TSU PLUS - Java Fundamental

Quiz
•
Information Technology (IT)
•
University
•
Hard
academy rikkei
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để nhập một chuỗi có chứa dấu cách, nên dùng phương thức nào?
A. next()
B. nextChar()
C. nextLine()
D. readLine()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử người dùng nhập "Hello 123", đoạn mã sau sẽ in gì?
A. Hello
B. 123
C. Hello 123
D. Không in gì
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là lệnh đúng để nhập số thực kiểu float?
A. float x = sc.nextInt();
B. float x = sc.nextFloat();
C. float x = sc.nextDouble();
D. float x = sc.next();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu người dùng nhập 10, lệnh System.out.printf("x = %d", 10); sẽ in:
A. x = d
B. x = 10
C. %d
D. Lỗi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dưới đây có tác dụng in kết quả mà không xuống dòng?
A. System.out.println("Kết quả");
B. System.out.print("Kết quả");
C. System.out.newLine("Kết quả");
D. System.println("Kết quả");
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi nào nên dùng System.out.printf() thay vì println()?
A. Khi in biến kiểu chuỗi
B. Khi cần định dạng đầu ra rõ ràng
C. Khi nhập dữ liệu
D. Khi lặp nhiều lần
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh System.out.printf("KQ: %.1f", 3.1415); sẽ in:
A. KQ: 3.1
B. KQ: 3.14
C. KQ: 3.1415
D. Lỗi
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Teknologi Jaringan Komputer dan Telekomunikasi

Quiz
•
10th Grade - University
13 questions
DA202_S3

Quiz
•
University
20 questions
Công nghệ web C4

Quiz
•
University
20 questions
Frontend_ReactJS_SS29

Quiz
•
University
16 questions
Session 08: Array

Quiz
•
University
16 questions
Mảng 2 chiều trong C

Quiz
•
University
14 questions
DB08- Transaction

Quiz
•
University
15 questions
DB04- Câu hỏi về SQL

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
15 questions
Disney Trivia

Quiz
•
University
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University
20 questions
Disney Trivia

Quiz
•
University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
5 questions
Examining Theme

Interactive video
•
4th Grade - University
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University