Advertisement
Guest User

EMP 0

a guest
Jan 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. EMP 0 Extra Practice Questions:
  2.  
  3. Basic:
  4. 1. Initialize three variables (of your choice of data type) containing the following values: the words 'Hello', the word 'World' and the number 2.0. Initialize new variable which has the value 'Hello World 2.0' from the existing variables and print it.
  5. 2. Find the value of 100 divided by 3 in Java without the correct decimal places.
  6. 3. Find the value of 100 divided by 3 in Java now with the correct decimal places.
  7.  
  8. Advanced:
  9. 1. Initialize a variable with an integer of your choice. Get its remainder when divided by 2.
  10.  
  11. Where to run your code: https://cs125.cs.illinois.edu/learn/2018_01_22_emp0/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement