
C++ 4. Khởi tạo giá trị cho biến
Interactive Video
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
Quizizz 41
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong C++, cách nào sau đây KHÔNG phải là một cách khởi tạo giá trị cho biến số nguyên?
int x = 10;
int y(20);
int z{30};
int w;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để hiển thị giá trị của một biến ra màn hình trong C++, cú pháp `cout` nào sau đây là đúng?
cout >> ten_bien;
cout << ten_bien;
print(ten_bien);
display(ten_bien);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi một biến số nguyên được khai báo nhưng không được gán giá trị khởi tạo, giá trị của nó sẽ là gì?
0
1
Một giá trị ngẫu nhiên
Lỗi chương trình
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khai báo một biến số nguyên có tên 'so_luong' và gán giá trị ban đầu là 10 trong C++, câu lệnh nào sau đây là đúng?
int so_luong = 10;
float so_luong = 10;
char so_luong = '10';
so_luong = 10;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong C++, để hiển thị dòng chữ 'Kết quả là: ' theo sau là giá trị của biến 'ket_qua' (giả sử 'ket_qua' đã được khai báo và có giá trị), câu lệnh nào sau đây là đúng?
cout << "Kết quả là: " << ket_qua;
cout << "Kết quả là: ket_qua";
cout << "Kết quả là: " + ket_qua;
print("Kết quả là: ", ket_qua);
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
6 questions
Thỏ trắng biết lỗi
Interactive video
•
KG
7 questions
hình hộp chữ nhật toán lớp 7
Interactive video
•
7th Grade - University
10 questions
White-Box and Black-Box Testing
Interactive video
•
9th - 12th Grade
2 questions
Điện phân
Interactive video
•
KG - University
11 questions
Arduino Programming Quiz
Interactive video
•
7th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade