CS 2340 Quizizz Questions

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

To create a new branch called working you would use which git command? [open ended]

Accepted answers: checkout -b "working" git branch "working" branch working branch "working" git branch 'working' git checkout -b "working" checkout -b 'working' git checkout -b 'working' git checkout -b working branch 'working' checkout -b working git branch working

4. You are managing the development of a new e-commerce website for a client. During the project's progression, the client frequently wants to adjust features based on market changes and user feedback. Given this context, which project management approach is most suitable? a) Agile b) Waterfall

a) Agile

In a use case for a GPS navigation system, there are two use cases: "Plan Route" and "Avoid Toll Roads". If "Avoid Toll Roads" is a functionality that can be optionally invoked within "Plan Route" as an exception, which kind of relationship is this? a) Extend b) Multiplicity c) Include d) Dependency

a) Extend

Consider the user story: "As an online shopper, I want to filter products by price so I can find products within my budget.".Which of the following represents an appropriate acceptance criteria? a) Given I am on the product listing page, When I select a price range, Then only products within that price range should be displayed. b) As an online shopper,When I choose a price filter, Then show products. c) Online shoppers can filter products. d) I want to see products within a selected price range

a) Given I am on the product listing page, When I select a price range, Then only products within that price range should be displayed.

Which of the following is NOT TRUE about a System Sequence Diagram? a) It shows how objects in a system interact with one another. b) It shows how a user interacts with a system c) It shows the system as a "blackbox" d) It is a dynamic diagram

a) It shows how objects in a system interact with one another.

What architectural style is most suited to design a web application, such as an e-commerce platform, that is composed of a GUI layer, a business logic layer, and a data storage layer, where all layers run on different processors? a) N-tier Architecture b) Blackboard architecture c) Layered Architecture d) Client-Server Architecture

a) N-tier Architecture

Considering the definition of an Elementary Business Process(EBP) as "a task performed by one person in one place at onetime, which adds measurable business value and leaves the data in a consistent state," which of the following use cases for an online banking system does NOT pass the EBP test? a) Negotiating an overdraft fee waiver with a bank representative over several days. b) Checking the current balance of a specific account. c) Resetting the password for online banking access. d) Updating the user profile with a new email address.

a) Negotiating an overdraft fee waiver with a bank representative over several days.

What is the scope of architectural decisions? a) System Level b) Class Level c) Module Level

a) System Level

What is the primary purpose of the Creator pattern? a) To create an object without exposing the instantiation logic to the client. b) To provide database access throughout the application. c) To handle asynchronous operations and manage callbacks. d) To manage the state of an application and handle user interactions

a) To create an object without exposing the instantiation logic to the client.

In a vehicle maintenance tracking system, each Vehicle can be scheduled for multiple Service Appointments, but each Service Appointment is associated with exactly one Vehicle. There is a possibility that a vehicle does not receive any service appointment. Which of the following best represents the multiplicity between the Vehicle and Service classes? a) Vehicle 1 ----- * Service b) Vehicle 1 ----- 1...* Service c) Vehicle 1...* ----- 1 Service d) Vehicle 1 ----- 1 Service

a) Vehicle 1 ----- * Service

Which of the following represents the correct order of stages in software analysis and design? a) project inception - requirements gathering - system architecture - system design b) requirements gathering - system design - system architecture - project inception c) system architecture - project inception - system design - requirements gathering d) system design - system architecture - project inception - requirements gathering

a) project inception - requirements gathering - system architecture - system design

What are the direct impacts of including irrelevant information in a project? Mark all that apply [multiple choices correct] a) they can increase developers' confusion b) they can waste project resources c) they may lead to missing functionality in the final product d) they may introduce bugs in the software system

a) they can increase developers' confusion b) they can waste project resources

For an online registration system of a university, which two of the following features are mandatory? a) verifying student identity before allowing course enrollment b) displaying a countdown timer for registration deadline c) allowing students to select and enroll in courses for the semester d) offering virtual campus tours during the registration process

a) verifying student identity before allowing course enrollment c) allowing students to select and enroll in courses for the semester

4. What architectural style can be used to design a cloud-based file storage system such as Dropbox, where multiple client scan upload, download, and synchronize files with a centralized server? a) 3-Tier b) Client-Server c) Event-Driven d) Layered

b) Client-Server

bool foo(int x ) { if (x == 0) return false; else return true; } void bar() { foo(1) } Which type of coupling is demonstrated in this code? a) Low Coupling b) Control Coupling c) Content Coupling d) Stamp Coupling

b) Control Coupling

A stakeholder comes to you in the middle of a Sprint with an urgent request to add a new feature. How should this be handled in a Scrum framework? a) Stop the current Sprint and start a new one with the feature included. b) Discuss the feature in the next Sprint Planning meeting. c) The Scrum Master should decide if it's important. d) Add it to the ongoing Sprint immediately.

b) Discuss the feature in the next Sprint Planning meeting.

What is the GRASP pattern that emphasizes assigning responsibilities to the class with the most relevant information and expertise to handle them? a) Controller b) Information Expert c) Creator d) Low Coupling

b) Information Expert

public interface DataAccess{ public void connect(); public void disconnect(); public void create(); public void read(); } public class MySQLDataAccess { public void operation(DataAccess da) { //uses only connect() and read() operation } } Which SOLID principle is being violated in this code? a) Dependency Inversion Principle b) Interface Segregation Principle c) Single Responsibility Principle d) Open Close Principle

b) Interface Segregation Principle

class A{ // code for class A }; class B { // data member of class A type A var; //Argument of type A void calculate(A data) { // do something } }; Which type of coupling is demonstrated in this code? a) Low Coupling b) Stamp Coupling c) Content Coupling d) Control Coupling

b) Stamp Coupling

Which of the following statements about XP are true? Multiple choices correct a) The customer does not need to provide any requirements in XP b) XP follows the test-driven development (TDD)paradigm c) XP is an iterative software development process d) Because of pair programming, XP requires twice the number of developers e) In XP, code is rarely changed after being written

b) XP follows the test-driven development (TDD)paradigm c) XP is an iterative software development process

How can a merge commit in Git be resolved? a) by deleting the conflicted files and recreating them b) by manually editing the conflicted files, staging them, and then committing the resolved merge. c) by undoing the previous commit and redoing it d) by abandoning the merge and starting over

b) by manually editing the conflicted files, staging them, and then committing the resolved merge.

Consider an information system for a gym. In the list below, mark all requirements that you believe are pertinent [multiple choices correct] a) the list of members shall be stored as a linked list b) personal trainers shall be able to add clients c) the system shall be able to store members' commute time d) the system shall be able to read member cards e) members of the gym shall be able to access their training program

b) personal trainers shall be able to add clients d) the system shall be able to read member cards e) members of the gym shall be able to access their training program

Which of the following is the correct structure for a user story? a) [Perform some action] as a[type of user] so that [some reason]. b) As a [type of user], When I[perform some action],Then [some reason]. c) As a [type of user], I want[perform some action] so that [some reason]. d) Given I am a [type of user],When I [perform some action], Then [some reason]

c) As a [type of user], I want[perform some action] so that [some reason].

What architectural style can be used to design an image recognition system in which different agents can analyze different features of an image (texture, edges, etc.) and communicate with each other to generate a final classification? a) Layered b) MVVM c) Blackboard d) EDA

c) Blackboard

Use cases can be presented in several formats. Which of the following represents three different formats in which use cases can be documented? a) Short, Medium, Long b) Basic, Intermediate,Detailed c) Brief, Casual, Fully Dressed d) Simple, Complex, Advanced

c) Brief, Casual, Fully Dressed

Which of the following statements accurately describes the microservices architectural style? a) It is a traditional three-tier architecture where the presentation layer, application layer, and data storage layer are separated. b) It is a client-server architecture where the server handles all the business logic, and the client handles the presentation layer. c) It is an architectural style where large applications are broken down into small, independent services that communicate with each other over a network. d) It is a monolithic approach to software development where all services are tightly coupled and deployed together

c) It is an architectural style where large applications are broken down into small, independent services that communicate with each other over a network.

If a class/module aggregates all different types of mathematical operations, which type of cohesion is this representing? a) Coincidental Cohesion b) High Cohesion c) Logical Cohesion d) Procedural Cohesion

c) Logical Cohesion

You are brainstorming entities for a Fitness Club ManagementSystem and are ready to start filtering them for your domainmodel. This system needs to manage information about club members, fitness classes, personal trainers, and members' fitness progress.Which of the following looks like a good candidate list for the domain model?a) User, FitnessClass, SignUpButton, SessionConfirmation b) Member, SearchGymEquipment, FitnessClass, NutritionPlan c) Member, FitnessClass, PersonalTrainer, WorkoutPlan d) Homepage, Member, FitnessClass, WorkoutHistory

c) Member, FitnessClass, PersonalTrainer, WorkoutPlan

A customer places an order through an e-commerce platform, specifically through the "order" object of "OrderProcessing" class. Which of the following is the correct syntax representation of the system in SSD and SD? a) SSD --> System SD -->order:OrderProcessing b) SSD --> :SystemSD -->OrderProcessing c) SSD --> :SystemSD -->order:OrderProcessing d) SSD --> order:OrderProcessingSD --> :System

c) SSD --> :SystemSD -->order:OrderProcessing

Which SOLID principle is most closely related to High Cohesion GRASP principle? a) Liskov Substitution Principle b) Dependency Inversion Principle c) Single Responsibility Principle d) Open Close Principle

c) Single Responsibility Principle

public class Order { private String orderNumber; private String customerName; private double totalAmount; public void placeOrder() { //logic to place the order } public void cancelOrder() { //logic to cancel the order } public void saveOrder() { //logic to save the order to database } public void sendConfirmationEmail() { //logic to send the order confirmation email } Which SOLID principle is being violated in this code? a) Dependency Inversion Principle b) Liskov Substitution Principle c) Single Responsibility Principle d) Open Close Principle e) Interface Segregation Principle

c) Single Responsibility Principle

What is a merge conflict in git? a) a situation where a file in the current branch is different from the file in the branch being merged b) a problem that occurs when two users are trying to push to the same repository at the same time c) a situation that occurs when git is unable to automatically resolve differences in code between two commits d) an error that occurs when you try to merge two branches that have no common base

c) a situation that occurs when git is unable to automatically resolve differences in code between two commits

How do you stage files in Git to commit later on? a) git push b) git reset c) git add d) git commit

c) git add

How do you supply a commit message to commit? a) git message "I'm coding" b) git add "I'm coding" c) git commit -m "I'm coding" d) git commit "I'm coding"

c) git commit -m "I'm coding"

Which of the following are non-functional requirements [multiple choices correct] a) the vending machine program should take coins as an input from the user b) the login program for a security application should be secure c) the login program for a website should have a two-factor authentication d) the word count program should be able to process large files e) the bowling alley program keeps track of the score during a game

c) the login program for a website should have a two-factor authentication d) the word count program should be able to process large files

You're working on a real-time trading system where latency is critical. A new feature requires integration with an external pricing service. This service sometimes has unpredictable delays. In line with XP practices, how should you handle the development and testing of this integration? a) Write unit tests to mock the service and assume the real service will be just as fast. b) Integrate without tests, focusing on speed, and manually check performance intermittently. c) Avoid integration with unpredictable services. d) Construct integration tests that evaluate varying response times from the service, ensuring that your system responds efficiently

d) Construct integration tests that evaluate varying response times from the service, ensuring that your system responds efficiently

What architectural style can be used to design a system in which multiple clients subscribe to a notification service which delivers messages to them in real time? a) Layered b) 3-Tier c) Client-Server d) Event-Driven

d) Event-Driven

Suppose you want to create a <user> interface for a UI implementation, but you end up creating <admin>,<employee> and <customer> interfaces. Which SOLID principle did you adopt? a) Open Close Principle b) Dependency Inversion Principle c) Liskov Substitution Principle d) Interface Segregation Principle

d) Interface Segregation Principle

Which of the following architectural pattern is most popular for developing Android apps? a) Blackboard b) Layered c) MVC d) MVVM

d) MVVM

Which architecture style can be best described via this illustration? a) EDA b) Layered c) Pipe and Filter d) Peer-to-Peer

d) Peer-to-Peer

Consider an online ticket booking system for a cinema. Identify the primary, supporting, and offstage actors from the following options: a) Primary Actor: Theater Management System, Supporting Actor: Customer, Offstage Actor: Payment Gateway b) Primary Actor: Payment Gateway, Supporting Actor: Customer, Offstage Actor: Seat Allocation System c) Primary Actor: Customer, Supporting Actor: Theater Management System, Offstage Actor: Film Distributor d) Primary Actor: Customer, Supporting Actor: Payment Gateway, Offstage Actor: Theater Management System

d) Primary Actor: Customer, Supporting Actor: Payment Gateway, Offstage Actor: Theater Management System

If a class/module aggregates different steps of an algorithm, which type of cohesion is this representing? a) Logical Cohesion b) High Cohesion c) Coincidental Cohesion d) Procedural Cohesion

d) Procedural Cohesion

An online store processes a purchase, including stock verification, payment processing, and order confirmation.Which UML diagram would detail the internal object interactions, such as message exchange among the inventory system, payment gateway, and order management system? a) Domain Model b) Use case Diagram c) System Sequence Diagram d) Sequence Diagram

d) Sequence Diagram

Which of the following represents the correct order ofScrum events within a Sprint? a) Daily Scrum, SprintPlanning, Sprint Review, Sprint Retrospective b) Sprint Planning, SprintReview, Daily Scrum, Sprint Retrospective c) Sprint Planning, DailyScrum, SprintRetrospective, SprintReview d) Sprint Planning, DailyScrum, Sprint Review, Sprint Retrospective

d) Sprint Planning, DailyScrum, Sprint Review, Sprint Retrospective

Which of the following statements best describes theController pattern in GRASP principles? a) The Controller pattern is primarily concerned with the creation of objects in a system. b) The Controller pattern ensures that every class is responsible for its own behavior. c) The Controller pattern is responsible for handling all UI components directly. d) The Controller pattern acts as an intermediary between the UI and the system, handling user requests for action.

d) The Controller pattern acts as an intermediary between the UI and the system, handling user requests for action.

class Bird { public void fly() { System.out.println("Flying. . ."); } } class Ostrich extends Bird { @Override public void fly() { throw new UnsupportedOperationException("Ostriches cannot fly!); } } Which SOLID principle is being violated in this code? a) Open Close Principle b) Interface Segregation Principle c) Dependency Inversion Principle d) Single Responsibility Principle e) Liskov Substitution Principle

e) Liskov Substitution Principle


Ensembles d'études connexes

Environmental Science A. Interactions The Environment

View Set

Chapter 11 Pain Management Prep U 40 questions

View Set