


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The basics of programming, including valid and invalid identifiers, programming keywords, data types, and their ranges. It also explains the benefits of using constants and provides examples of arithmetic operations and conversions.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



a = 46 / 9; => a = 5 a = 46 % 9 + 4 * 4 - 2; => a = 1 + 16 – 2 = 15 a = 45 + 43 % 5 * (23 * 3 % 2); => a = 45 + 3 * (1) = 48 a %= 3 / a + 3; => a %= 3 + 3; a % = 6 => a = a % 6 = 1; d = 4 + d * d + 4; => 4 + 1.0 + 4 = 9. d += 1.5 * 3 + (++a); => d += 4.5 + 2; d += 6.5; => d = 7. d -= 1.5 * 3 + a++; => d -= 4.5 + 1; => d = 1 – 5.5 = -4.
1 + "Welcome " + 1 + 1 is 1Welcome 11. 1 + "Welcome " + (1 + 1) is 1Welcome 2. 1 + "Welcome " + ('\u0001' + 1) is 1Welcome 2 1 + "Welcome " + 'a' + 1 is 1Welcome a