Viết lại câu dưới dạng câu điều kiện
1) We haven't met him since he left for tokyo. We didn't know his address.
Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
44 If I had known your name, I could have introduced you with my friends
45 If the driver in front hadn't stopped so quickly, the accident wouldn't have happened
46 If I had known Geogre wanted to get up early, I would have waken him
47 If Jim hadn't lent me the money, I wouldn't have been able to buy the motorbike
48 If she hadn't been wearing the seat belt, she wouldn't have injured (câu này sao ta)
49 If she had had enough money on her, she would have bought the coat
50 If....(tên ai đó) hadn't gone to the bus stop in time, she would have late for the interview
51 If.......hadn't recommened the hotel to us, we wouldn't have stayed at this hotel
52 If you had had breakfast, you wouldn't be hungry now
1. Should you need some more money, take an extra 200.
2. Were I your father, I would insist you practice harder.
3. Should my girlfriend call, please let me know right away.
1 Should you need some more money, take an extra 200
2 Were I your father, I would insist you practice harder
3 Should my girlfriend call, please let me know right away
Con hãy viết lại câu điều kiện từ các câu sau:
1.We will reuse and recycle. We will reduce garbage.
-->If we reuse and recycle, we will reduce garbage.
2. We will use natural resources. We will save non-renewable resources.
-->If we use natural resources, we will save non-renewable resources.
3. There is a downpour. The town will flood.
-->If there is a downpour, the town will flood.
4. I will go to school by bike. I will save energy.
-->If I go to school by bike, I will save energy.
5. We will plant more trees. The school will be greener.
-->If we plant more trees, the school will be greener.
1. If he takes exercises, he will be healthy.
2. If I had money, we could get the ticket.
3. If you don't study hard, you won't pass the exam.
Dạng đủ:
if <điều kiện> <câu lệnh 1>;
else <câu lệnh 2>;
Câu 1: Cú pháp lệnh của điều kiện dạng thiếu là :
A. If <Câu lệnh>; then <Điều kiện >
B. If <Điều kiện> then <Câu lệnh >;
C. If < Điều kiện 1> then <Điều kiện 2>
D. If < Câu lệnh 1>; then <Câu lệnh 2>;
Câu 2: Khai báo biến nào sau đây là sai:
A. Var a: real;
B. Var a,b: real;
C. Var a b: real;
D. Var a, b, c: real;
Câu 3: Cho a:= 2; b:= 3; Kết quả sau khi thực hiện câu lệnh dưới đây là: if a=b then writeln(‘a=b’) else writeln(‘a<>b’);
A. a>b
B. a=b
C. a<b
D. a<>b
Câu 4: Cách khai báo hằng nào sau đây là đúng:
A. Const pi:=3,14 real;
B. Const pi: 3,14;
C. Const pi=3,14 real;
D. Const pi=3.14;
Câu 5: Đâu là từ khóa trong ngôn ngữ lập trình Pascal?
A. Uses;
B. Hinh_tron;
C. End;
D. A và C.
Câu 6: Trong các tên sau đây, tên nào là hợp lệ trong ngôn ngữ Pascal?
A. Lop 8A;
B. Tbc;
C. Begin
D. 8B.
Câu 7: Kết quảcủa phép toán 45 div 2 mod 3 + 1 là bao nhiêu?
A. 2.
B. 7;
C. 5;
D. 3;
Câu 8: Trong ngôn ngữ lập trình Pascal, câu lệnh khai báo nào sau đây đúng?
A. var a, b : integer;
B. var x = real;
C. const x := 5 ;
D. var thong bao : string.
Câu 9: Trong ngôn ngữ lập trình Pasal, câu lệnh gán nào sau đây đúng?
A. x := real;
B. y = a +b;
C. z := 3;
D. i = 4.
Câu 10: Xét chương trình sau:
Var x: integer;
Begin
x:=1;
y:= 5;
Writeln(x+y);
Readln;
End.
Kết quả của chương trình trên là:
A. 1
B. 5
C.6
D. Tất cả đều sai.
Ex 1 : Viết lại câu dưới dạng câu điều kiện
1. You won’t lose weight if you eat so much,
If you didn't eat so much, you would lose weight.
2. Hurry up or you will be late for the last train.
If you don't hurry up, you will be late for the last train.
3. I will feel relaxed this weekend if I finish all my work by next Friday.
I won’t feel relaxed this weekend if I don't finish all my work by next Friday.
4. If you don’t deal with your stress, your health will suffer.
Unless you deal with your stress, your health will suffer.
5. Stress hormones will stay in your body if you don’t do some exercise.
Unless you do some exercise, stress hormones will stay in your body.
6. You will feel very stressed if you don’t try to relax.
You will feel very stressed unless you try to relax.
7. Keep silent or you’ll wake the baby up.
If you don't keep silent, you’ll wake the baby up.
8. Don’t go out in the rain because you’ll get wet.
If you go out in the rain, you’ll get wet.
9. I won’t enjoy the film if you aren’t with me.
Unless you are with me, I won’t enjoy the film
10. Stop talking or you won’t understand the lesson.
If you don't stop talking, you won’t understand the lesson.
11. You should take a map because you might get lost in those mountains.
In case you get lost in those mountains, you should take a map.
12. If Joe doesn't change his ways, he will end up in prison.
Unless Joe changes his ways, he will end up in prison.
13. If he doesn't work harder, he'll lose his job.
Unless he works harder, he'll lose his job.
14. Joan will stay on at school unless she finds a good job before September.
If Joan doesn't find a good job before September, she will stay on at school.
15. Unless someone has a key, we can't get into the house.
We can not get into the house if someone doesn't have a key.
16. I’ll call the teacher if you don’t leave me alone.
Unless you leave me alone, I’ll call the teacher.
17. When you ask me for the car, I will lend it to you.
Unless you ask me for the car, I will not lend it to you.
18. Don’t go out in the rain because you will get wet.
If you go out in the rain, you will get wet.
19. Walk faster or you will miss the bus.
If you don't walk faster, you will miss the bus.
20. I won’t enjoy the film if you aren’t with me.
Unless you are with me, I won’t enjoy the film.
21. You must leave home early or you will miss the flight
If you don't leave home early, you will miss the flight.
22. John will pass the driving exam if he isn’t nervous
Unless John is nervous, he will pass the driving exam.
23. They will go on holiday if they have time.
Unless they have time, they won't go on holiday.
24. You have to get up early or you will be late for school.
If you don't get up early, you will be late for school.
25. I'll only help you if you promise to try harder.
Unless you promise to try harder, I won't only help you.
26. He will take a taxi if it rains.
Unless it rains, he won't take a taxi.
27. Unless he phones immediately he won't get any information.
If he doesn't phone immediately, he won't get any information.
Câu 2:
-Bước 1: s←0; i←1;
-Bước 2: s←s+i;
-Bước 3: i←i+1;
-Bước 4: Nếu i<=100 thì quay lại bước 2
-Bước 5: Xuất s
-Bước 6: Kết thúc
Câu 3:
Dạng thiếu: if <điều kiện> then <câu lệnh>;
Dạng đủ: if <điều kiện> then <câu lệnh>
else <câu lệnh>;
Câu 4:
uses crt;
var m,n:integer;
begin
clrscr;
write('Nhap m='); readln(m);
write('Nhap n='); readln(n);
if (m mod 2=0) and (n mod 2=0) then writeln('Ca hai cung la so chan')
else if (m mod 2<>0) and (n mod 2<>0) then writeln('Ca hai cung la so le')
else if (m mod 2=0) and (n mod 2<>0) then writeln('Co mot so la so chan')
else if (m mod 2<>0) and (n mod 2=0) then writeln('Co mot so la so chan')
else if (m mod 2=0) and (n mod 2<>0) then writeln('Co mot so la so le')
else if (m mod 2<>0) and (n mod 2=0) then writeln('Co mot so la so le');
readln;
end.
Câu 5:
uses crt;
var a,b,c:real;
begin
clrscr;
repeat
write('Nhap a='); readln(a);
write('Nhap b='); readln(b);
write('Nhap c='); readln(c);
until (a>0) and (b>0) and (c>0) and (a+b>c) and (a+c>b) and (b+c>a);
if (a=b) and (a<>c) and (b<>c) then writeln('Tam giac can')
else if (b=c) and (a<>b) and (a<>c) then writeln('Tam giac can')
else if (c=a) and (c<>b) and (a<>b) then writeln('Tam giac can')
else if (a=b) and (b=c) then writeln('Tam giac deu')
else writeln('Day khong phai la tam giac deu hay tam giac can');
readln;
end.
Viết lại câu dưới dạng câu điều kiện
1) We haven't met him since he left for tokyo. We didn't know his address.
⇒⇒Had we known his address,we would have met him since he left for tokyo.
2) I don't know what to do. So, i ask you for advice
⇒⇒ If you were me,what would you do?
3) Once this street has been rebuilt , it will take you only two hours to get there
⇒⇒If once this street hadn't been rebuilt , it wouldn't take you two hours to get there
4) Be punctual or you will miss the train
⇒⇒You will miss the train if you aren't punctual