Question 1
What happens when you attempt to compile and run the following code?
- It prints: 4
- It prints: 1
- It causes a compilation error
- It prints: 0
Question 2
What happens when you attempt to compile and run the following code?
- It prints: 1
- It causes a compilation error
- It prints: –1
- It prints: 0
Question 3
What happens when you attempt to compile and run the following code?
- It causes a compilation error
- It prints: 9.9
- It prints garbage characters
- It prints: 9
Question 4
What happens when you attempt to compile and run the following code?
- It prints: 5.2110.0
- It prints: 5.210.0
- It prints: 52.10
- It prints: 5210
Question 5
What is the expected result of the following program?
- It prints: ABCD
- It prints: ACBD
- It prints: ACDB
- It prints: CABD