CSE 110 Exam 1questions with correct answers
1.What does a compiler do?(a) Translates machine instructions to higher level languages(b) Translates programs written in a high-level language into machine code. (c) Translates user programs to Java Programs (d) None of the above CORRECT ANSWER (b) Translates programs written in a high-level language into machine code. 2.Consider the following Java Program public class VendingMachine{ public static void main(String[] args){ Sln("Please insert 25c"); } } By what name would you save this program on your hard disk? CORRECT ANSWER VendingM 3.Give the output of the following program: public class MethodExample { public static void main(String args[]) { int y = 2, z = 1; z = y * 2; S(y + z); } } CORRECT ANSWER 6 4.Consider the following program: public class Exam1 {public static void main(String []args){ String str = new String("Arizona state university");
Written for
- Institution
-
Arizona State University
- Course
-
CSE 110
Document information
- Uploaded on
- March 4, 2023
- Number of pages
- 12
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cse 110 exam 1questions with correct answers
Also available in package deal