Which of the following is a good time to use a design pattern?
Which of the following is correct about the Abstract Factory…
Which of the following is correct about the Abstract Factory design pattern?
If your program listens to data stream (e.g., real-time twit…
If your program listens to data stream (e.g., real-time twitter feeds, sensor readings) and reacts accordingly, it shall be considered as a transformational program for development.
Which of the following is a concern of the Decorator Design…
Which of the following is a concern of the Decorator Design Pattern?
The adapter design pattern is used in the UML diagram below….
The adapter design pattern is used in the UML diagram below. The design of the SquarePedAdapter follows the concept of
A document editor software allows users to create reports by…
A document editor software allows users to create reports by adding sections, tables, images, and footnotes. The application must support building documents in multiple formats (PDF, DOCX, HTML) without modifying the document structure generation logic. Which creational pattern is best suited for this requirement??
Given the two UML designs below, which design principle is u…
Given the two UML designs below, which design principle is used in the good design to improve the bad design?
Which one statement is the correct Σ Fy = 0 equation of equi…
Which one statement is the correct Σ Fy = 0 equation of equilibrium?
//what is the output public class Testmain { public static v…
//what is the output public class Testmain { public static void main(String[] args) { test(4); test(5.5); } public static void test(int x) { System.out.print(x * 2); } public static void test(double x) { System.out.print(x * 3); } }
//what is the output public class Testmain { public static v…
//what is the output public class Testmain { public static void main(String[] args) { int a = 35, b = 20; System.out.println(a < b ? a + b : a - b); } }