ÔN TẬP C - mảng 1 chiều

Quiz
•
Computers
•
University
•
Hard
cư ờng
Used 22+ times
FREE Resource
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
Similar Resources on Wayground
18 questions
CP-String

Quiz
•
University
16 questions
UC_TM03_Arrays_Functions

Quiz
•
University - Professi...
10 questions
Arrays

Quiz
•
11th Grade - University
10 questions
Array in C

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
10 questions
Input And Output in C

Quiz
•
University
18 questions
Programming in C language

Quiz
•
12th Grade - University
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University