AP COMPUTER SCIENCE A UNIT 1 EXAM Questions and answers. VERIFIED.
AP COMPUTER SCIENCE A UNIT 1 EXAM Questions and answers. VERIFIED. Assuming that scan is a properly initialized Scanner variable, which of the following correctly inputs a String? - -String val = Line(); Consider the following code: int x = -3; x--; Sln(x); What is output? - --4 Which of the following data types would be most appropriate to use when recording whether a switch is in the "on" or "off" position? - -boolean Which of the following is NOT a primitive data type? - -String What is output by the following code? int a = 91; Sln(a / 2); - -45 Which of the following is a legal variable name in Java? - -ans What is (6 % 2) * 7? - -0 Which of the following would properly create A and B as integer variables? - -int A; int B; Which of the following correctly stores the word umbrella in a variable called stuff? - -String stuff = "umbrella"; Consider the following code:
Written for
- Institution
- AP COMPUTER SCIENCE A
- Course
- AP COMPUTER SCIENCE A
Document information
- Uploaded on
- January 25, 2024
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
ap computer science a unit 1 exam questions and a