ÔN TẬP C - mảng 1 chiều
Quiz
•
Computers
•
University
•
Practice Problem
•
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
Already have an account?
Similar Resources on Wayground
18 questions
SQL Quiz
Quiz
•
University
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
10 questions
Adobe Photoshop
Quiz
•
University
10 questions
Choose the level of Bloom’s Taxonomy
Quiz
•
University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
10 questions
Pengantar Coding
Quiz
•
University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
12 questions
Quizz Internet
Quiz
•
KG - Professional Dev...
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
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
