ÔN TẬP C - mảng 1 chiều
Quiz
•
Computers
•
University
•
Hard
cư ờng
Used 22+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho b bằng 5 và c bằng 8. Hãy cho biết giá trị của a,b,c sau khi thi hành riêng biệt từng dòng lệnh sau:
a=b++ + c++;
13
14
15
16
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho b bằng 5 và c bằng 8. Hãy cho biết giá trị của a,b,c sau khi thi hành riêng biệt từng dòng lệnh sau:
a=b++ + ++c;
14
13
12
15
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Hãy cho biết giá trị của b và a sau đoạn chương trình:
int a,b=2;
b=(a=3,(5*b)+(a*=b));
a=6, b=16
a=3, b=2
a=6, b=2
a=3, b=16
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Chỉ thị nào sau đây là đúng khi dùng để khai báo một biến nguyên có tên là sum
a) sum: integer;
b) integer sum;
c) int sum;
d) sum int;
a
b
c
d
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Câu lệnh nào sau đây là đúng để thực hiện việc in ra giá trị của biến thực discount
a) printf(“%s”,discount);
b) print(‘discount’);
c) printf(“%f”,discount);
d) printf(“%f”,&discount);
a
b
c
d
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây in ra màn hình số lớn nhất giữa số nguyên A và B :
a) If (A > B) printf(“%d”,B); else printf(“%d”,A);
b) If( A > B) printf(“%d”,A); else printf(“%d”,B);
c) If (A > B) scanf(“%d”,A); else scanf(“%d”,&B);
d) If (A < B) printf(“%d”,A); else printf(“%d”,B);
a
b
c
d
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Khi chạy chương trình :
#include “stdio.h”
int S, i ;
void main()
{
i = 3; S= 40;
if ( i > 5 ) S= 5 * 3 + ( 5 - i ) * 2;
else if ( i > 2 ) S= 5 * i;
else S= 0;
}
Giá trị sau cùng của S là :
0
19
40
15
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
Деректер типтері
Quiz
•
7th Grade - University
10 questions
Ce știm despre Internet?
Quiz
•
4th Grade - University
16 questions
Systemy baz danych - podstawowe pojęcia.
Quiz
•
University
9 questions
CHAPTER 5 ONLINE QUIZ
Quiz
•
University
15 questions
Herramientas de Google
Quiz
•
12th Grade - University
12 questions
Javascript
Quiz
•
University
16 questions
Quiz on List and Tuples
Quiz
•
University
10 questions
Bootstrap
Quiz
•
University
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
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
