☰ Contents · Computing

Simple task practice and logical expressions

Lessons 34–35 · 2 lessons · M. R. Fayziyeva, D. M. Sayfurov, N. S. Xaytullayeva. Informatics and Information Technologies, Grade 9. “Nashriyot uyi Tasvir”, Tashkent, 2020
Answers are for parents and teachers.
1
If a = 8, b = 12, what is the value of a < b and b < 10?
2
Write an expression that checks that an age is greater than 12 and not equal to 18: what is the result for y = 15?
3
The user types a number. Write a program that prints True if the number is even and False otherwise.
4
For a circle with radius 6 and PI = 3.14, find the circumference 2 * PI * r.