Question
1,Any assignment statement can be used as an assignment expression. true false 2,________ System analysis seeks to analyze the data flow and to identify the
1,Any assignment statement can be used as an assignment expression.
true
false
2,________ System analysis seeks to analyze the data flow and to identify the system's input and output. When you do analysis, it helps to identify what the output is first, and then figure out what input data you need in order to produce the output.
Requirements specification
Analysis
Design
Implementation
Testing
3, The assignment operator = is left-associative.
true
false
4,Assume x = 4 and y = 5, which of the following is true?
!(x == 4) ^ y != 5
x != 4 ^ y == 5
x == 5 ^ y == 4
x != 5 ^ y != 4
5,Which of the Boolean expressions below is incorrect?
(true) && (3 => 4)
!(x > 0) && (x > 0)
(x > 0) || (x < 0)
(x != 0) || (x = 0)
(-10 < x < 0)
6, Suppose x=10 and y=10. What is x after evaluating the expression (y > 10) && (x++ > 10)?
9
10
11
7, The while loop and the do loop are equivalent in their expressive power; in other words, you can rewrite a while loop using a do loop, and vice versa.
true
false
8, The modifiers and return value type do not contribute toward distinguishing one method from another, only the parameter list.
true
false
9, (int)('a' + Math.random() * ('z' - 'a' + 1)) returns a random number ________.
between 0 and (int)'z'
between (int)'a' and (int)'z'
between 'a' and 'z'
between 'a' and 'y'
10, ________ is a simple but incomplete version of a method.
A stub
A main method
A non-main method
A method developed using top-down approach
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started