CSE 110 Midterm Exam Study Guide
CSE 110 Midterm Exam Study Guide What will be the output of this code? int x = 2; int y = 10; x = y + 1; y = x - 1; x = x + 1; y = y - 1; x = x - y; S(x); -Correct Answer-3 What will be the output of this code? int x = 13; int y = 3; int a = y; y = x; x = a; S(x); -Correct Answer-3 Given the following int (integer) variables - a = 11 b = 37 c = 3 d = 5 Evaluate the expression: a + b % c * d -Correct Answer-3 What characters cannot be used in java identifiers? -Correct Answer-- A valid identifier must have characters [A-Z] or [a-z] or numbers [0-9], and underscore(_) or a dollar sign ($). for example, @javatpoint i
Document information
- Uploaded on
- May 9, 2024
- Number of pages
- 6
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers