AP Computer Science A, Exam Questions and answers, rated A+/ / latest Exam prediction paper 2024/25 APPROVED/
AP Computer Science A, Exam Questions and answers, rated A+ AP CS A concerns _______-__________ programming. - -object-oriented Related classes in java are grouped into... - -packages A Java program must have at least ___ class(es). - -1 The java files that comprise your program are called... - -source files A __________ converts source code into a machine readable form. - -compiler A compiler converts source code into a machine readable form, called... - -bytecode All Java methods must be contained in a(n)... - -class All program statements must be placed inside a(n)... - -method The keyword _____ signals that the class or method is usable outside the class. - - public The keyword ____ signals data or methods are not usable outside the class. - - private The keyword ________ is used for methods that will not access any objects of a class. - -static The ________ method must always be static. - -main A(n) ____ is a name for a variable, parameter, constant, user-defined method, or userdefined class - -identifier An identifier may use... (3) - -letters, digits, and underscores Identifiers may not begin with a(n)... - -digit What primitive types are included in the AP Java subset? (4) - -int, boolean, double, char If you try to store a value that is too big in an int variable, you'll get a(n).... - -overflow error When you get an overflow error, does Java give you a warning? - -no Assigning a double to an int will cause a(n)... - -compile-time error A(n) ________ variable is used to name a quantity whose value will not change. - - final True or false: constant identifiers are capitalized. - -true What purpose does using constants serve? - -it makes it easier to revise the code _____________ operators are used in boolean expressions. - -relational Relational operators should generally only be used when comparing... - -primitive types Avoid using boolean operators to compare ______-______ numbers. - -floatingpoint _________ operators are applied to boolean expressions to form compound boolean expressions. - -logical What logical operator does the following truth table correspond to? ? | T F -------------- T | T F F | F F - -&& What logical operator does the following truth table correspond to? ? | T F -------------- T | T T F | T F - -|| What logical operator does the following truth table correspond to? ? | T ----------- T | F F | T - -! Operators such as +=, =, -=, and /= are known as __________ operators. - - compound assignment True or false: when chain assignments like the followi
Written for
- Institution
- AP Computer Science A
- Course
- AP Computer Science A
Document information
- Uploaded on
- February 3, 2024
- Number of pages
- 29
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
ap computer science a exam questions and answers