Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. If I have a file, TestFile.java, what do I type in Command Window to compile the file and run the file? 2. What
1. If I have a file, TestFile.java, what do I type in Command Window to compile the file and run the file? 2. What are the characteristics of machine language, assembly language, and high-level language? 3. What is the structure of a simple java program? 4. How to concatenate strings in System.out.println? 5. What is 52 % 8? 6. What are the data types we learned? Can we assign an int value to a double variable? Can we assign a double value to an int variable? 7. What are the restrictions for variable names? How to declare a variable? How to declare a constant? 8. What are the operators in JAVA and their order of precedence? 9. What is the assignment operator? 10. What is 1110001 in both decimal and hexadecimal? 11. What are the possible format specifications in System.out.printf? 12. What are the possible escape sequences? \... 13. Single-line comments vs. multi-line comments %... 14. What are the three types of programming errors? Are they identified during compilation? 15. How to use Scanner class to get input (integer or double) from the user? In order to use the Scanner class, what import statement do you need to put at the beginning of the program? 16. 1.234e+2 is what number? 1.234e-2 is what number? 17. double x = 2.0; x /= x+2; What is the value of x now? What is x, y, and z? 18. What is the difference between a++ and ++a? b-- and --b? 19. double x = 1.0; double y = 5.0; double z = (x- -) + (++y); 20. What are the two dialog boxes we learned? What import statement to put at the beginning of the program? 21. When using an input dialog box, the input value is treated as a How do you convert a numeric string into a number (int / double)? 22. How would you write the following arithmetic expression in Java (assuming that all variables are pre-declared and initialized)? P = L - r 12 m
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started