17. a software engineer is designing a new program. He decides to first to find
ID: 3874302 • Letter: 1
Question
17. a software engineer is designing a new program. He decides to first to find all the classes that he needs, and how they will interact with each other. he then defines what methods will be needed in each class. Later, he writes those methods. This design process is an example of:
I. top-down design
II. bottom-up design
III. Object-oriented programming
A. I and II only
B. I and III only
C. II and III only
D. I,II, and III
E. II only
22. how many columns are in the array?
char [][] array 1 = new char [15][10];
A. 0
B. 2
C. 10
D. 15
23. What is the value of vals[1][2]
double [][] vals = {{1.1,1.3,1.5}
{3.1,3.3,3.5}
{5.1,5.3,5.5}
{7.1,7.3,7.5}
A. 1.3
B. 3.3
C. 3.5
D. 5.3
Explanation / Answer
Hi,
Please find the below answers.
17. a software engineer is designing a new program. He decides to first to find all the classes that he needs, and how they will interact with each other. he then defines what methods will be needed in each class. Later, he writes those methods. This design process is an example of:
I. top-down design
II. bottom-up design
III. Object-oriented programming
A. I and II only
B. I and III only
C. II and III only
D. I,II, and III
E. II only
Answer ) B. I and III only
Why Because :
"He decides to first to find all the classes that he needs, and how they will interact with each other"
We can achive by using Object oriented programing to map real world programimg to decide classes.
classes will interact with each other by using inheritence concept.
"he then defines what methods will be needed in each class. Later, he writes those methods"
We can achive by using Object oriented programing by using override and overloading (pollymorphism) functionality.
"top-down design" Object oriented programing like C++ and java fallows top-down design approach.
22. how many columns are in the array?
char [][] array 1 = new char [15][10];
Answer ) C. 10
Why Because:
arrays in object oriented programing like java will use array of arrays concept.
23. What is the value of vals[1][2]
double [][] vals = {{1.1,1.3,1.5}
{3.1,3.3,3.5}
{5.1,5.3,5.5}
{7.1,7.3,7.5}
Answer ) A. 1.3
cols
0 1 2
Row 0 [1.1 1.3 1.5]
Row 1 [3.1 3.3 3.5]
Row 2 [5.1 5.3 5.5]
Row 3 [7.1 7.3 7.5]
Thank you.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.