
Câu hỏi về khai báo biến và hằng số
Quiz
•
Computers
•
KG
•
Hard
Ngoc Nhat
FREE Resource
Enhance your content in a minute
114 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào sau đây là đúng để khai báo biến x kiểu số nguyên 4 byte và khởi tạo giá trị 10?
int x = 10;
float x = 10.0;
char x = 10;
double x = 10;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào sau đây là đúng để khai báo biến y kiểu số thực 4 byte và khởi tạo giá trị 5.5?
double y = 5.5;
char y = '5.5';
float y = 5.5;
int y = 5.5;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào sau đây là đúng để khai báo hằng số PI kiểu số thực 8 byte với giá trị 3.14159?
const double PI = 3.14159;
const int PI = 3.14159;
double const PI = 3.14159;
float const PI = 3.14159f;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào sau đây là đúng để khai báo biến a kiểu số nguyên có dấu 4 byte và khởi tạo giá trị -15?
double a = -15;
float a = -15.0;
unsigned int a = -15;
int a = -15;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào sau đây là đúng để khai báo biến z kiểu số nguyên không dấu 4 byte với giá trị 20?
unsigned int z = 20;
int z = 20;
float z = 20.0;
unsigned float z = 20;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào sau đây là đúng để khai báo biến n kiểu số nguyên có dấu 4 byte với giá trị -100?
float n = -100.0;
int n = -100;
unsigned int n = -100;
int n = 100;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đáp án nào sau đây là đúng để kháo báo hằng số count kiểu số nguyên 4 byte với giá trị 5?
int const count = 5;
const int count = 5;
float const count = 5.0f;
unsigned int const count = 5;
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
111 questions
4 курс 2 курс
Quiz
•
1st - 5th Grade
111 questions
tin 11
Quiz
•
11th Grade
110 questions
PLTW CSE Unit 3.1/3.2 Review (Python)
Quiz
•
9th - 12th Grade
118 questions
IT Fundamentals Fall 2021 (Broughton)
Quiz
•
8th - 12th Grade
111 questions
CK Tin Học 11
Quiz
•
11th Grade
114 questions
Тест по программированию на C++
Quiz
•
12th Grade
112 questions
CCNA 1 v7 Modules 1 – 3
Quiz
•
University
118 questions
Kiến thức về Trí tuệ Nhân tạo
Quiz
•
3rd Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
20 questions
Disney Characters
Quiz
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
21 questions
Halloween
Quiz
•
KG - 5th Grade
8 questions
Kindergarten - CUA 2- Topic 2 -Matter
Quiz
•
KG
16 questions
Halloween Candy
Quiz
•
KG - 12th Grade
20 questions
Logos
Quiz
•
KG
25 questions
CKLA unit 3 assessment K
Quiz
•
KG
20 questions
Capitalization in sentences
Quiz
•
KG - 4th Grade
