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");
Escuela, estudio y materia
- Institución
-
Arizona State University
- Grado
-
CSE 110
Información del documento
- Subido en
- 4 de marzo de 2023
- Número de páginas
- 12
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
cse 110 exam 1questions with correct answers
Documento también disponible en un lote