AP Computer Science Multiple Choice. Exam Questions and answers, VERIFIED.
AP Computer Science Multiple Choice. Exam Questions and answers, VERIFIED. Suppose cond1 and cond2 are two Boolean expressions. When will this if condition be true?if (cond1 && cond2) ... A) in case cond1 is false and cond2 is true B) Is case cond1 is false and cond2 is false C) in case cond1 is true and cond2 is true D) in case cond1 is true and cond2 is fales E) A, C and D are correct - -C Suppose cond1 and cond2 are two Boolean expressions. When will this if condition be true?if (cond1 || cond2) ... A) in case cond1 is false and cond2 is true B) Is case cond1 is false and cond2 is false C) in case cond1 is true and cond2 is true D) in case cond1 is true and cond2 is fales E) A, C and D are correct - -E The not equal comparison operator in Jave is A) ^= B) !== C) D) != - -D In Java, the symbol "=" and the "==" are used synonymously (interchangable) A) True B) False - -B An if statement may or may not have an else clause, but an else clause must be part of an if statement A) True B) False - -A Assume that Boolean done = false, int x = 10, int y= 11: The expression (!done &&x =y) is true A) True B) False - -A Use the following code fragment to answer the question - If x is currently ), a = ) and b = -5, what will x become after the above statement is e
Written for
- Institution
- AP Computer Science
- Course
- AP Computer Science
Document information
- Uploaded on
- December 18, 2023
- Number of pages
- 20
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
ap computer science multiple choice exam questio