Subject Expert
Learn, Evaluate and Optimize
Home
Click to open
Learn
Help
Login
Sign Up
Learn
Computer Science
Object Oriented Software Engineering
OOSE Labs
Web Engineering
Database Systems
Database Systems Labs
Computer Programming
Software Quality
Operating Systems
Computer Networks
Software Engineering
Data Structures
Computer Organization
Object Oriented Programming
Software Construction
Compiler Construction
Android Development
Android Labs
Automata Theory
Essentials of Cyber Security
Cloud Computing
Numerical Computing
Digital Switching
Wireless Networks
Programming Fundamentals
Routing and Switching Principles
Human Computer Interaction
Discrete Structures
Machine Learning
Artificial Intelligence
Digital Image Processing
Software Testing
Design Patterns
Computer Basics
Technology Trends
Data Science
Software Engineering Principles
Assembly Language
Software Design and Architecture
Web Technologies
HTML
CSS
HTML5
AngularJS
Bootstrap
Git
E Marteking Tips
Flutter
Online Tools
UX Automation
Python
MVC
ReactJS
College Subjects
Biology 11
Biology 12
Physics 11
Physics 12
Mathematics 11
Mathematics 12
Chemistry 11
Chemistry 12
English 11 and 12
Accounting
Biology for ADA
Programming Languages
Javascript
PHP
C Sharp Language
Java
TypeScript
Programming Concepts
Dart
Puthon
Primary School
Inspiring Science Class 4
Inspiring Science Grade 1
Computer Made Friendly Class 4
Pick Me Up 2 Class 4
English Grammer Class 1
Mathematic for 5th Class
Computer Science for Class II
Mathematics Class 5
Mathematics Class 2
General Science Class 5
English Class 2
English Class 5
Mathematics Class 3
Mathematics for Grade 4 for Oxford
Professionals
Interview Tips
Tips
Emerging Trends in IT
High School
Computer Science Class 9
Computer Science Class 10
General Science Class 6
Mathematics Class 6
ISLAM
Quran Recitation
Islam Basics
Quran Tafseer
Courses
×
Computer Science
Web Technologies
College Subjects
Programming Languages
Primary School
Professionals
High School
ISLAM
Object Oriented Software Engineering
OOSE Labs
Web Engineering
Database Systems
Database Systems Labs
Computer Programming
Software Quality
Operating Systems
Computer Networks
Software Engineering
Data Structures
Computer Organization
Software Construction
Compiler Construction
Android Development
Android Labs
Automata Theory
Essentials of Cyber Security
Cloud Computing
Numerical Computing
Digital Switching
Wireless Networks
Programming Fundamentals
Routing and Switching Principles
Discrete Structures
Machine Learning
Artificial Intelligence
Digital Image Processing
Software Testing
Design Patterns
Computer Basics
Technology Trends
Data Science
Software Engineering Principles
Assembly Language
Software Design and Architecture
HTML
CSS
HTML5
AngularJS
Bootstrap
E Marteking Tips
Flutter
Online Tools
UX Automation
Python
ReactJS
Biology 11
Biology 12
Physics 11
Physics 12
Mathematics 12
Chemistry 11
Chemistry 12
English 11 and 12
Biology for ADA
Javascript
PHP
C Sharp Language
TypeScript
Programming Concepts
Dart
Inspiring Science Class 4
Inspiring Science Grade 1
Computer Made Friendly Class 4
Pick Me Up 2 Class 4
English Grammer Class 1
Computer Science for Class II
Mathematics Class 5
Mathematics Class 2
General Science Class 5
English Class 2
Mathematics Class 3
Mathematics for Grade 4 for Oxford
Interview Tips
Tips
Computer Science Class 9
Computer Science Class 10
Mathematics Class 6
Quran Recitation
Islam Basics
Home
Communicator
Tools
Profile Settings
Loading, please wait ...
Open its course -
Software Construction
Refactoring
To be...
View Complete Description
×
Topic Summary
To be updated soon ...
Topic Questions:
24
MCQs
T/F
FiB
SQ
8
5
9
2
Question Type Legends
Easy
Medium
Difficult
MCQs
T/F
FiB
Short Qs
Open its course -
Software Construction
Multiple Choice Questions for Refactoring
1
Refactoring is important when you:
add a routine
add a class
fix a defect
All of above
View Answer
2
Class interface refactoring that make better class is to _______________.
move a routine to another class
eliminate a routine
hide a class variable
encapsulate unused class
View Answer
3
Class implementation refactoring improve with following class level.
Change reference objects to value objects
Change value objects to reference objects
Change member class or data placement
a and b
a and c
View Answer
4
Statement level refactoring that improve the use of individual statements is:
Move an expression inline
Decompose a Boolean expression
Replace an expression with a routine
View Answer
5
Data level refactoring that improve the use of variables and other kinds of data is to _________.
move an expression inline.
replace an expression with a class.
introduce a global variable routine.
View Answer
6
Select the two reasons that leads to refactoring
A routine is too long
A class has Strong cohesion
Global variables are not used
Code is duplicated.
View Answer
7
Which of the following refactoring is not the refactoring that improve code at the individual-routine level.
Extract routine/extract method
Move a routine’s code inline
Substitute a simple algorithm for a complex algorithm
Replace an expression with a routine
Combine similar routines by parameterizing them
View Answer
8
Which level of refactoring suggests that if a variable is used for more than one purpose (for example i, j, temp, and x), then create separate variables for each usage, with a more specific name.
Statement-Level Refactoring
Data-Level Refactoring
Routine-Level Refactoring
View Answer
About Us
Who we are
Privacy Policy
Terms of Use
Contact Us
support@subexpert.com
Write to Us
View Help
Subject Expert
Learn, Evaluate and Optimize
Products / Utilites
Attendance Mapper
Industry Liason Cell (ILC)
Smart Secretary
Follow Us
Facebook
Switch Display Mode
Enable Translation
© 2024 - Subject Expert