Back to Home
All Questions
1482 practice questions across 9 categories. Click any question to view the full problem with detailed explanation.
Agile & DevOps
263 questionsAgile(4)
- What is the purpose of a Sprint Retrospective in Scrum?easy
- In the INVEST criteria for user stories, what does the 'I' stand for?medium
- Who is responsible for maximizing the value of the product and managing the Product Backlog in Scrum?easy
- What does 'velocity' measure in Agile, and how should it be used?medium
Agile & DevOps(255)
- Which agile methodology divides the development into sprint cycles, in which a Specified set of features are delivered? Choose from the following:medium
- What are the roles in dynamic system development method? Choose from the following:medium
- State true or false. During agile development more emphasize is given for documentationeasy
- Which of the following agile methodologies depends on the cohesiveness of the team and individual commitment of the team members?medium
- _____ methodology focus on visualization fiowmedium
- __________ is an iterative and incremental approach that embraces principles of agile development, including continuous user/customer involvement.medium
- ________ is the process during which the changes of a system are implemented in a controllable manner by following a predefined model, with some reasonable modifications.medium
- the options select the configuration items that are eligible for configuration managementmedium
- Which is the software configuration concept that ensures that change should be done in a controlled and authorized environmentmedium
- ____________ ensures that when two different people does the work and update parallelly, one should not over write the othermedium
- Tom and Peter works on the same project. Tom does his work and update the local copy back to the configuration management server. This process is called asmedium
- Collaborative and co-operative approach among all the stake holders is important. This is a feature of the _______________ Agile Methodologymedium
- Which of these is not an agile methodologymedium
- Scrum divides the development into short cycles called as ______medium
- ________ methodology is useful when the client requirements are not clear and stablemedium
- DSDM is iterative and incrementaleasy
- _____ helps to uncover unexpected patterns and associations from all data within an organizationmedium
- To understand the best course of action for a problem is ____medium
- ______ is the Process of discovering various models, summaries and derived values from a given collection of datamedium
- Analytics reveal hidden patterns in _____medium
- ____ layer in busness analytics indicate what is happening or what has happenedmedium
- In _____ Allows decision makers at virtually all levels of the organization to gain insight into business performance and data to support and guide actions.medium
- ____ layer describes what could happenmedium
- A metric should be time boundeasy
- ____ is an important measure of how well an organization meets or exceeds a customer's expectationsmedium
- _____ is the subject matter area on which reports revolve around.medium
- The most common form of KPI reporting is ____medium
- Units per hour is an example of what KPImedium
- Which is not a KPImedium
- _____ helps an organization to define and measure progress towards organizational goals.medium
- Expand KSImedium
- ____ refiect the success or failure after an event has been consumedmedium
- _______in design thinking is a written, actionable statement that expresses the problem that the design team is trying to address.medium
- Researching Your Users' Needs is done in which phasemedium
- Challenge Assumptions and Create Ideas is done inmedium
- Analyzing how users interact with their environment is a ____ activity in Empathizemedium
- Stating Your Users' Needs and Problems is done in which phasemedium
- ____ is an iterative process in which we understand the users clearlymedium
- Which is not a phase in design thinkingmedium
- Design Thinking is focusing on the stated problem than to arrive at a solution immediatelyeasy
- Pipe uses a script that lives in a Docker containereasy
- Which of the following CI/CD tools is designed to handle anything from a simple CI server to a complete CD hub?medium
- Which of the following uses a version control system and a central code repository for tracking the code changes made by developers?medium
- You can either define the pipeline using YAML syntax or through the user interface in Azure pipelineeasy
- In GitLab, pipes are agents that run the CI/CD Jobseasy
- Which of the following CI/CD tools is suitable for small projects?medium
- In _________, developed code is continuously delivered until the programmer considers it is ready to ship.medium
- The __________is used to record the code changes made by developers so that these changes can be shared to othersmedium
- In Continuous Integration, build status is reported to developers when they are changing the code.easy
- The applications with Azure CI/CD pipelines can be deployed to multiple target environmentseasy
- In which of the following, there is no human intervention and only a failed test will prevent a new change to be deployed to production?medium
- In YAML file used for BitBucket pipeline, you can use different types of container for each step by selecting different imageseasy
- Which of the following is the final phase of the DevOps cycle?medium
- Which of the following CI/CD tools is a continuous integration server developed by Atlassian?medium
- In which of the following pipelines, all the new changes run through a consistent set of quality checks?medium
- Each service runs in its own process and communicates with other services through a well-defined interface in Microserviceseasy
- Which of the following CI/CD toolsprovides support for .Net framework?medium
- Which of the following CI/CD tools is known for its ease of setup, out-of-the-box usability, and beautiful user interface?medium
- Before DevOps, there is a significant delay between development and operationseasy
- DevOps culture is about agility, scalability, continuous improvements in the delivery of services.easy
- In the Blue/Green deployment, once testing has been completed on the blue environment, live application trafic is directed to the blue environment and the green environment is deprecated.easy
- Using a blue/green deployment strategy increases application availability and reduces deployment risk by simplifying the rollback process if a deployment fails.easy
- DevOps bridges the gap between development and operations teams.easy
- With Continuous Delivery, production happens automatically without explicit approval.easy
- A Blue/Green deployment is a deployment strategy in which you create two separate, but identical environments.easy
- An Elastic stack can be created to automatically monitor the application and logs.easy
- Unit Testing tests individual units or components of a code written by the developer to validate if they perform as expected.easy
- Infrastructure-as-Code tools are used to create software environments using predefined templates.easy
- Replacing or modifying older apps with newer microservices architecture can open up the doors to faster development and quicker innovation.easy
- Runtime protection means securing software against threats that can arise when your application starts running.easy
- Use a SAST tool to ensure that your code is secure, safe, and reliable.easy
- Vulnerability Scanning ensures that code is checked for vulnerabilities at every major stage of the delivery pipeline from the time it is written to, when it is deployed into production.easy
- Employing both SAST and DAST in a pipeline would cover both codebase and runtime vulnerabilities.easy
- DSOMM strives to incrementally increase the effectiveness of a security program from Level 1 to Level 4.easy
- DSOMM Level 1 calls for the execution of static analysis tools without any changes to the tools or settings.easy
- During the development phase in secure SDLC, teams need to make sure that they use secure coding standards.easy
- Security issues can be addressed in the SDLC pipeline well before deployment to production.easy
- Implementing SCA ensures that all of the components in your applications are secure and compliant.easy
- SAC tools can both spot any security weak points and suggest potential solutions based on the entire code base.easy
- Any component that has the potential to adversely impact cyber supply-chain risk is a candidate for Component Analysis.easy
- Bill Of Materials (BOM) describe the components included in applications, the version of the components used, and the license types for each.easy
- SAST is performed at the static level ensuring that code guidelines are followed without actually executing the application.easy
- SAST tools examine the source code at rest to detect and report on potential security vulnerabilities.easy
- Static Application Security Testing (SAST) is also known as 'black box testing.easy
- Static code analyzers help to define project specific rules to ensure that all developers follow them without any manual intervention or sidetracking.easy
- Ansible leverages SSH to communicate between servers.easy
- Ansible is an example of a pull based configuration management tool.easy
- You can also use Ansible Automation Platform for configuration management to maintain your systems in the desired state.easy
- Configuration drift occurs when ad-hoc configuration changes and updates result in a mismatched development, test, and deployment environments.easy
- In Push Based Configuration Management System, nodes pull the configuration information from the server.easy
- InSpec can also run as a series of automated tests that execute as part of your standard release pipelines.easy
- Once you have categorized and prioritized vulnerabilities, break down your remediation process into bite-size chunks to make them more manageable and effective.easy
- Chef Automate is an integrated solution for managing and deploying infrastructure and applications.easy
- In Inspec uses a client-server model.easy
- InSpec tests can be easily added to act as a quality gate for compliance.easy
- With Chef Automate, you can run your InSpec compliance tests on demand, see the results on the dashboard, and remediate the problem.easy
- ServerSpec lets you to include metadata about your compliance rules.easy
- Vulnerability scanning tools can be used to identify specific local users and groups.easy
- _____ helps to uncover unexpected patterns and associations from all data within an organizationmedium
- ______ is the Process of discovering various models, summaries and derived values from a given collection of datamedium
- To understand the best course of action for a problem is ____medium
- ____ layer describes what could happenmedium
- Analytics reveal hidden patterns in _____medium
- ____ layer in busness analytics indicate what is happening or what has happenedmedium
- _____ Allows decision makers at virtually all levels of the organization to gain insight into business performance and data to support and guide actions.medium
- A metric should be time boundeasy
- ____ is an important measure of how well an organization meets or exceeds a customer's expectationsmedium
- Units per hour is an example of what KPImedium
- _____ is the subject matter area on which reports revolve around.medium
- The most common form of KPI reporting is ____medium
- Which is not a KPImedium
- _____ helps an organization to define and measure progress towards organizational goals.medium
- ____ reflect the success or failure after an event has been consumedmedium
- Expand KSImedium
- Challenge Assumptions and Create Ideas is done inmedium
- Analyzing how users interact with their environment is a ____ activity in Empathizemedium
- Researching Your Users' Needs is done in which phasemedium
- _______in design thinking is a written, actionable statement that expresses the problem that the design team is trying to address.medium
- Stating Your Users' Needs and Problems is done in which phasemedium
- ____ is an iterative process in which we understand the users clearlymedium
- Which is not a phase in design thinkingmedium
- Design Thinking is focusing on the stated problem than to arrive at a solution immediatelyeasy
- In GitLab, pipes are agents that run the CI/CD Jobseasy
- You can either define the pipeline using YAML syntax or through the user interface in Azure pipelineeasy
- Pipe uses a script that lives in a Docker containereasy
- Which of the following CI/CD tools is designed to handle anything from a simple CI server to a complete CD hub?medium
- The __________is used to record the code changes made by developers so that these changes can be shared to othersmedium
- In _________, developed code is continuously delivered until the programmer considers it is ready to ship.medium
- Which of the following uses a version control system and a central code repository for tracking the code changes made by developers?medium
- In Continuous Integration, build status is reported to developers when they are changing the code.easy
- Which of the following CI/CD tools is suitable for small projects?medium
- In which of the following, there is no human intervention and only a failed test will prevent a new change to be deployed to production?medium
- Which of the following is the final phase of the DevOps cycle?medium
- In YAML file used for BitBucket pipeline, you can use different types of container for each step by selecting different imageseasy
- Which of the following CI/CD tools is a continuous integration server developed by Atlassian?medium
- Which of the following CI/CD tools is known for its ease of setup, out-of-the-box usability, and beautiful user interface?medium
- Before DevOps, there is a significant delay between development and operationseasy
- The applications with Azure CI/CD pipelines can be deployed to multiple target environmentseasy
- In which of the following pipelines, all the new changes run through a consistent set of quality checks?medium
- Each service runs in its own process and communicates with other services through a well-defined interface in Microserviceseasy
- Which of the following CI/CD toolsprovides support for .Net framework?medium
- Using a blue/green deployment strategy increases application availability and reduces deployment risk by simplifying the rollback process if a deployment fails.easy
- In the Blue/Green deployment, once testing has been completed on the blue environment, live application traffic is directed to the blue environment and the green environment is deprecated.easy
- DevOps culture is about agility, scalability, continuous improvements in the delivery of services.easy
- With Continuous Delivery, production happens automatically without explicit approval.easy
- A Blue/Green deployment is a deployment strategy in which you create two separate, but identical environments.easy
- DevOps bridges the gap between development and operations teams.easy
- Unit Testing tests individual units or components of a code written by the developer to validate if they perform as expected.easy
- An Elastic stack can be created to automatically monitor the application and logs.easy
- Infrastructure-as-Code tools are used to create software environments using predefined templates.easy
- Replacing or modifying older apps with newer microservices architecture can open up the doors to faster development and quicker innovation.easy
- Runtime protection means securing software against threats that can arise when your application starts running.easy
- Use a SAST tool to ensure that your code is secure, safe, and reliable.easy
- Vulnerability Scanning ensures that code is checked for vulnerabilities at every major stage of the delivery pipeline from the time it is written to, when it is deployed into production.easy
- DSOMM strives to incrementally increase the effectiveness of a security program from Level 1 to Level 4.easy
- Employing both SAST and DAST in a pipeline would cover both codebase and runtime vulnerabilities.easy
- Security issues can be addressed in the SDLC pipeline well before deployment to production.easy
- During the development phase in secure SDLC, teams need to make sure that they use secure coding standards.easy
- DSOMM Level 1 calls for the execution of static analysis tools without any changes to the tools or settings.easy
- SAC tools can both spot any security weak points and suggest potential solutions based on the entire code base.easy
- Implementing SCA ensures that all of the components in your applications are secure and compliant.easy
- Bill Of Materials (BOM) describe the components included in applications, the version of the components used, and the license types for each.easy
- Any component that has the potential to adversely impact cyber supply-chain risk is a candidate for Component Analysis.easy
- Static code analyzers help to define project specific rules to ensure that all developers follow them without any manual intervention or sidetracking.easy
- Static Application Security Testing (SAST) is also known as 'black box testing.easy
- SAST tools examine the source code at rest to detect and report on potential security vulnerabilities.easy
- SAST is performed at the static level ensuring that code guidelines are followed without actually executing the application.easy
- Ansible leverages SSH to communicate between servers.easy
- Ansible is an example of a pull based configuration management tool.easy
- You can also use Ansible Automation Platform for configuration management to maintain your systems in the desired state.easy
- In Push Based Configuration Management System, nodes pull the configuration information from the server.easy
- Configuration drift occurs when ad-hoc configuration changes and updates result in a mismatched development, test, and deployment environments.easy
- Chef Automate is an integrated solution for managing and deploying infrastructure and applications.easy
- InSpec can also run as a series of automated tests that execute as part of your standard release pipelines.easy
- Once you have categorized and prioritized vulnerabilities, break down your remediation process into bite- size chunks to make them more manageable and effective.easy
- Inspec uses a client-server model.easy
- ServerSpec lets you to include metadata about your compliance rules.easy
- With Chef Automate, you can run your InSpec compliance tests on demand, see the results on the dashboard, and remediate the problem.easy
- Vulnerability scanning tools can be used to identify specific local users and groups.easy
- InSpec tests can be easily added to act as a quality gate for compliance.easy
- State true or false. During agile development more emphasis is given for documentation.easy
- Which agile methodology divides the development into sprint cycles, in which a specified set of features are delivered?medium
- Which of these is NOT an Agile methodology?medium
- Scrum divides the development into short cycles called as ______.medium
- Which methodology focuses on visualizing flow?medium
- DSDM is iterative and incremental.easy
- Collaborative and co-operative approach among all stakeholders is a feature of which Agile methodology?medium
- Which agile methodology depends most on team cohesiveness and individual commitment?medium
- _____ methodology is useful when the client requirements are not clear and stable.medium
- Which statement best reflects the Agile Manifesto?medium
- Who is responsible for maximizing product value in Scrum?medium
- Which event inspects the Increment and adapts the Product Backlog?medium
- Time-box of the Daily Scrum is:medium
- Definition of Done (DoD) ensures:medium
- A Product Backlog item should follow INVEST. What does I stand for?medium
- Velocity in Scrum is:medium
- Which chart shows remaining work against time in a sprint?medium
- During Sprint Planning, the team commits to:medium
- Who removes impediments in Scrum?medium
- Backlog prioritization technique often used in Agile:medium
- Which practice is core to Extreme Programming?medium
- Lean Software Development focuses primarily on:medium
- Kanban limits WIP to:medium
- DSDM prioritization uses:medium
- Crystal methodology adapts based on:medium
- Feature-Driven Development (FDD) emphasizes:medium
- In XP, TDD stands for:medium
- Continuous Integration helps to:medium
- Kanban board typical columns are:medium
- Lean concept “Build quality in” means:medium
- A good User Story format is:medium
- Story points measure:medium
- Planning Poker is used for:medium
- Timeboxing means:medium
- Spikes are used to:medium
- Which is best when requirements are unclear?medium
- Risk-driven model primarily associated with:medium
- Minimum Viable Product (MVP) focuses on:medium
- Definition of Ready (DoR) ensures:medium
- Acceptance Criteria are used to:medium
- Which configuration concept ensures change happens in a controlled and authorized way?medium
- Tom updates local work back to the configuration server. This process is called:medium
- Which ensures parallel updates do not overwrite each other?medium
- ________ is the process to implement changes in a controllable manner following a predefined model.medium
- Which of the following is NOT a characteristic of cloud computing?medium
- Agile prioritization often values:medium
- In version control, Check-out means:medium
- Configuration Audit verifies:medium
- SVN is a:medium
- Scrum Master primarily serves:medium
- Sprint Retrospective focuses on:medium
- Which is a pull-based system?medium
- WSJF (Weighted Shortest Job First) prioritizes by:medium
- Agile teams should be:medium
- Burndown chart trending flat indicates:medium
- Refactoring aims to:medium
- Which ceremony is time-boxed and for planning the next iteration?medium
- Minimum marketable feature (MMF) is:medium
- A good Kanban WIP limit effect is:medium
- Which agile methodology divides the development into sprint cycles, in which a Specified set of features are delivered? Choose from the following:medium
- State true or false. During agile development more emphasize is given for documentationeasy
- __________ is an iterative and incremental approach that embraces principles of agile development, including continuous user/customer involvement.medium
- What are the roles in dynamic system development method? Choose from the following: Select one or more: a. System Analyst b. Scribe Facilitator c. Technical Coordinatormedium
- _____ methodology focus on visualization flow a. Kanban b. Scrum c. DSDMmedium
- Which of the following agile methodologies depends on the cohesiveness of the team and individual commitment of the team members?medium
- From the options select the configuration items that are eligible for configuration management Select one or more: a. Source code document b. SRS c. Design Documentmedium
- ________ is the process during which the changes of a system are implemented in a controllable manner by following a predefined model, with some reasonable modifications.medium
- Which is the software configuration concept that ensures that change should be done in a controlled and authorized environmentmedium
- Tom and Peter works on the same project. Tom does his work and update the local copy back to the configuration management server. This process is called asmedium
- ____________ ensures that when two different people does the work and update parallelly, one should not over write the othermedium
- Collaborative and co-operative approach among all the stake holders is important. This is a feature of the _______________ Agile Methodologymedium
- Which of these is not an agile methodologymedium
- Scrum divides the development into short cycles called as ______medium
- ________ methodology is useful when the client requirements are not clear and stablemedium
- DSDM is iterative and incrementaleasy
AWS Cloud
63 questionsAWS(7)
- Which S3 storage class is designed for data that is accessed less than once a month but requires millisecond retrieval?medium
- Which EC2 instance family is optimized for memory-intensive workloads like in-memory databases?medium
- What is the key difference between a Security Group and a Network ACL in AWS VPC?medium
- What does the principle of least privilege mean in AWS IAM?easy
- In the AWS Shared Responsibility Model, which of the following is the CUSTOMER's responsibility?easy
- How many pillars does the AWS Well-Architected Framework have?easy
- What is the primary benefit of AWS Auto Scaling for a web application?easy
AWS Cloud(56)
- Which AWS service provides a structured approach to review and improve cloud workloads using best practices?easy
- Which AWS Well-Architected Framework pillar is dedicated to reducing costs while maintaining system performance and security?medium
- Which AWS Well-Architected Framework pillar ensures that computing resources are used efficiently to meet performance goals?medium
- Which AWS device is designed for edge computing and secure data transfer in rugged environments?medium
- Which AWS service is used to protect web applications from common web exploits like SQL injection and XSS?easy
- Which of the following database services support dynamic schema?medium
- Cloudwatch can monitor custom metrics in-addition to built-in metrics.easy
- AutoScaling increases/decreases the capacity of an EC2 instance automatically.(True/False)easy
- AWS DynamoDB is a serverless nosql databaseeasy
- Which of the following database service is PostgreSQL and MySQL compatible?medium
- Amazon EC2 ________ allow you to request spare Amazon EC2 computing capacity for up to 90 percent off the On-Demand price.medium
- Which of the pricing options do customers pay per hour for compute?medium
- Cost varies between regions(True/False)easy
- In AWS, you need to buy servers to host application.(True/False)easy
- Cloud computing converts capital expenditure into operational expenditure by:medium
- Which of the following is NOT one of the six advantages mentioned for cloud computing?medium
- On-premise data centers compared to cloud generally have:medium
- Which service model provides virtual servers, storage and networking while you manage the OS?medium
- Which cloud deployment model mixes on-premises and cloud resources?medium
- AWS launched its cloud services in which year?medium
- A benefit described as "stop spending money on undifferentiated heavy lifting" means:medium
- Which of the following is a Public Cloud example?medium
- Which statement is true about global reach in cloud?medium
- Which is an example of PaaS on AWS?medium
- Which is a typical use-case of SaaS?medium
- A Community Cloud is best described as:medium
- One advantage of cloud is "stop guessing capacity" — this refers to:medium
- Which characteristic is NOT typically true for cloud providers achieving economies of scale?medium
- Which is TRUE about pay-as-you-go pricing?medium
- Which cloud model gives you the most control over the OS?medium
- Which deployment model would you choose to meet strict regulatory or data locality needs?medium
- Which is NOT a responsibility of the cloud provider in a typical IaaS offering?medium
- Which statement best matches "Go Global in Minutes"?medium
- Which of the following is a common reason organizations adopt cloud?medium
- Which is an example of stopping undifferentiated heavy lifting?medium
- Which aspect is typically better in cloud than in a traditional data center?medium
- Which of the following pairs the correct service model with an example?medium
- Why might an organization choose a hybrid cloud?medium
- Which of the following best describes the "benefit from massive economies of scale"?medium
- AWS eliminate guessing on your infrastructure capacity needs.easy
- Cloud computing is the on-demand delivery of cloud services via the Internet with pay-as-you-go pricing.easy
- AWS Cloud's global footprint enables you to easily deploy applications to consumers all around the world (True/False)easy
- One of the benefit of the cloud is agility, resource can be provisioned with few click.True/Falseeasy
- In which of the following models is an application hosted completely on the cloud?medium
- AWS is responsible for protecting the Global infrastructure based on shared responsibility model .easy
- Which of the following are best practices of IAM?medium
- Which of the below options is NOT a security best practice?medium
- To organize and manage AWS resources, _________ is used.medium
- AWS is responsible for protecting the Global infrastructure based on shared responsibility model .easy
- Security in the cloud means customers are responsible for securing everything they deploy in the cloudeasy
- To simplify the assignment of similar permissions for many users, ______ is used.medium
- Custom AMI can be created which includes application in the imageeasy
- An Amazon EBS volume can be attached to multiple instances at a time.easy
- Amazon EC2 Instances utilizes Intel® Xeon® processors for providing customers with high performance and value.easy
- When you create a bucket, by default the bucket is privateeasy
- S3 Bucket supports versioning? TRUE/FALSEeasy
Database Management
180 questionsDatabase Management(172)
- Tom has designed a payroll software for XYZ technology.The sofware will store the salary details into the database and later he can retreive the same for future references. Tom falls under which category of user.medium
- In SQL is a case sensitive language and the data stored inside the table are case in-sensitive. Say true or false?easy
- Which of the following is not a valid relational database?medium
- Database is a shared collection of logically unrelated data, designed to meet the needs of an organization. State True or False.easy
- Which of the following represents the degree of the relation?medium
- A table consists of ______ primary keys.medium
- We need to ensure that the amount withdrawn should be less then the credit card limit amount, to ensure this integrity what type constraint will be used?medium
- Which of the following options is not correct?medium
- An emp table contains fields employ name, desig and salary. How do you drop column salary?medium
- Which of the following is not modification of the databasemedium
- In a relational database a referential integrity constraint can be done usingmedium
- ___________ removes data from the table, but structure remains the same.medium
- A relational database consists of a collection ofmedium
- Column header is referred asmedium
- Consider the below table structure: Column Name DataType Constraint Empname Varchar(20) Not Null EmpId int(10) PK Phoneno bigint(10) Not Null insert into employee(empid,empname)values('123','John'); When we issue the above insert command and if the statement fails, what would be the reason.medium
- Examine the structure of the STUDENT table: Column Name DataType Constraint Stud_id int(3) PK Name Varchar(20) Not Null Address Varchar(30) DOB Date Which statement inserts a new row into the STUDENT table?medium
- State True or False. COMMIT ends the current transaction by making all pending data changes permanent.easy
- Merge is not supported by MySQL. The other possible way of doing the work of merge statement, is by using ON DUPLICATE KEY UPDATE in the insert statement. State TRUE or FALSE.easy
- Which of the below is a reference option for deleting rows from a table?medium
- To remove a relation from SQL database, we use ___________ command.medium
- What is the Default format for Date datatype?medium
- Numeric datatype is used to store_______medium
- Which statement about SQL is true?medium
- Select the suitable option for retrieving all the employees who have a manager?medium
- Select the suitable option for retrieving all the employees whose last name is "kumar"?medium
- How to retrieve department_id column without any duplication from employee relation?medium
- Which statement is true when a DROP TABLE command is executed on a table?medium
- Which statements are true regarding constraints? Select one or more: A constraint is enforced only for the INSERT operation on a table. A foreign key cannot contain NULL values. A columns with the UNIQUE constraint can contain NULL values. A constraint can be disabled even if the constraint column contains data.easy
- You need to remove all the data from the employee table while leaving the table definition intact. You want to be able to undo this operation. How would you accomplish this task?medium
- The SQL statements executed in a user session as follows: create table product(pid int(10),pname varchar(10)); Insert into product values(1,'pendrive'); Insert into product values(2,'harddisk'); savepoint a; update product set pid=20 where pid=1; savepoint b; delete from product where pid=2; commit; delete from product where pid=10; Which statements describe the consequence of issuing the ROLLBACK TO SAVE POINT a command in the session?medium
- All columns in the SELECT list that are not in group functions must be in the GROUP-BY clause. State True or False.easy
- Group functions can be used in the where clause. State True or False.easy
- Single row functions can be nested to any level. State true or False.easy
- What will be the output for the below query: select ceil(5.3) from dual;medium
- We need to create a report to display the order id, ship date and order total of your ORDER table. If the order has not been shipped, your report must display 'Not Shipped'. If the total is not available, your report must display 'Not Available'. In the ORDER table, the SHIPDATE column has a datatype of DATE. The TOTAL column has a datatype of INT. Which statement do you use to create this report?medium
- To generate a report that shows an increase in the credit limit by 15% for all customers. Customers whose credit limit has not been entered should have the message "Not Available" displayed. Which SQL statement would produce the required result?medium
- To display the names of employees that are not assigned to a department. Evaluate this SQL statement: SELECT last_name, first_name FROM employee WHERE dept_id = NULL; Which change should you make to achieve the desired result?medium
- Which statement is true regarding the default behavior of the ORDER BY clause?medium
- ABC company wants to give each employee a $100 salary increment. You need to evaluate the results from the EMP table prior to the actual modification. If you do not want to store the results in the database, which statement is valid?medium
- Select the suitable option for fetching the output of the following query. select substr("Oracle World",1,6) from dual;medium
- Which operator is NOT appropriate in the join condition of a non-equi join SELECT statement?medium
- In which cases would you use an outer join?easy
- To display the names of employees who earns more than the average salary of all employees. SELECT last_name, first_name FROMemployee WHEREsalary > AVG(salary); Which change should you make to achieve the desired results?medium
- To create a report displaying employee last names, department names, and locations. Which query should you use to create an equi- join?medium
- Which statement would display the highest credit limit available in each income level in each city in the Customers table?medium
- Which SQL statement produces an error?medium
- The COMMISSION column shows the monthly commission earned by the employee. Emp_Id Dept_Id Commission 1 10 500 2 20 1000 3 10 4 10 600 5 30 800 6 30 200 7 10 8 20 300 Which tasks would require sub queries or joins in order to be performed in a single step? Select one or more: Listing the employees who earn the same amount of commission as employee 3 Listing the employees whose annual commission is more than 6000 Listing the departments whose average commission is more that 600 Listing the employees who do not earn commission and who are working for department 20 in descending order of the employee ID Finding the total commission earned by the employees in department 10 Finding the number of employees who earn a commission that is higher than the average commission of the companymedium
- What statement would display the age of Customers with the alias name as AGE?medium
- Which SQL statement would you use to remove a view called EMP_DEPT_VU from your schema?medium
- CREATE INDEX emp_dept_id_idx ON employee(dept_id); Which of the following statements are true with respect to the above index?medium
- An owner can give specific privileges on the owner's objects to others. State True or False.easy
- The owner has all the privileges on the object. State true or False.easy
- Which SQL statement grants a privilege to all the database users?medium
- Equijoin is called as ______.medium
- _____ is used to retrieve records that do not meet the join conditionmedium
- Joining a table to itself is called as ______.medium
- The _______ join is based on all columns in the two tables that have the same data type.medium
- The _______ join produces the cross product of two tables.medium
- Tom has designed a payroll software for XYZ technology.The sofware will store the salary details into the database and later he can retreive the same for future references. Tom falls under which category of user.medium
- Which of the following is not a valid relational database?medium
- SQL is a case sensitive language and the data stored inside the table are case in-sensitive. Say true or false?easy
- Which of the following represents the degree of the relation?medium
- Database is a shared collection of logically unrelated data, designed to meet the needs of an organization. State True or False.easy
- We need to ensure that the amount withdrawn should be less then the credit card limit amount, to ensure this integrity what type constraint will be used?medium
- A table consists of ______ primary keys.medium
- An emp table contains fields employ name, desig and salary. How do you drop column salary?medium
- Which of the following options is not correct?medium
- Which of the following is not modification of the databasemedium
- A relational database consists of a collection ofmedium
- Column header is referred asmedium
- ___________ removes data from the table, but structure remains the same.medium
- In a relational database a referential integrity constraint can be done usingmedium
- Merge is not supported by MySQL. The other possible way of doing the work of merge statement, is by using ON DUPLICATE KEY UPDATE in the insert statement. State TRUE or FALSE.easy
- Consider the below table structure: Column Name DataType Constraint Empname Varchar(20) Not Null EmpId int(10) PK Phoneno bigint(10) Not Null insert into employee(empid,empname)values('123','John'); When we issue the above insert command and if the statement fails, what would be the reason.medium
- Examine the structure of the STUDENT table: Column Name DataType Constraint Stud_id int(3) PK Name Varchar(20) Not Null Address Varchar(30) DOB Date Which statement inserts a new row into the STUDENT table?medium
- State True or False. COMMIT ends the current transaction by making all pending data changes permanent.easy
- Numeric datatype is used to store_______medium
- Which of the below is a reference option for deleting rows from a table?medium
- To remove a relation from SQL database, we use ___________ command.medium
- What is the Default format for Date datatype?medium
- How to retrieve department_id column without any duplication from employee relation?medium
- Select the suitable option for retrieving all the employees who have a manager?medium
- Select the suitable option for retrieving all the employees whose last name is "kumar"?medium
- Which statement about SQL is true?medium
- Which statement is true when a DROP TABLE command is executed on a table?easy
- Which statements are true regarding constraints? Select one or more: Af i k t t i NULL l A foreign key cannot contain NULL values. A constraint is enforced only for the INSERT operation on a table. A columns with the UNIQUE constraint can contain NULL values. A constraint can be disabled even if the constraint column contains data.easy
- The SQL statements executed in a user session as follows: create table product(pid int(10),pname varchar(10)); Insert into product values(1,'pendrive'); Insert into product values(2,'harddisk'); savepoint a; update product set pid=20 where pid=1; savepoint b; delete from product where pid=2; commit; delete from product where pid=10; Which statements describe the consequence of issuing the ROLLBACK TO SAVE POINT a command in the session?medium
- You need to remove all the data from the employee table while leaving the table definition intact. You want to be able to undo this operation. How would you accomplish this task?medium
- What will be the output for the below query: select ceil(5.3) from dual;medium
- Single row functions can be nested to any level. State true or False.easy
- All columns in the SELECT list that are not in group functions must be in the GROUP-BY clause. State True or False.easy
- Group functions can be used in the where clause. State True or False.easy
- We need to create a report to display the order id, ship date and order total of your ORDER table. If the order has not been shipped, your report must display 'Not Shipped'. If the total is not available, your report must display 'Not Available'. In the ORDER table, the SHIPDATE column has a datatype of DATE. The TOTAL column has a datatype of INT. Which statement do you use to create this report?medium
- Select the suitable option for fetching the output of the following query. select substr("Oracle World",1,6) from dual;medium
- To display the names of employees that are not assigned to a department. Evaluate this SQL statement: SELECT last_name, first_name FROM employee WHERE dept_id = NULL; Which change should you make to achieve the desired result?medium
- ABC company wants to give each employee a $100 salary increment. You need to evaluate the results from the EMP table prior to the actual modification. If you do not want to store the results in the database, which statement is valid?medium
- To generate a report that shows an increase in the credit limit by 15% for all customers. Customers whose credit limit has not been entered should have the message "Not Available" displayed. Which SQL statement would produce the required result?medium
- Which statement is true regarding the default behavior of the ORDER BY clause?medium
- To display the names of employees who earns more than the average salary of all employees. SELECT last_name, first_name FROMemployee WHEREsalary > AVG(salary); Which change should you make to achieve the desired results?medium
- In which cases would you use an outer join? Selectone: Seec o e: The tables being joined have only unmatched data. Only when the tables have a primary key/foreign key relationship. The tables being joined have only matched data. The tables being joined have both matched and unmatched data. The tables being joined have NOT NULL columns.medium
- Which operator is NOT appropriate in the join condition of a non-equi join SELECT statement?medium
- Which statement would display the highest credit limit available in each income level in each city in the Customers table?medium
- What statement would display the age of Customers with the alias name as AGE?medium
- Which SQL statement produces an error?medium
- The COMMISSION column shows the monthly commission earned by the employee. Emp_Id Dept_Id Commission 1 10 500 2 20 1000 3 10 4 10 600 5 30 800 6 30 200 7 10 8 20 300 Which tasks would require sub queries or joins in order to be performed in a single step? Select one or more: Listing the employees who earn the same amount of commission as employee 3 Finding the total commission earned by the employees in department 10 Listing the departments whose average commission is more that 600 Listing the employees whose annual commission is more than 6000 Finding the number of employees who earn a commission that is higher than the average commission of the company Listing the employees who do not earn commission and who are working for department 20 in descending order of the employee IDmedium
- To create a report displaying employee last names, department names, and locations. Which query should you use to create an equi-join?medium
- An owner can give specific privileges on the owner's objects to others. State True or False.easy
- Which SQL statement grants a privilege to all the database users?medium
- CREATE INDEX emp_dept_id_idx ON employee(dept_id); Which of the following statements are true with respect to the above index?easy
- Which SQL statement would you use to remove a view called EMP_DEPT_VU from your schema?medium
- The owner has all the privileges on the object. State true or False.easy
- Joining a table to itself is called as ______.medium
- Equijoin is called as ______.medium
- The _______ join is based on all columns in the two tables that have the same data type.medium
- The _______ join produces the cross product of two tables.medium
- _____ is used to retrieve records that do not meet the join conditionmedium
- Which command is used to change a table's behavior?medium
- We need to ensure that the amount withdrawn should be less then the credit card limit amount, to ensure this integrity what type constraint will be used?medium
- An emp table contains fields employ name, desig and salary. How do you drop column salary?medium
- How would you add a foreign key constraint on the dept_no column in the EMP table, referring to the id column in the DEPT table?medium
- A table consists of ______ primary keys.medium
- __________ command is used to delete the records and _________ command is used to delete the db objects?medium
- Which of the following options is not correct?medium
- Which of the following is not modification of the database?medium
- Which of the following data models supports many-to-many relationships?medium
- Which of the following is not a part of RDBMS?medium
- Which of these are standard and best practises for SQL?medium
- Which are auto-commit statements?medium
- Which of the update statement produces the following error in the employee table? ORA-02291: integrity constraint (SYS_C23) violated - parent key not found.medium
- Which of the following is not a DML statement?medium
- Which SQL statement needs both insert and update privilege on the target table and select privilege on the source table?medium
- On delete restrict is used to restrict the deletion of child records. State True or False.easy
- Delete statement supports up to two conditions only. State True or Falseeasy
- Which statement inserts a new row into the STUDENT table?medium
- insert into employee(empid,empname)values(123,'John'); When we issue the above insert command and if the statement fails, what would be the reason.medium
- DELETE FROM dept WHERE dept_id = 901; The above delete statement throws an integrity constraint error because a child record was found. What could we do to make the statement execute?medium
- Which query is used to delete employee records whose age is greater than 55?medium
- By using _____ datatype we can store numeric and character values as an input .medium
- To permanently remove all the data from the STUDENT table, and you need the table structure in the future. Which single command performs this?medium
- Which statement would you use to add a primary key constraint to the patient table using the id_number column, immediately enabling the constraint?medium
- Composite key is used in one to one relationship. State true or false.easy
- Which CREATE TABLE statement is valid?medium
- Cascade constraints are used only in drop statements. State True or False.easy
- select substr("Oracle World",1,6) from dual;medium
- ABC company wants to give each employee a $100 salary increment. You need to evaluate the results from the EMP table prior to the actual modification. If you do not want to store the results in the database, which statement is valid?medium
- To display the names of all promos done after January 1, 2001 starting with the latest promo. Which query would give the required result? (Choose all that apply.)medium
- Which statement is true regarding the default behavior of the ORDER BY clause?medium
- To calculate the number of days from 1st Jan 2007 till date: Dates are stored in the default format of dd-mm-rr. Which SQL statements would give the required output?medium
- To generate a report that shows an increase in the credit limit by 15% for all customers. Customers whose credit limit has not been entered should have the message "Not Available" displayed. Which SQL statement would produce the required result?medium
- The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL; CUSTOMER_NAME VARCHAR2(100) NOT NULL; CUSTOMER_ADDRESS VARCHAR2(150); CUSTOMER_PHONE VARCHAR2(20); You need to produce output that states "Dear Customer customer_name, ". The customer_name data values come from the CUSTOMER_NAME column in the CUSTOMERS table. Which statement produces this output?medium
- Generate a list of all customer last names with their credit limits from the CUSTOMERS table. Customers who do not have a credit limit should appear last in the list. kindly note that customers who do not have credit card will have NULL against credit limit.Which query would achieve the required result?medium
- To display the names of employees that are not assigned to a department. Evaluate this SQL statement: SELECT last_name, first_name FROM employee WHERE dept_id = NULL; .Which change should you make to achieve the desired result?medium
- To update the CUST_CREDIT_LIMIT column to NULL for all the customers, where CUST_INCOME_LEVEL has NULL in the CUSTOMERS table. Which SQL statement will accomplish the task?medium
- Tom has designed a payroll software for XYZ technology.The software will store the salary details into the database and later he can retrieve the same for future references. Tom falls under which category of user.medium
- Which statement is used to manipulate data without affecting the data in the table?medium
- Which operator is equivalent to the ‘or’ operator?medium
- How to retrieve department_id column without any duplication from employee relation?medium
- Select the suitable option for retrieving all the employees whose name ends with "kumar"?medium
- Select the suitable option for retrieving all the employees whose salary range is between 40000 and 100000?medium
- Which statement about SQL is true?medium
- Select the suitable option for retrieving all the employees who have a manager?medium
- Which statement is true regarding distinct keywords?medium
- You need to remove all the data from the employee table while leaving the table definition intact. You want to be able to undo this operation. How would you accomplish this task?medium
- Which option is used to delete data from both parent and child tables?medium
- How do we represent comments in oracle?medium
- Which query will change the cust_address to 'Panama' for those who are from ‘Los Angeles’?medium
- Which statement is used to update multiple rows in a single query?medium
- A DML statement is used to modify the structure of the database. State True or false.easy
- Which statements are true regarding constraints?medium
- Which query will delete all the data in the Employee table that belongs to the employee id 1207?medium
- Create table subjects(Sub_id number(2) primary key,Subj_name varchar(50)); Insert into subjects values (null,’Oracle’); What will be the output of the given query?medium
- Which statement is true when a DROP TABLE command is executed on a table?medium
SQL(8)
- What is the difference between WHERE and HAVING clauses in SQL?medium
- Which constraints does a PRIMARY KEY automatically enforce?easy
- What rows does a LEFT JOIN return that an INNER JOIN does not?medium
- What is the key difference between DELETE and TRUNCATE in SQL?medium
- How do aggregate functions like COUNT(), SUM(), and AVG() handle NULL values?medium
- In which scenario is a correlated subquery typically less efficient than a JOIN?hard
- A table is in Third Normal Form (3NF) when it satisfies which conditions?hard
- Which scenario benefits MOST from adding a database index?medium
Essentials
291 questionsEssentials(291)
- In a neural network, what does a neuron compute?medium
- Which function introduces non-linearity in a neural network?medium
- Which of the following is NOT a layer type in a typical neural network?medium
- Which application of ML is used to detect unusual patterns in data?medium
- In which type of ML does an agent learn by interacting with an environment?medium
- Which of the following is a common activation function in neural networks?medium
- How is a neural network's performance typically evaluated during training?medium
- Which of the following is a challenge in training deep neural networks?medium
- What is the role of the loss function in training a neural network?medium
- What is the primary purpose of backpropagation?medium
- What is the primary purpose of a loss function in training neural networks?medium
- Which of the following is a technique to prevent overfitting in neural networks?medium
- Which of the following is NOT a common machine learning algorithm?medium
- What is the main difference between regression and classification?medium
- What is the primary goal of machine learning?medium
- In the context of neural networks, what does the term "backpropagation" refer to?medium
- Which component of a neural network is responsible for combining inputs and passing them to the next layer?medium
- Which activation function outputs a value between 0 and 1?medium
- Which of the following is NOT a type of machine learning?medium
- Which application of ML is used to group similar items?medium
- Which of the following is NOT a direct application of the Transformer architecture?medium
- Which generative model introduced a stochastic layer that models data in a latent space?medium
- What is the primary advantage of Transformers over RNNs in terms of processing sequences?medium
- Which AI model series by OpenAI, based on the Transformer architecture, is known for generating highly coherent content?medium
- What mechanism allows the Transformer model to weigh the importance of different words in a sequence?medium
- Which model can transform horse photos into zebra photos without direct comparison?medium
- What is the main innovation introduced by the "Attention Is All You Need" paper?medium
- Which model is known for its rules for creating stable and effective AI image-makers?medium
- Which model demonstrated that using larger architectures can produce better images?medium
- In the context of GANs, what is the role of the Discriminator?medium
- Who introduced Generative Adversarial Networks (GANs)?medium
- What is the primary purpose of generative models?medium
- Which of the following research papers is foundational for Variational Autoencoders (VAEs)?medium
- Which model uses a probabilistic approach to encode and decode data?medium
- Which of the following is NOT a direct application of GANs but rather an outcome of its influence?medium
- In which year were Generative Adversarial Networks (GANs) first introduced?medium
- Which architecture is primarily associated with attention mechanisms?medium
- What are the two main components of a GAN?medium
- Which model marked a significant milestone in the use of transformers in NLP?medium
- Which pioneering research in Generative AI specifically emphasized the generation of text sequences?medium
- How might AI transform the fitting experience in fashion retail?medium
- What is a potential challenge of over-relying on AI in fashion?medium
- Which is a potential future application of Generative AI in fashion?medium
- What could be a futuristic application of Generative AI in creating personalized clothing?medium
- Which brand has utilized AI for generating new clothing designs?medium
- How can Generative AI contribute to sustainable fashion?medium
- What aspect of AI in fashion raises concerns about user privacy?medium
- In the context of sustainability, how might AI be used in material design?medium
- Who is a prominent virtual influencer mentioned in the case study?medium
- How can Generative AI potentially impact inventory management in fashion?medium
- Beyond body image standards, what's another ethical concern regarding virtual models?medium
- Why might there be concerns about an over-reliance on data-driven AI in fashion?medium
- How does AI enhance the shopping experience?medium
- What ethical concern arises from the use of virtual models in fashion?medium
- What is the global valuation of the fashion industry?medium
- If an AI system is designed to label images of cats and dogs, it is primarily a _______ model.medium
- Which AI type is best for predicting outcomes?medium
- Which is NOT a real-world application of Generative AI?medium
- Which of the following is a direct application of Generative AI in the entertainment industry?medium
- In the context of AI, which model type is more concerned with the underlying distribution of data?medium
- What is Generative AI primarily used for?medium
- Generative AI can be used to create which of the following?medium
- How does Generative AI differ from Classification AI?medium
- Which statement best describes the role of Generative AI?medium
- Why is Generative AI considered significant in the realm of artificial intelligence?medium
- Which of the following fields can utilize Generative AI to create new, original content or simulations?medium
- Generative AI is closely related to which type of models?medium
- Which type of AI is primarily concerned with how data is generated rather than how it's separated?medium
- In which application is Generative AI NOT typically used?medium
- What does AI stand for?medium
- Which of the following is NOT a type of AI?medium
- Which statement best defines Generative AI?medium
- Which of the following is NOT a property of likelihood?medium
- Which model type aims to capture the joint probability P(x, y)?medium
- Which of the following best describes the difference between generative and discriminative models?medium
- Within the architecture of Generative Adversarial Networks (GANs), which duo of fundamental elements are paramount?medium
- For what tasks can generative models be applied?medium
- What does a probability distribution provide?medium
- What's a significant hurdle when training GANs?medium
- Within generative models, what function does the discriminator serve in GANs?medium
- How is the likelihood of data given a model symbolized?medium
- If a model is better at distinguishing between classes rather than generating data, it is likely a _______.medium
- Which model type is primarily concerned with determining P(y | x)?medium
- What is the primary goal of generative models in AI?medium
- Which statement best differentiates generative from discriminative models?medium
- Which of the following is crucial for understanding the behavior of generative models?medium
- In the context of generative models, what does P(x) represent?medium
- Which of the following is NOT a generative model?medium
- Generative models are primarily used for which of the following tasks?medium
- What does likelihood measure in the context of a model?medium
- In the context of models, what does P(x | y) typically represent?medium
- What is a primary application of VAEs mentioned in the case study?medium
- What is the y-axis label of the chart visualizing the error?medium
- Which is NOT a challenge in implementing VAEs for this use-case?medium
- For how many epochs is the VAE trained?medium
- What criterion is used to determine if a data point is anomalous?medium
- What is the VAE trained to learn effectively?medium
- Why is understanding the VAE's outputs challenging?medium
- In the VAE, what does the sampling function introduce?medium
- What two components combine to form the VAE's loss?medium
- Which of the following is NOT an attribute in the given data?medium
- What type of dataset does the manufacturing plant collect?medium
- How is the data divided for training the VAE?medium
- What does the VAE attempt to minimize during training?medium
- Why is data preprocessing required before training the VAE?medium
- Over time, due to certain changes, what might be required of the VAE model?medium
- In which application can VAEs detect unusual patterns?medium
- Which of the following is a key component of the VAE loss function?medium
- In which application might VAEs be used to enhance image quality?medium
- Why is the reparameterization trick important in VAEs?medium
- Which optimization technique is commonly used with VAEs?medium
- Autoencoders primarily focus on which aspect of data?medium
- Which of the following is NOT a typical use case for VAEs?medium
- Why is variational inference used in VAEs?medium
- How do VAEs differ from traditional autoencoders?medium
- What do VAEs use to generate a distribution over latent variables?medium
- Why are autoencoders considered generative models?medium
- Reparameterization trick is used to...medium
- What does VAE stand for?medium
- What is the primary role of autoencoders in generative modeling?medium
- Which application does NOT typically use VAEs?medium
- Why is the reparameterization trick crucial in training VAEs?medium
- In the context of Variational Autoencoders (VAEs), what does variational inference help achieve?medium
- Which component of the VAE loss function ensures the latent variables adhere to a standard distribution?medium
- In which application might you use a VAE for generating new, coherent samples?medium
- Which of the following is NOT a type of autoencoder?medium
- Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Dinner Plan Five friends plan to go out for dinner. They plan to order equal number of dishes. Each row specifies individual cost. Find the total amount each person needs to pay. Assume the values for this matrix for 3 dishes are 12 23 18 45 32 60 42 39 23 54 42 60 25 84 30 The output will be Amount to be paid by person 1 is 53 Amount to be paid by person 2 is 137 Amount to be paid by person 3 is 104 Amount to be paid by person 4 is 156 Amount to be paid by person 3 is 139 Explanation : Output is the sum of each row Code: BEGIN DECLARE variable arr[5][20], n, sum=0 ___________________ FOR j IN 0 to n-1 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 4 DO SET sum = 0 FOR j IN 0 TO n-1 DO sum = sum + arr[i][j] END FOR PRINT "Amount to be paid by person "+(i+1)+" is "+sum END FOR ENDmedium
- Choose the correct pseudocode for the below problem statement. Problem Statement : Find Maximum value Choose a pseudo code to find the maximum values in each row of a matrix. Assume it is a 3x3 matrix. Explanation : Matrix will be with index (0,0) (0,1) (0,2) (1,0) (1,1) (1,2) (2,0) (2,1) (2,2) Assume the values for this matrix are 12 23 18 45 32 60 42 39 23 The output will be Max value in row 1 is 23 Max value in row 2 is 60 Max value in row 3 is 42medium
- A mathematical quiz context happened in a school and the scores are stored in an array named quizmark. The coordinating person wants to copy the quiz score into another array named copyquizmark. Which of these options will do that?medium
- Assume, number[100] <- 99. How many elements can be stored inside the array variable number?medium
- Which of the following are False with respect to the manipulation of arrays?medium
- Negative elements can be placed inside an array. State true / falseeasy
- The names of all associates undergoing training are stored in an array named associate_name[50]. The 5th associates’ name is retrieved asmedium
- Information about ___________ need not be specified when declaring an arraymedium
- It is not possible to do a search operation in an array that is not sorted. State True/False.easy
- The operation of ordering the elements in the list is known asmedium
- Random access is not possible in an array. State True/Falseeasy
- Assume you have an array named numbers of size 10. Which of the assignment is valid?medium
- Which of the following statements is correct with respect to arrays?medium
- Expression within [ ] should always resolve to amedium
- Consider you buy a laptop. You want to store the details of that laptop such as price, model_name,model_number, warranty_period into a single array named details[10]. Is ths possible?medium
- List of songs stored in your mobile phone is a good example formedium
- Consider you want to compare the prices of redmi , sony, samsung phones in three online sites like amazon,flipkart,ebay. Which array type is best suitable to do this comparision?medium
- It is possible to traverse through an array from the first position to the last and not vice versa. State true or false.easy
- An Array consists of rows and columns is also called as________medium
- Choose the correct Pseudo code to store names in an array and display a name.medium
- Expression is a combination of ___________, ____________ and _______________medium
- 1.Take 1 away from me and you get a prime number; add 1 to me and you get twice that prime number.medium
- Find out the logic of series and complete. 9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?medium
- I am an odd number; take away an alphabet and I become even. What am I?medium
- Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Strong number Check if a given number is a strong number. 145 is a strong number because 1!+4!+5! = 145. Sample Input : 145 Sample Output : Strong number Code: BEGIN DECLARE variables number, sum, temp, remainder, fact READ number SET sum=0, temp=number __________________ remainder = number % 10 SET fact = 1 FOR i IN 1 to remainder DO fact = fact *i END FOR sum = sum+ fact number = number / 10 END WHILE IF sum==temp THEN PRINT "Strong number" ELSE PRINT "Not a Strong number" END IF ENDmedium
- Choose the pseudocode for the below problem statement. Problem Statement : Vehicle Registration Mr.William buys a new Audi car. During the vehicle registration, he desires a fancy number in such a way that both the number and its reverse are the same. Generate an algorithm to find that fancy number. Sample Input : 1221 Sample Output : Number is Fancymedium
- Consider the output: “0, 2, 4, 6, 8 ,10 ,12, 16” Which of the below given pseudo code snippet gives the above output?medium
- Predict the output of the given flowchart.medium
- Iteration/looping is a repetition of___________ Select one or more:easy
- Do-while looping statement is almost same as______medium
- What is true about FOR LOOP?medium
- Jack wants to book flight tickets in Feather-Airways’ online portal for his family of five. Passenger details like name, age, gender etc. should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?medium
- What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number ENDmedium
- What is the output for FOR-loop snippet? FOR i <--1 to 15 PRINT i i <-- i+3 END FORmedium
- Which of the following symbols is inappropriate in building the flowchart pertaining to sequential flow of program?medium
- The statement / statements within the loop must get executed at least once except for do-while statement. State True/False.easy
- Which of the following statements are true with respect to looping statements? Select one or more:easy
- Which of the following statements are true?medium
- Consider you have a Rubik cube with different colors in each face. To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?medium
- It's Halloween. You go from house to house, tricking or treating. You get 2 candies from each house that you go to. You must return home once you collect 100 candies. Can you arrange the sequence for this loop activity. 1 BEGIN 2 SET candy count <- 0 3 END WHILE 4 DECLARE candy_count 5 WHILE candy_count<=100 6 candy count <- candy_count+2 7 ENDmedium
- Looping statements are also called ____________medium
- Which of the following options are the steps involved in Requirements Analysis? Select one or more:easy
- From the below options, identify the role of the system analyst.medium
- Identify the correct statements from the below options.medium
- Match the correct objectives of each phase involved in Requirements Engineeringmedium
- Identify the type of design that helps in transforming the data model created during requirements analysis phase into the data structures that will be used to implement the softwaremedium
- Match the objectives of the types of design involvedmedium
- Whenever a new product is arrived, the stock needs to be updated. This requirement is an example for non functional requirement. State true or Falseeasy
- Identify the possible entities from the given option Select one or more:easy
- Consider the below scenario. A team has many players and the player belongs to one team. Identify the cardinality between player and teammedium
- Which of the following are available in SRS Document?medium
- What kind of non functional requirement best suit the below scenario: Whenever the new offers are published in the online shopping site, an sms has to be sent to all the registered customers within 10 minutes of publishingmedium
- _______ describes how the development activities will be performed and how development phases follow each other.medium
- During which phase the following activities are performed: Identifying the major modules of the system, how these modules integrate, the architecture of the system and describing pseudo code for each of the identified modulemedium
- Aesthetics of the website is part of the functional requirement. State true or falseeasy
- _________ is the application of a systematic, disciplined, quantifiable approach to the design, development, operation and maintenance of software.medium
- Requirement came to Allen Software company to develop a software for military purpose. .00001 second delay in the missile launching software would create greater loss to the human life. What kind of model is best suited for this scenario?medium
- Question 1 Pointing to a photograph of a boy Mathew said, "He is the son of the only son of my mother." How is Mathew related to that boy?medium
- Save Tweety Silvester and Tweety are friends. Bender was one of the Silvester's enemy. One day Silvester and Tweety went on to a trip. Bender planned to kidnap Tweety.. He kidnapped and kept her in one of the hot balloons tied up to a height. There were 50 hot balloons numbered from one. Each balloon will fly to a certain height. Only the numbers having both 3 and 7 as its factors can fly upto the height of the Tweety's balloon. Silvester was confused and he didn't know which numbered balloon can fly to Tweety. (Note: If balloon number is greater than 50, or balloon number less than 1, then it should display invalid balloon number)medium
- Hide and Seek One day, Bunny and his friends were playing hide and seek in the forest. Tom went along to hide. He finds an abandoned bag containing a board(8x8) game in a cave. He gets excited and starts playing the game only to realizes that it's magical. He has three chances to roll the dice. Each turn's outcome will lead into a new surrounding and some would be dangerous. If the outcome of rolling dices is in multiples of 3 then he will be caught in a dangerous phase. Note if any one outcome is multiple of 3, then tom is in danger. (If the outcome of rolling dices is either 0 or less than that you should tell Tom as "Invalid Turn". )medium
- Choose the correct options to complete the pseudo-code and determine whether the number is positive, zero, or negative. BEGIN DECLARE number READ number IF _________ PRINT “Number is positive” IF _________ PRINT “Number is zero” IF _________ PRINT “Number is Negative” END IF ENDmedium
- You are returning home from a hotel. On the way, you find a sealed envelope in a street, fully addressed with unused stamps on it. What would you do???medium
- Decision statements are also called as _______________.medium
- When a single if-else logic is used, how many possible choices can be there?medium
- If a doctor gives you 3 pills and tells you to take one pill every half hour, how long would it take before all the pills had been taken?medium
- From the option, find the correct pseudo-code to find the greatest of three numbersmedium
- Manual execution of the steps in the algorithm is called as _____medium
- A computer program must either use conditional statements or looping statements or sequential statements to solve a problem. All of them must not appear in the same program. State true/ false.easy
- Which statement logic implements multiple-way selection?medium
- By default, the flow of a program is________medium
- Identify the logic which suits the flowchartmedium
- Which of the keyword is used to close the IF block, while writing a pseudo-code?medium
- Which of the following is not a keyword used in a pseudo-codemedium
- Consider the pseudo-code snippet. What output do you think the snippet will produce if the sample input for number is 3? BEGIN DECLARE number READ number IF number>=0 IF number == 0 PRINT “Zero” ELSE PRINT “Three” ENDIF PRINT “No Value” ENDmedium
- What do you infer from this statement? “Only if Alvin is happy, then he does not go to work.”medium
- Go to statements in the algorithm is…medium
- Arrange the pseudo-code logic for checking a number divisible by 5 or 11.medium
- ______________must be used when a set of statements needs to be executed only if a condition is met.medium
- Identify the correct pseudo-code logic for checking a number divisible by 5 or 11.medium
- If there are 6 chocolates and you take away 4, how many do you have?medium
- READ age IF age>18 THEN PRINT “Eligible to vote” ENDIF The given pseudo-code snippet is an example for_______medium
- Which of the following options are valid for the relationship between the configuration objects?easy
- Version Control allows users to lock files so they can only be edited by one person at a time and track changes to fileseasy
- Choose the missing steps involved in the Change Control Process in the correct order: Identify and submit change request ____________ Plan the change Implement and test the change Verify implementation of change Close change requestmedium
- State true or false. Automated tools are available in the market, for managing change and versioning the softwareeasy
- Version Management allows parallel concurrent development. State True or False.easy
- Which of the following describes the change history of an object?medium
- _________ is a committee that makes decisions regarding whether or not proposed changes to a software project can be incorporated.medium
- From the options identify the features that are part of the software configuration managementmedium
- Y2K problem is an example for ------------- maintenancemedium
- Client wanted to add a new feature to his existing application "Discount Offers" for all the existing customers. Whenever a new product comes to the supermarket, their customer's should be intimated with the week day offer. What kind of maintenance is this?medium
- Client has developed an application that allows each of their customers to store 2TB of data. As the number of Customers are increasing client feels the storage space has to be increased for smooth operations to its customers. What type of maintanence is this?medium
- In an online shopping application, during customer registration the customer was made to enter his city in a text box. As the site became popular for online shopping, the client came back to include autocomplete feature in the city field to improve user friendliness. What maintenance needs to be carried out in this scenario?medium
- Any changes done to the software during the operational phase of the software before project wind up is called as maintenance. State if True or False.easy
- In Software maintenance, changes are implemented by modifying existing components and adding new components to the system. State if True or False.easy
- Software maintenance for the change of the platform is an example for --------- maintenancemedium
- Which conforms that the software meets its technical specifications?medium
- The software is put into operation in the client’s environment. The client comes back to enhance the UI to attract more customers. This phase is called as _______________medium
- Which of the below is one of the phase of the prototype model?medium
- Major functions are addressed in the first cycles there by delivering an operational product. Which of the SDLC process models achieves this?medium
- Beta technologies has undertaken a collision avoidance system software to be implemented for airports. Additional safety measures have to be automated by warning pilots when another aircraft gets closer, otherwise impacts are huge. Which of the following SDLC process models best suits the requirement?medium
- The student mark processing system software has been developed and deployed at the St. Peters university. The system shows the grade as 0 for all the students rather than the actual grade. Which phase below was not done properly during the SDLC?medium
- Which model emphasizes Validation and Verification at each level of stage containment?medium
- Consider that you have to develop a flight control system. The system is simulated as such that the original system is working. There are many potential hazards with such a system. What model would you suggest to develop the system?medium
- Testing performed by the user to ensure that the system meets the agreed upon quality attributes and the specification is called as….medium
- Choose the option that accurately represents the sequential order of phases in the Waterfall model.medium
- Scenario: LIC has manually carried out their process of premium collection procedure for the past 45 years. Now, they have employed the services of another company to automate the above. Question: Which of the following models would you suggest to the outsource company?medium
- ABC company comes to the Allen Software Company with various requirement. The client wants the functionality to view all the employee profile, view salary information of the employee and view the leave details.Once each functionality is completed the module will be delivered to the client. Which would be the right model for this scenariomedium
- A client wants to develop a Web application for the new Super market store. The client want to have lot of UI components and customers will have lot of interactions with the UI. What model is best suitedmedium
- ________ involves transformation of user needs into an effective software solution.medium
- Spiral life cycle model is not suitable for products that are vulnerable to large number of risks. State if True or False.easy
- When there is a difference between the output what is expected and the actual one is termed as……medium
- XYZ Finance Co. has, at present, started its operations in India. Based on the first six months performance, it has plans for expansion across five countries. They want to automate their operations at this stage. What is the process model that the developer should choose to adopt?medium
- Identify this technique of dynamic testing where, For a range of input, three values are chosen, One value above the range, One value below the range, and One value within the rangemedium
- What is the difference between the actual output of a software and the correct output?medium
- What is the type of testing in which the tester will know about the input and the expected output details based on the specification document only but no knowledge on implementation?medium
- Identify the correct phases of software testing life cycle.medium
- Which all of the following options would basis path testing perform?medium
- Tester is trying to test whether the values in the drop down are listed properly. What type of testing the tester performs in this scenario?medium
- After implementation of Library management system, the tester identified that certain logic are redundantly rewritten by the developers, and the coding standards are violated in few modules. What type of testing is carried out to identify these errors?medium
- Determine the cyclomatic complexity for the following code: Accept year if(year mod 4=0 and year mod 100!=0) or(year mod 400 =0) print year is leap else print year is not leap end if.medium
- Boundary value analysis can only be used during white-box testing. State if True or False.easy
- In the online shopping portal, for customer registration the password field can accept only characters in the range of 5 to 25. Derive test cases using Boundary value analysismedium
- Walk through is performed by the trained moderator, whereas the Inspection is usually conducted by the author itself to record defects and deviationseasy
- The testing technique that deals with the internal logic and structure of the code is called ________.medium
- The standard document that describes all the requirements of the system is called as …medium
- Client Comes to Allen Company for a Banking Solution. Who from the below options would be best suited to gather all the requirements correctly from the clientmedium
- In remote control Car application, in the step by step execution of the requirement described, it is mentioned when the fuel level goes below the minimum level, the application should indicate the user in red color. In the output section of the same process it is mentioned that the indicator will glow pink. What is the kind of requirement specified in SRS?medium
- A good SRS should be ______, ________ and _______.medium
- Client Comes to Allen Company for a Banking Solution.Which phase of SDLC is best suited to gather what is expected from clientmedium
- An SRS has the following requirement.The stock exchange shall show the stock report for the next 24 hours.What is the issue with this requirementmedium
- In the web page, we have a field called phoneno and inside this textbox field, the text : "Only numbers are allowed" must appear. This should get disappeared automatically once we type the phoneno into it. Which of the below options will suit the given scenario?easy
- Ram has designed a portal that fetches the citizens' feedback regarding the voting process in India. The portal allows the end user to choose either 'like' image or 'unlike' image, so that it gets redirected to a page : "thanks.html".medium
- Choose the relavant HTML input type attributes.medium
- If the phone number should accept only 10 digit numbers, which of the following options will suit?medium
- Consider the below webpage:medium
- Which of the following is/are the new feature(s) of HTML5?easy
- HTML stands for __________medium
- Which element is a container for all the head elements, and may include the document title, scripts, styles, meta information, and more?medium
- An application that lets you search and see material on the internet ismedium
- John wants to animate (moving effect) an element in the webpage he designed. For this, he set its CSS position property to its default value and applied the animations. If there is no syntax error in the code, what would be output he gets?medium
- jQuery is a JavaScript Object Notation librarymedium
- Some people don’t want animation to interfere with their web page experience. What do I do if I want to let a user turn off the animation?medium
- Raju wants to remove an event handler that was attached with on() function.Help him to select the correct option.medium
- Rhita wants to replace a jQuery code '$(document).ready(fun)' using another equivalent method. Help her to find the correct method from the given options.medium
- $("#name").remove(); This will remove the text field when you click on the button. State true or false.easy
- Bind an event handler to the "blur" JavaScript event on an element.medium
- When referencing an HTML element using jQuery preceded by a ‘ # ‘ , what JavaScript function is this equivalent to?medium
- The following elements are newly added elements in HTML5: <section> <article> <aside>medium
- Which of the following is most appropriate tag in html 5 to divide the document into logical document groups?medium
- If you want to change the color of a link to red when moving mouse pointer on top of it, which CSS property you need to change?medium
- Which of the following is/are true about HTML?easy
- What is the output of the below code snippet <script type="text/javascript"> amt=55+"55"; document.write(amt); </script>medium
- Choose the correct JavaScript statement which helps you to write "World of JavaScript" in a web page?medium
- Which of the below is the correct syntax for exectuing some code if "amt" is equal to 5000?medium
- Ram is the developer of Allen Software company. He is designing the website for the banking application. There is a button called 'check interest rates'. When that button is clicked, the user has to be redirected to a seperate page to show the domestic interest rates. Help Ram in accomplishing this task using the javascript.medium
- The parseInt() method converts the string to a integer. Before applying this function, Ram wants to know the type of the argument that is passed to the function. Which operator in javascript would support this ?medium
- Polson is allocated with the task of email validation in java script. He needs to extract character by character and check for email validation like looking for @ . etc. Which method is best suited to extract every character from the text?medium
- Predict the output of the following JavaScript code: <html> <head> <script> var txt= "pass 70% fail 30%"; var pattern = /\D/g; var res= txt.match(pattern); document.write(res); </script> </head> </html>medium
- Sita wishes to greet the user when the user clicks on "Greet Me" button. In which event does she need to write the JavaScript code for greeting the user?medium
- Which of the below java script code helps to change the content of the paragraph tag dynamically? <p id="pid1">Aim Higher.. Sky is your limitmedium
- Which of the below statements are used to comment a line in JavaScript file?medium
- When a user views a page containing a JavaScript program, which machine actually executes the script?medium
- When you want to enclose; some JavaScript statements to an HTML file, which is the correct tag you have to use?medium
- David, a beginner in web development trying to perform one particular operation using client side JavaScript. Choose the correct option(s) that he can't be done with client-side JavaScript?medium
Generative AI
142 questionsGenerative AI(142)
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?hard
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?easy
- Which of the following is a common ethical concern in Generative AI?medium
- Which of the following is a common ethical concern in Generative AI?medium
- What term describes when a Large Language Model generates confident but factually incorrect information?easy
- What technique involves providing a few examples in the prompt to guide an LLM's response?easy
Java Programming
225 questionsJava(11)
- Which keyword in Java prevents a class from being inherited?easy
- Runtime polymorphism in Java is achieved through which mechanism?medium
- Which statement is true about abstract classes and interfaces in Java?medium
- What is the primary benefit of encapsulation in object-oriented programming?easy
- What does the super() call do in a Java constructor?easy
- What is the default value of a boolean instance variable in Java?easy
- What happens when you call concat() on a String object in Java?easy
- What does the following output: Integer a = 127; Integer b = 127; System.out.println(a == b);hard
- Which is a valid way to declare and initialize an array in Java?easy
- Which of the following is a checked exception in Java?medium
- In which scenario does a finally block NOT execute?medium
Java Programming(214)
- Using Java we can develop ___________________.medium
- The main method in java should ___________.medium
- The break statement cannot be present for _____________ construct.medium
- A continue statement makes the execution jump to ______________.medium
- Identify the features of java.medium
- a for loop, if the number of statements are greater than one, which of the following needs to be inserted at the beginning and the end of the loop?medium
- JRE comprises of ___________ and ___________.medium
- What will be the output of the program? public class Sample { final static short a = 2; public static int b = 0; public static void main(String [] args) { for (int c=0; c < 4; c++) { switch (c) { case a: System.out.print("a "); default: System.out.print("default "); case a-1: System.out.print("a-1 "); break; case a-2: System.out.print("a-2 "); } } } }medium
- The ________________ statement causes the program execution to stop and JVM to shut down.medium
- JVM is independent of OSeasy
- To compile, debug and execute a program written in java, _______________ is required.medium
- State true or false. Java is a structured programming language.medium
- Who is the father of Java?medium
- What is Polymorphism?medium
- How was Java initially named?medium
- Java is _____________________________.easy
- What is the output of this program? 1. class Crivitch { 2. public static void main(String [] args) { 3. int x = 10; 4. 5. do { } while (x++ < y); 6. System.out.println(x); 7. } 8. } Which statement, inserted at line 4, produces the output 12?medium
- What will be the output of the program? Given: 10. int x = 0; 11. int y = 10; 12. do { 13. y--; 14. ++x; 15. } while (x < 5); 16. System.out.print(x + "," + y); What is the result?medium
- What is the output of this program? class selection_statements { public static void main(String args[]) { int var1 = 5; int var2 = 6; if ((var2 = 1) == var1) System.out.print(var2); else System.out.print(++var2); } }medium
- Fill in the appropriate data type for the Java switch statement: switch (____) { case value1: ... case value2: ... default: System.out.println("Hello"); }medium
- What value is stored in i at the end of this loop? for(int i =1;i<=10;i++)medium
- The break statement causes an exit ___________medium
- Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?medium
- French curly braces { } is a must if the for loop executes more than one statement. State true or false.easy
- What will be the output of the program? for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); case 2: System.out.print("two "); case 3: System.out.print("three "); } } System.out.println("done");medium
- What will be the output of the program? int i = 1, j = -1; switch (i) { case 0, 1: j = 1; /* Line 4 */ case 2: j = 2; default: j = 0; } System.out.println("j = " + j);medium
- A project developed on one machine can be included in the current workspace by ___________ that project.easy
- State True or False. When typing the code in code editor, it fixes the compilation error. It also assists in how to fix that error.medium
- We can move an already existing project in eclipse to another location by compressing it. This we call as ________ the project.easy
- Eclipse, the plugin that is needed for Java Development is ______________.medium
- Predict the output int a=0; if(a) System.out.println( "Hello"); else System.out.println( "Hai");medium
- What will be the output of the program? public class Sample { public static void main(String [] args) { int i = 10; do while ( i < 10 ) System.out.print("The value of i is " + i); while ( i > 10 ) ; } }medium
- __________ generates the byte code for a given file with .java extension.medium
- Which edition of java is used for developing web application?medium
- State True or False For compiling a java code we have separate compilers for different OS.easy
- Which of the following options remain true for case constants in a switch construct?medium
- Who executes the byte code in java?medium
- The methods of a class with the ____________ access specifier cannot be accessed in its subclass class of different package.medium
- Predict the output. class X { void display(int a) { System.out.println("INT"); } void display(double d) { System.out.println("DOUBLE"); } } public class Sample { public static void main(String[] args) { new X().display(100); } }medium
- Observe the code public class Sample { public static void main(String [] args) { int x = 6; Sample p = new Sample(); p.display(x); System.out.print(" main x = " + x); } void display(int x) { System.out.print(" display x = " + x++); } } Given in command line - java Sample - What is the result?medium
- Integer x1 = new Integer(120); int x2 = 120; System.out.println( x1 == x2 ); What will be the output of the above code fragment?medium
- Given: public class Message { String msg; int noOfWords; public Message() { msg += " Thank you"; } public Message(int noOfWords) { this.noOfWords = noOfWords; msg = "Welcome"; Message(); } public static void main(String args[]) { Message m = new Message(5); System.out.println(m.msg); } } What will be the output ?medium
- Given classes defined in two different files: 1. package p1; 2. public class Test { 3. public static void display(String [] a) { /* some code */ } 4. } 1. package p2; 2. public class TestMain { 3. public static void main(String[] args) { 4. String [] names = new String[10]; 5. // insert code here 6. } 7. } Identify the statement to be written in line 5 in class TestMain to call the display method of class Test.medium
- What is the outcome of the code? public class Item { private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public static void modifyDesc(Item item,String desc) { item=new Item(); item.setDescription(desc); } public static void main(String[] args) { Item it=new Item(); it.setDescription("Gobstopper"); Item it2=new Item(); it2.setDescription("Fizzylifting"); it.modifyDesc(it,"Scrumdiddlyumptious"); System.out.println(it.getDescription()); System.out.println(it2.getDescription()); } }medium
- Which of the following is not a Java modifier?medium
- switch(a) { default: System.out.println("Welcome"); } Of which data types can the variable a be? 1. long 2. byte 3. int 4. char 5. float 6. shortmedium
- Predict the output. public class Test { public static void main(String args[]) { int a = 2, b = 0; for ( ; b < 20; ++b) { if (b % a == 0) continue; else if (b == 10) break; else System.out.print(b + " "); } } }medium
- What will be the output of the following code? int i=20; if(i>10) { System.out.println( "The value of i is "+i); i++; if(i%2!=0) break; }medium
- State True or False When using eclipse whichever classes are needed for the present class can be imported automatically.easy
- Eclipse IDE, if we provide a workspace, it should already exist. If not, it will not open.easy
- ___ and _____ are the access specifiers that can be applied to top level Class.medium
- class Sample{ private double num = 100; private int square(int a){ return a*a; } } public class Test{ public static void main(String args[]){ Sample obj = new Sample(); System.out.println(obj.num); System.out.println(obj.square(10)); } }medium
- Choose the appropriate access specifier for the attribute value so that it can be accessed from anywhere. class Test { public int value; }easy
- Consider the below code snippet and determine the output. class Student { private int studentId; private float average; } class Test { public static void main(String a[]) { Student s=new Student(); s.studentId=123; System.out.println(s.studentId); } }medium
- The below code snippet shows an error cannot find symbol: System.out.println("BookId:"+bobj.getId()); public class Book { private int bookId; private double bookPrice; public int getBookId() { return bookId; } public void setBookId(int bookId) { this.bookId = bookId; } public double getBookPrice() { return bookPrice; } public void setBookPrice(double bookPrice) { this.bookPrice = bookPrice; } } public class Test { public static void main(String[] args) { Book bobj=new Book(); bobj.setBookId(123); bobj.setBookPrice(500); System.out.println("BookId:"+bobj.getId()); System.out.println("BookPrice:"+bobj.getBookPrice()); } } Analyze the above code and select the correct reason for the error.medium
- Observe the below code. public class Student { private int id; private String name; private char grade; //Constructor 1 public Student() { id=0; name= " "; } //Constructor 2 public Student(int id, String name) { this.id=id; this.name=name; } } Choose the constructor that is invoked, when an object is created as shown below. new Student(); Constructor 1 new Student(54, "John"); Constructor 2easy
- Observe the code below. public class Student { int studentId; String name; char grade; public Student(int studentId, String name, float mark) { this.studentId = studentId; this.name=name; calculateGrade(mark); } public void calculateGrade(float mark){ if(mark>90) grade='A'; else grade='B'; } } For the code Student s = new Student(1,"Peter",95); What will be the output?medium
- Observe the below class. class Product{ int productId; String productName; Product { productId=0; productName= ; } Product(int id, String name) { //access Product() ---- Line 1 productId=id; productName=name; } } Identify the valid option which is used to invoke the no argument constructor, Product(), at Line 1.medium
- Given the class Book and Library in two different packages : 1. package model; 2. public class Book { 3. private static void countBook { } 4. } 1. package util; 2. public class Library { 3. public static void main(String[] args) { 4. // insert code here 5. } 6. } What is required at line 4 in class Library to use the countBook method of Book class?medium
- Given the class Book in packages p1 and class Main in package p2. In main to create an object of Book, which of the following are valid.medium
- Assume class Calculator in package p1 and CalculatorService class in package p2 as shown below. package p1; public class Calculator { __________ static void calculate(){ //some code here } } package p2; import p1.Calculator; public class CalculatorService { public void display(){ Calculator.calculate(); } } What can be the valid access specifier for the calculate method in Calculator class so that it can be accessed from CalculatorService class?medium
- Choose the correct order of the Java code fragments: 1) public class Main, 2) import java.util.Scanner;, 3) {, 4) // Some code here, 5) }, 6) package test;medium
- For the below code, what are the valid ways to invoke display method in the main method. public class Test { public static void display(){ } } public class Main { public static void main(String a[]){ //Invoke the display method } }medium
- Given a one-dimensional array arr, what is the correct way of getting the number of elements in arr?medium
- class ArrayTest { public static void main(String args[]) { int[] primes = new int[10]; primes[0] = "a"; System.out.println(primes[0]); } } What will be the result of compiling and executing the above code?medium
- Partially List the correct ways of declaring an Array.medium
- class TestArray { public static void main(String args[]) { int arr_sample[] = new int[2]; System.out.println(arr_sample[0]); } } What will be the result of compiling and executing the above code?medium
- String name="teknoturf"; String cname="teknoturf"; String compname=new String("teknoturf"); 1.if(name==cname) 2.if(name.equals(cname)) 3.if(name==compname) 4.if(name.equals(compname)) Identify the output.medium
- What is the output of this program? class Output { public static void main(String args[]) { int a1[] = new int[10]; int a2[] = {1, 2, 3, 4, 5}; System.out.println(a1.length + " " + a2.length); } }medium
- StringBuilder is less eficient and slower than StringBuffer. State true or false.easy
- State True or False. Advanced for loop is better as it is less error prone as we don't need to deal with index.easy
- which of the following packages can you find String class?medium
- StringBuffer is used to create ______________.easy
- String Objects are mutable. State true or false.medium
- What does this() mean in constructor chaining concept?medium
- package edu.ABC.model; public class Account { public static final float INTERTEST_RATE = 7.5; } Identify the correct options from the classes provided below.medium
- Identify which statement is true about construtors.medium
- Which members of a class can be accessed by other classes is determined by the ________________medium
- Predict the Output of following Java Program. class Test { int x = 10; public static void main(String[] args) { System.out.println(x); } }medium
- Identify the true statement(s). Statement 1 : When no constructor is written in a class, the compiler creates a default constructor Statement 2 : The default constructor will implicitly invoke the default / no-argument constructor of the super class Statement 3 : If a class has a parametrized constructor alone, then the compiler will create the default constructor Statement 4 : If a class has a parametrized constructor, it is mandatory to write a no-argument constructormedium
- Given: public class ItemTest { private final int id; public ItemTest(int id) { this.id = id; } public void updateId(int newId) { id = newId; } public static void main(String[] args) { ItemTest fa = new ItemTest(42); fa.updateId(69); System.out.println(fa.id); } } What is the result?medium
- A JavaBeans component has the following field: private boolean enabled; Which two pairs of method declarations follow the JavaBeans standard for accessing this field? (Choose two.)medium
- The first name of a person should contain only alphabets and space. Which of the following regular expression will match the requirement?medium
- Which of the following text when matched with the regular expression [a-zA-Z&&[^aeiou]]+ will return true?medium
- What is the regular expression to match a whitespace character in a string?easy
- What is the regular expression to match a digit (0-9) in a string?medium
- 00means X occurs zero or more timesmedium
- What is the regular expression to match any email address in a string?medium
- Consider the below statements. Statement 1 : Matcher class interprets the pattern in a String Statement 2 : Matcher class matches the regular expression against the text provided Which of the following is true?medium
- \B means A word boundarymedium
- Predict the output of the below code : import java.util.regex.*; public class TestRegEx{ public static void main(String args[]) { Pattern p = Pattern.compile(".ech"); Matcher m = p.matcher("tech"); boolean b = m.matches(); System.out.println(b); } }medium
- What is the regular expression to match any date in the format "yyyy-mm-dd" in a string?medium
- Observe the below code snippet String name="Sudha learns Oracle"; System.out.println(name.substring(7,12)); What is the output of the above code?medium
- Predict the output of the below code : String emailId="john#global.com"; System.out.println(emailId.indexOf('@'));medium
- What can be the parameters for the indexOf method in String class?medium
- Observe the below code : String course="Java Programming"; char c=course.charAt(16); System.out.println(c); What will be the output for the above code snippet?medium
- Assume that the ID of an employee should start with "CBE" or "BLR" or "HYD" followed by hyphen (-) followed by 4 digits. Choose the apt regular expression that matches this text.medium
- Which of the following matches X occurs n or more times?medium
- The ________________ statement causes the program execution to stop and JVM to shut down.medium
- Using Java we can develop ___________________.medium
- The break statement cannot be present for _____________ construct.medium
- A continue statement makes the execution jump to ______________.medium
- What will be the output of the program? public class Sample { final static short a = 2; public static int b = 0; public static void main(String [] args) { for (int c=0; c < 4; c++) { switch (c) { case a: System.out.print("a "); default: System.out.print("default "); case a-1: System.out.print("a-1 "); break; case a-2: System.out.print("a-2 "); } } } } }medium
- a for loop, if the number of statements are greater than one, which of the following needs to be inserted at the beginning and the end of the loop?medium
- Identify the features of java.medium
- JRE comprises of ___________ and ___________.medium
- The main method in java should ___________.medium
- Java is _____________________________.easy
- JVM is independent of OSeasy
- To compile, debug and execute a program written in java, _______________ is required.medium
- How was Java initially named?medium
- State true or false. Java is a structured programming language.medium
- Who is the father of Java?medium
- What is Polymorphism?medium
- The break statement causes an exit ___________medium
- What is the output of this program? 1. class Crivitch { 2. public static void main(String [] args) { 3. int x = 10; 4. 5. do { } while (x++ < y); 6. System.out.println(x); 7. } 8. } Which statement, inserted at line 4, produces the output 12?medium
- Fill in the appropriate data type for the Java switch statement: switch (____) { case value1: ... case value2: ... default: System.out.println("Hello"); }medium
- What value is stored in i at the end of this loop? for(int i =1;i<=10;i++)medium
- What is the output of this program? class selection_statements { public static void main(String args[]) { int var1 = 5; int var2 = 6; if ((var2 = 1) == var1) System.out.print(var2); else System.out.print(++var2); } }medium
- What will happen when the following code is compiled and run in Java 1.8? int i = 1, j = -1; switch(i) switch (i) { case 0, 1: j = 1; /* Line 4 */ case 2: j = 2; default: j = 0; } System.out.println("j = " + j);medium
- What will be the output of the program? for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); case 2: System.out.print("two "); case 3: System.out.print("three "); } } System.out.println("done");medium
- What will be the output of the program? Given: 10. int x = 0; 11. int y = 10; 12. do { 13. y--; 14. ++x; 15. } while (x < 5); 16. System.out.print(x + "," + y); What is the result?medium
- French curly braces { } is a must if the for loop executes more than one statement. State true or false.easy
- Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?medium
- State True or False. When typing the code in code editor, it shows the compilation error. It also assists in how to fix that error.medium
- Eclipse, the plugin that is needed for Java Development is ______________.medium
- A project developed on one machine can be included in the current workspace by ___________ that project.easy
- We can move an already existing project in eclipse to another location by compressing it. This we call as ________ the project.easy
- Which of the following options remain true for case constants in a switch construct?medium
- What will be the output of the program? public class Sample { public static void main(String[] args) { int i = 10; do while (i < 10) { System.out.print("The value of i is " + i); } while(i>10); while (i > 10); } }medium
- State True or False For compiling a java code we have separate compilers for different OS.easy
- __________ generates the byte code for a given file with .java extension.medium
- Who executes the byte code in java?medium
- Which edition of java is used for developing web application?medium
- Predict the output int a=0; if(a) System.out.println( "Hello"); else System.out.println( "Hai");medium
- Which of the following is not a Java modifier?medium
- Predict the output. class X { void display(int a) { System.out.println("INT"); } void display(double d) { System.out.println("DOUBLE"); } } public class Sample { public static void main(String[] args) { new X().display(100); } }medium
- Integer x1 = new Integer(120); int x2 = 120; System.out.println( x1 == x2 ); What will be the output of the above code fragment?medium
- Observe the code public class Sample { public static void main(String [] args) { int x = 6; Sample p = new Sample(); p.display(x); System.out.print(" main x = " + x); } voiddisplay(intx){ void display(int x) { System.out.print(" display x = " + x++); } } Given in command line - java Sample - What is the result?medium
- Given classes defined in two different files: 1. package p1; 2. public class Test { 3. public static void display(String [] a) { /* some code */ } 4. } 1. package p2; 2. public class TestMain { 3. public static void main(String[] args) { 4. String [] names = new String[10]; 5. // insert code here 6. } 7. } Identify the statement to be written in line 5 in class TestMain to call the display method of class Test.medium
- The methods of a class with the ____________ access specifier cannot be accessed in its subclass class of different package.medium
- What is the outcome of the code? public class Item { private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public static void modifyDesc(Item item,String desc) { item=new Item(); item.setDescription(desc); } public static void main(String[] args) { Item it=new Item(); it.setDescription("Gobstopper"); Item it2=new Item(); it2.setDescription("Fizzylifting"); it.modifyDesc(it,"Scrumdiddlyumptious"); System.out.println(it.getDescription()); System.out.println(it2.getDescription()); } }medium
- Given: public class Message { String msg; int noOfWords; public Message() { msg += " Thank you"; } public Message(int noOfWords) { this.noOfWords = noOfWords; msg = "Welcome"; Message(); } public static void main(String args[]) { Message m = new Message(5); System.out.println(m.msg); } } What will be the output ?medium
- Predict the output. public class Test { public static void main(String args[]) { int a = 2, b = 0; for ( ; b < 20; ++b) { if (b % a == 0) continue; else if (b == 10) break; else System.out.print(b + " "); } } }medium
- Eclipse IDE, if we provide a workspace, it should already exist. If not, it will not open.easy
- What will be the output of the following code? int i=20; if(i>10) { System.out.println( "The value of i is "+i); i++; if(i%2!=0) break; }medium
- switch(a) { default: System.out.println("Welcome"); } Of which data types can the variable a be? 1. long 2. byte 3. int 4. char 5. float 6. shortmedium
- State True or False When using eclipse whichever classes are needed for the present class can be imported automatically.easy
- ___ and _____ are the access specifiers that can be applied to top level Class.medium
- class Sample{ private double num = 100; private int square(int a){ return a*a; } } public class Test{ public static void main(String args[]){ Sample obj = new Sample(); System.out.println(obj.num); System.out.println(obj.square(10)); } }medium
- Choose the appropriate access specifier for the attribute value so that it can be accessed from anywhere. class Test { public int value; }easy
- Consider the below code snippet and determine the output. class Student { private int studentId; private float average; } class Test { public static void main(String a[]) { Student s=new Student(); s.studentId=123; System.out.println(s.studentId); } }medium
- The below code snippet shows an error cannot find symbol: System.out.println("BookId:"+bobj.getId()); public class Book { private int bookId; private double bookPrice; public int getBookId() { return bookId; } public void setBookId(int bookId) { this.bookId = bookId; } public double getBookPrice() { return bookPrice; } public void setBookPrice(double bookPrice) { this.bookPrice = bookPrice; } } public class Test { public static void main(String[] args) { Book bobj=new Book(); bobj.setBookId(123); bobj.setBookPrice(500); (" " ()) System.out.println("BookId:"+bobj.getId()); System.out.println("BookPrice:"+bobj.getBookPrice()); } } Analyze the above code and select the correct reason for the error.medium
- Observe the below code. public class Student { private int id; private String name; private char grade; //Constructor 1 public Student() { id=0; name= " "; } //Constructor 2 public Student(int id, String name) { this.id=id; this.name=name; } } Choose the constructor that is invoked, when an object is created as shown below. new Student(); Constructor 1 new Student(54, "John"); Constructor 2easy
- Observe the code below. public class Student { int studentId; String name; char grade; public Student(int studentId, String name, float mark) { this.studentId = studentId; this.name=name; calculateGrade(mark); } public void calculateGrade(float mark){ if(mark>90) grade='A'; else grade='B'; } } For the code Student s = new Student(1,"Peter",95); What will be the output?medium
- Observe the below class. class Product{ int productId; String productName; Product { productId=0; productName= ; } Product(int id, String name) { //access Product() ---- Line 1 productId=id; productName=name; } } Identify the valid option which is used to invoke the no argument constructor, Product(), at Line 1.medium
- Given the class Book in packages p1 and class Main in package p2. In main to create an object of Book, which of the following are valid.medium
- Given the class Book and Library in two different packages : 1. package model; 2. public class Book { 3. private static void countBook { } 4. } 1. package util; 2. public class Library { 3. public static void main(String[] args) { 4. // insert code here 5. } 6. } What is required at line 4 in class Library to use the countBook method of Book class?medium
- Choose the correct order of the Java code fragments: 1) public class Main, 2) import java.util.Scanner;, 3) {, 4) // Some code here, 5) }, 6) package test;medium
- Assume class Calculator in package p1 and CalculatorService class in package p2 as shown below. package p1; public class Calculator { __________ static void calculate(){ //some code here } } package p2; import p1.Calculator; public class CalculatorService { public void display(){ Calculator.calculate(); } } What can be the valid access specifier for the calculate method in Calculator class so that it can be accessed from CalculatorService class?medium
- For the below code, what are the valid ways to invoke display method in the main method. public class Test { public static void display(){ } } public class Main { public static void main(String a[]){ //Invoke the display method } }medium
- List the correct ways of declaring an Array.medium
- What is the output of this program? class Output { public static void main(String args[]) { int a1[] = new int[10]; int a2[] = {1, 2, 3, 4, 5}; System.out.println(a1.length + " " + a2.length); } }medium
- StringBuffer is used to create ______________.easy
- Given a one-dimensional array arr, what is the correct way of getting the number of elements in arr?medium
- class ArrayTest { public static void main(String args[]) { int[] primes = new int[10]; primes[0] = "a"; System.out.println(primes[0]); } } What will be the result of compiling and executing the above code?medium
- State True or False. Advanced for loop is better as it is less error prone as we don't need to deal with index.easy
- String name="teknoturf"; String cname="teknoturf"; String compname=new String("teknoturf"); 1.if(name==cname) 2.if(name.equals(cname)) 3.if(name==compname) 4.if(name.equals(compname)) Identify the output.medium
- String Objects are mutable. State true or false.medium
- class TestArray { public static void main(String args[]) { int arr_sample[] = new int[2]; System.out.println(arr_sample[0]); } } What will be the result of compiling and executing the above code?medium
- which of the following packages can you find String class?medium
- StringBuilder is less efficient and slower than StringBuffer. State true or false.easy
- Given: public class ItemTest { private final int id; public ItemTest(int id) { this.id = id; } public void updateId(int newId) { id = newId; } public static void main(String[] args) { ItemTest fa = new ItemTest(42); fa.updateId(69); System.out.println(fa.id); } } What is the result?medium
- Predict the Output of following Java Program. class Test { int x = 10; public static void main(String[] args) { System.out.println(x); } }medium
- Identify the true statement(s). Statement 1 : When no constructor is written in a class, the compiler creates a default constructor Statement 2 : The default constructor will implicitly invoke the default / no-argument constructor of the super class Statement 3 : If a class has a parametrized constructor alone, then the compiler will create the default constructor Statement 4 : If a class has a parametrized constructor, it is mandatory to write a no-argument constructormedium
- A JavaBeans component has the following field: private boolean enabled; Which two pairs of method declarations follow the JavaBeans standard for accessing this field? (Choose two.)medium
- package edu.ABC.model; public class Account { public static final float INTERTEST_RATE = 7.5; } Identify the correct options from the classes provided below.medium
- Which members of a class can be accessed by other classes is determined by the ________________medium
- Identify which statement is true about construtors.medium
- What does this() mean in constructor chaining concept?medium
- class Output { public static void main(String args[]) { int a1[] = new int[10]; int a2[] = {1, 2, 3, 4, 5}; System.out.println(a1.length + " " + a2.length); } }medium
- _______________ is used to allocate memory to array variable in Javamedium
- Predict the output p class String_demo { public static void main(String args[]) { int ascii[] = { 65, 66, 67, 68}; String s = new String(ascii, 1, 3); System.out.println(s); } }medium
- Determine the output: class Evaluate { public static void main(String args[]) { int arr[] = new int[] {0 , 1, 2, 3, 4, 5, 6, 7, 8, 9}; int n = 6; n = arr[arr[n] / 2]; System.out.println(arr[n] / 2); } }medium
- Predict the output class String_demo { public static void main(String args[]) { char chars[] = {'a', 'b', 'c'}; String s = new String(chars); System.out.println(s); } }medium
- Determine the output: (MCQ) public class Test { public static void main(String[] args) { int[] x = new int[3]; System.out.println("x[0]is"+x[0]); Sys e .ou .p ( [ ] s [ ]); } }medium
- Given: 1. public class MyLogger { 2. private StringBuilder logger = new StringBuuilder(); 3. public void log(String message, String user) { 4. logger.append(message); 5. logger.append(user); 6. } 7. } The programmer must guarantee that a single MyLogger object works properly for a multi-threaded system. How must this code be changed to be thread-safe?medium
- ________________ is used to find string length.medium
- Determine the output: public class Test { public static void main(String[] args) { int[] x = {1, 2, 3, 4}; int[] y = x; x = new int[2]; for(int i = 0; i < x.length; i++) System.out.print(y[i] + " "); } }easy
- What is special about string objects as compared to objects of other derived types?medium
- __________________ is the string contained in s after following lines of code? StringBuffer s = new StringBuffer(Hello); s.deleteCharAt(0);medium
- What will be the content of array variable table after executing the following code? public class Trial { public static void main(String[] args) { int []table[]=new int[5][5]; for(int i = 0; i < 3; i++) { for(int j = 0; j < 3; j++) { if(j == i) { table[i][j] = 1; System.out.print(table[i][j]); } else { table[i][j] = 0; System.out.print(table[i][j]); } } System.out.println("\n"); } } }medium
- What will s2 contain after following lines of code? String s1 = one; String s2 = s1.concat(two);medium
- Determine the output class array_output { public static void main(String args[]) { char array_variable [] = new char[10]; for (int i = 0; i < 10; ++i) { array_variable[i] = 'i'; System.out.print(array_variable[i] + ""); } } }medium
- + operator can be used to concatenate two or more String objects in java. State true or false.medium
- Column size is mandatory to create an array in java. State true or falseeasy
- Determine the output public class Trial { public static void main(String[] args) { int arr[4]={}; System.out.print(arr[0]); } }medium
- Determine the output: public class A { public static void main(String argv[]) { int ary[]=new int[]{1,2,3}; System.out.println(ary[1]); } }medium
- Which of the following text when matched with the regular expression [a-zA-Z&&[^aeiou]]+ will return true?medium
- What is the regular expression to match any date in the format "yyyy-mm-dd" in a string?easy
- a regular expression, the pattern 00 means, 0 occurs exactly two times.easy
- What is the regular expression to match a whitespace character in a string?easy
- The first name of a person should contain only alphabets and space. Which of the following regular expression will match the requirement?medium
- What is the regular expression to match any email address in a string?easy
- Consider the below statements. Statement 1 : Matcher class interprets the pattern in a String Statement2:Matcherclassmatchestheregularexpression againstthetextprovided Statement 2 : Matcher class matches the regular expression against the text provided Which of the following is true?medium
- What is the regular expression to match a digit (0-9) in a string?easy
- Predict the output of the below code : import java.util.regex.*; public class TestRegEx{ public static void main(String args[]) { Pattern p = Pattern.compile(".ech"); Matcher m = p.matcher("tech"); boolean b = m.matches(); System.out.println(b); } }medium
- \B means A word boundaryeasy
- Observe the below code snippet String name="Sudha learns Oracle"; System.out.println(name.substring(7,12)); What is the output of the above code?medium
- Predict the output of the below code : String emailId="john#global.com"; System.out.println(emailId.indexOf('@'));medium
- What can be the parameters for the indexOf method in String class?medium
- Observe the below code : String course="Java Programming"; char c=course.charAt(16); System.out.println(c); What will be the output for the above code snippet?medium
- Assume that the ID of an employee should start with "CBE" or "BLR" or "HYD" followed by hyphen (-) followed by 4 digits. Choose the apt regular expression that matches this text.easy
- Which of the following matches X occurs n or more times?medium
Software Engineering
268 questionsSoftware Engineering(268)
- Stephany is learning to draw a flowchart to calculate the area of a circle. Select the appropriate option that would fit into the process section of the flow chart?medium
- Arrange the words given below in a meaningful sequence. 1. Word 2. Paragraph 3. Sentence 4. Letters 5. phrasemedium
- Identify the meaningful variable names which can be used?medium
- Choose the correct and meaningful pseudo-code to add two numbers?medium
- Match the appropriate Flowchart symbols with its purpose. Start/Stop Flow direction Connector Decision making Process Input/outputmedium
- Which of the following represents the correct sequence for the given pseudo-code? BEGIN ------------- ------------- ------------- ------------- END a. READ number1 and number2 DECLARE variables number1, number2, result result <- number1 * number2 PRINT result b. DECLARE variables number1, number2, result result <- number1 * number2 READ number1 and number2 PRINT result c. DECLARE variables number1, number2, result READ number1 and number2 PRINT result result <- number1 * number2 d. DECLARE variables number1, number2, result READ number1 and number2 result <- number1 * number2 PRINT resultmedium
- Expression is a combination of ___________, ____________ and _______________medium
- Which of the following represents the correct sequence for the given algorithm? a. Start Get the two numbers. Add the two numbers and store the result in sum. Display the sum value. Stop b. Start Add the two numbers and store the result in sum. Get the two numbers. Display the sum value. Stop c. Get the two numbers. Start Add the two numbers and store the result in sum. Display the sum value. Stop d. Start Get the two numbers. Display the sum value. Add the two numbers and store the result in sum. Stopmedium
- Choose the correct arrang5eme2nt of2 ma4them8atical symbols to make the equation true. a. 600 [+] 400 [] 800 [×] 300 [/] 200 = 200 b. 600 [/] 400 [+] 800 [] 300 [×] 200 = 200 c. 600 [×] 400 [/] 800 [-] 300 [+] 200 = 200 d. 600 [] 400 [+] 800 [/] 300 [×] 200 = 200medium
- Which of the following represents the correct sequence for the given pseudo-code? BEGIN [1] READ mark1, mark2, mark3, mark4, mark5 [2] PRINT average [3] total < mark1 + mark2 + mark3 + mark4 + mark5 [4] average < total / 5 [5] DECLARE mark1, mark2, mark3, mark4, mark5, total, average END a. 1 5 4 3 2 b. 5 1 4 3 2 c. 5 1 3 4 2 d. 1 5 3 4 2medium
- Flow chart for adding numbers Is the given flowchart correct?medium
- Rearrange the pseudo-code for multiplying two given numbers, Choose the correct option from the below. 1 BEGIN 2 result <- number1 * number2 3 PRINT result 4 READ number 1 and number 2 5 DECLARE variables number1, number2, result 6 END a. 1 4 5 2 3 6 b. 1 4 5 3 2 6 c. 1 5 4 3 2 6 d. 1 5 4 2 3 6medium
- If there are 6 chocolates and you take away 4, how many do you have?medium
- What do you infer from this statement? Only if Alvin is happy, then he does not go to work.medium
- By default, the flow of a program is________medium
- Identify the correct pseudo-code logic for checking a number divisible by 5 or 11. a. DECLARE number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF READ number BEGIN b. BEGIN DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF END c. DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END BEGIN d. DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IFmedium
- Choose the correct options to complete the pseudo-code and determine whether the number is positive, zero, or negative. BEGIN DECLARE number READ number IF _________ PRINT Number is positive IF _________ PRINT Number is zero IF _________ PRINT Number is Negative END IF END a. number>0, number>0, number==0 b. number<0, number>0, number==0 c. number>0, number==0, number<0 d. number>0, number==0, number==0medium
- Go to statements in the algorithm ismedium
- ______________must be used when a set 5of st2atem2ents4 nee8ds to be executed only if a condition is met.medium
- Which of the keyword is used to close the IF block, while writing a pseudo-code?medium
- READ age IF age>18 THEN PRINT Eligible to vote ENDIF The given pseudo-code snippet is an example for_______medium
- When a single if-else logic is used, how many possible choices can be there?medium
- Decision statements are also called as _______________. a. Sequence logic b. Iteration logic c. Program logic d. Selection logicmedium
- You are returning home from a hotel. On the way, you find a sealed envelope in a street, fully addressed with unused stamps on it. What would you do???medium
- Try some!!! If a doctor gives you 3 pills and tells you5 to ta2ke o2ne p4ill ev8ery half hour, how long would it take before all the pills had been taken?medium
- Manual execution of the steps in the algorithm is called as _____medium
- Which statement logic implements multiple-way selection?medium
- A computer program must either use conditional statements or looping statements or sequential statements to solve a problem. All of them must not appear in the same program. State true/ false.easy
- Consider the pseudo-code snippet. What output do you think the snippet will produce if the sample input for number is 3? BEGIN DECLARE number READ number IF number>=0 IF number == 0 PRINT Zero ELSE PRINT Three ENDIF PRINT No Value ENDmedium
- Identify the logic which suits the flowchartmedium
- Which of the following is not a keyword used in a pseudo-codemedium
- From the option, find the correct pseudo-code to find the greatest of three numbersmedium
- Pointing to a photograph of a boy Mathew said, "He is the son of the only son of my mother." How is Mathew related to that boy?medium
- Analyze the statements. i)Danny is younger than Edwin ii)Christine is younger than Danny. iii)Christine is older than Edwin. If the first two statements are true, the third statement ismedium
- Assume, there are four boys sitting on a sofa. Mithran is to the left of Anwar. Babu is to the right of Anwar. Edwin is between Anwar and Babu. Who would be second from the left in the photograph?medium
- "Invalid balloon number " O5R nu2mber2 > 14 OR 8number < 50 "This balloon can fiy to Tweety" OR number < 1 PRINT AND number%7 == 0 number%3 == 0 number > 50 ELSE "This balloon cannot fiy to Tweety" OR number%7 == 0 END IF You are provided with a partial pseudocode for the below problem statement. Drag and Drop the options provided so that it will be the correct pseudocode. Save Tweety Silvester and Tweety are friends. Bender was one of the Silvester's enemy. One day Silvester and Tweety went on to a trip. Bender planned to kidnap Tweety.. He kidnapped and kept her in one of the hot balloons tied up to a height. There were 50 hot balloons numbered from one. Each balloon will fiy to a certain height. Only the numbers having both 3 and 7 as its factors can fiy upto the height of the Tweety's balloon. Silvester was confused and he didn't know which numbered balloon can fiy to Tweety. (Note: If balloon number is greater than 50, or balloon number less than 1, then it should display invalid balloon number) Eg: Balloon's number: 42 This balloon can fiy to Tweety. Eg: Enter the Balloon's number: 24 This balloon cannot fiy to Tweety. Pseudocode : BEGIN DECLARE variable number READ number IF number > 50 OR number < 1 THEN PRINT "Invalid balloon number " ELSE IF number%3 == 0 AND number%7 == 0 THEN PRINT "This balloon can fiy to Tweety" ELSE PRINT "This balloon cannot fiy to Tweety" END IF ENDeasy
- Choose the correct pseudocode for the below problem statement. Problem Statement : Hide and Seek One day, Bunny and his friends were playing hide and seek in the forest. Tom went along to hide. He finds an abandoned bag containing a board(8x8) game in a cave. He gets excited and starts playing the game only to realizes that it's magical. He has three chances to roll the dice. Each turn's outcome will lead into a new surrounding and some would be dangerous. If the outcome of rolling dices is in multiples of 3 then he will be caught in a dangerous phase. Note if any one outcome is multiple of 3, then tom is in danger. (If the outcome of rolling dices is either 0 or less than that you should tell Tom as "Invalid Turn". ) Example : Enter value of turn 1 10 Enter value of turn 2 5 Enter value of turn 3 2 Tom is safe Example : Enter value of turn 1 12 Enter value of turn 2 5 Enter value of turn 3 2 Tom is in danger a. BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" ELSE PRINT "Tom is Safe" END IF ELSE PRINT "Invalid turn" END IF END b. BEGIN READ turn1, turn2, turn3 DECLARE variables turn1,turn2,turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" ELSE PRINT "Tom is Safe" END IF ELSE PRINT "Invalid turn" END IF END c. BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 IF turn1>0 AND turn2>0 AND turn3>0 THEN ELSE PRINT "Tom is Safe" IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN PRINT "Tom is in Danger" END IF ELSE PRINT "Invalid turn" END IF END d. BEGIN DECLARE variables turn1,turn2,turn3 READ turn1, turn2, turn3 PRINT "Tom is in Danger" IF turn1>0 AND turn2>0 AND turn3>0 THEN ELSE PRINT "Tom is Safe" IF turn1%3==0 OR turn2%3==0 OR turn3%3==0 THEN END IF ELSE PRINT "Invalid turn" END IF ENDmedium
- Which looping logic is exit controlled?medium
- Consider the output: 0, 2, 4, 6, 8 ,10 ,12, 16 Which of the below given pseudo code snippet gives the above output?medium
- Predict the output of the given flowchart.medium
- Iteration/looping is a repetition of___________medium
- Do-while looping statement is almost same as______medium
- What is true about FOR LOOP?medium
- Jack wants to book fiight tickets in Feather-Airways online portal for his family of five. Passenger details like name, age, gender etc. should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?medium
- What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number ENDmedium
- What is the output for FOR-loop snippet? FOR i <--1 to 15 PRINT i i <-- i+3 END FORmedium
- Which of the following symbols is inappropriate in building the flowchart pertaining to sequential flow of program?medium
- The statement / statements within the loop must get executed at least once except for do-while statement. State True/False.medium
- Which of the following statements are true with respect to looping statements?medium
- Which of the following statements are true?medium
- Consider you have a Rubik cube with different colors in each face. To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?medium
- Partially w h r e a i f l g o t m n p d DOWN: 1) Step by step list of instructions 4) When you know the exact number of iterations, this loop is used Across: 2)When a process/set of actions is to be repeated, these statements are used. 3) In looping, Each execution of a statement/block of statements is technically termed as______ 5) This loop statement is also called as exit-controlled loop 1 4 [a] f 2 l o o p i n g [g] r [o] 3 i t e r a t i o n [i] [t] 5 d o w h i l e [m]medium
- Identify the logic which suits the flowchart?medium
- It's Halloween. You go from house to house, tricking or treating. You get 2 candies from each house that you go to. You must return home once you collect 100 candies. Can you arrange the sequence for this loop activity. 1 BEGIN 2 SET candy count <- 0 3 END WHILE 4 DECLARE candy_count 5 WHILE candy_count<=100 6 candy count <- candy_count+2 7 END a. 1 4 2 5 6 3 7 b. 1 2 4 3 6 5 7 c. 1 4 2 3 6 5 7 d. 1 4 5 2 3 6 7medium
- Looping statements are also called ____________ a. Sequence logic b. Program logic c. Selection logic d. Iteration logicmedium
- Find out the logic of series and complete. 9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?medium
- Take 1 away from me and you get a prime number; add 1 to me and you get twice that prime number.medium
- Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Strong number Check if a given number is a strong number. 145 is a strong number because 1!+4!+5! = 145. Sample Input : 145 Sample Output : Strong number Code: BEGIN DECLARE variables number, sum, temp, remainder, fact READ number SET sum=0, temp=number __________________ remainder = number % 10 SET fact = 1 FOR i IN 1 to remainder DO fact = fact *i END FOR sum = sum+ fact number = number / 10 END WHILE IF sum==temp THEN PRINT "Strong number" ELSE PRINT "Not a Strong number" END IF END a. WHILE number <= 0 b. WHILE number != 0 c. WHILE number < 0 d. WHILE number == 0medium
- Choose the pseudocode for the below problem statement. Problem Statement : Vehicle Registration Mr.William buys a new Audi car. During the vehicle registration, he desires a fancy number in such a way that both the number and its reverse are the same. Generate an algorithm to find that fancy number. Sample Input : 1221 Sample Output : Number is Fancy a. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END b. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO number = number/10 rem = number%10 reverse = reverse*10 + rem END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END c. BEGIN DECLARE variables number, reverse, rem, temp READ number WHILE number !=0 DO SET reverse = 0, temp = number rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END d. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Not Fancy" ELSE PRINT "Number is Fancy" END IF ENDmedium
- A mathematical quiz context happened in a school and the scores are stored in an array named quizmark. The coordinating person wants to copy the quiz score into another array named copyquizmark. Which of these options will do that?medium
- Assume, number[100] <- 99. How many elements can be stored inside the array variable number?medium
- Which of the following are False with respect to the manipulation of arrays?medium
- Negative elements can be placed inside an array. State true / falseeasy
- The names of all associates undergoing training are stored in an array named associate_name[50]. The 5th associates name is retrieved asmedium
- Information about ___________ need not be specified when declaring an arraymedium
- It is not possible to do a search operation in an array that is not sorted. State True/False.easy
- Random access is not possible in an array. State True/Falseeasy
- Assume you have an array5 nam2ed n2umb4ers 8of size 10. Which of the assignment is valid?medium
- Which of the following statements is correct with respect to arrays?medium
- Consider you buy a laptop. You want to store5 the 2deta2ils o4f tha8t laptop such as price, model_name,model_number, warranty_period into a single array named details[10]. Is ths possible?medium
- Consider you want to compare the prices of redmi , sony, samsung phones in three online sites like amazon,fiipkart,ebay. Which array type is best suitable to do this comparision?medium
- It is possible to traverse through an array from the first position to the last and not vice versa. State true or false.medium
- An Array consists of rows and columns is also called as________medium
- Choose the correct Pseudo code to store names in an array and display a name. a. BEGIN INPUT name DECLARE name [20] PRINT name END b. BEGIN INPUT name DECLARE name [20] END PRINT name c. BEGIN DECLARE name [20] INPUT name PRINT name END d. BEGIN INPUT name PRINT name DECLARE name [20] ENDmedium
- A farmer has 17 sheep and all but nine die. How many are left?medium
- a year, there are 12 months. Seven months have 31 days. How many months have 28 days?medium
- What is the next letter in the following sequence? J,F, M, A, M, J, J, A, __.medium
- Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Dinner Plan Five friends plan to go out for dinner. They plan to order equal number of dishes. Each row specifies individual cost. Find the total amount each person needs to pay. Assume the values for this matrix for 3 dishes are 12 23 18 45 32 60 42 39 23 54 42 60 25 84 30 The output will be Amount to be paid by person 1 is 53 Amount to be paid by person 2 is 137 Amount to be paid by person 3 is 104 Amount to be paid by person 4 is 156 Amount to be paid by person 3 is 139 Explanation : Output is the sum of each row Code: BEGIN DECLARE variable arr[5][20], n, sum=0 ___________________ FOR j IN 0 to n-1 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 4 DO SET sum = 0 FOR j IN 0 TO n-1 DO sum = sum + arr[i][j] END FOR PRINT "Amount to be paid by person "+(i+1)+" is "+sum END FOR END a. FOR i IN 0 to 5 DO b. FOR i IN 0 to n DO c. FOR i IN 0 to 4 DO d. FOR i IN 0 to 3 DOmedium
- Choose the correct pseudocode for the below problem statement. Problem Statement : Find Maximum value Choose a pseudo code to find the maximum values in each row of a matrix. Assume it is a 3x3 matrix. Explanation : Matrix will be with index (0,0) (0,1) (0,2) (1,0) (1,1) (1,2) (2,0) (2,1) (2,2) Assume the values for this matrix are 12 23 18 45 32 60 42 39 23 The output will be Max value in row 1 is 23 Max value in row 2 is 60 Max value in row 3 is 42 a. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR SET max = arr[i][0] FOR i IN 0 TO 2 DO FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END b. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO END FOR END FOR FOR i IN 0 TO 2 DO READ arr[i][j] SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END c. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 2 DO SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR PRINT "Max value in row "+(i+1)+" is "+max END FOR END d. BEGIN DECLARE variable arr[3][3] FOR i IN 0 to 2 DO FOR j IN 0 to 2 DO READ arr[i][j] END FOR END FOR FOR i IN 0 TO 2 DO SET max = arr[i][0] FOR j IN 0 TO 2 DO IF arr[i][j]>max THEN max = arr[i][j] END IF END FOR END FOR PRINT "Max value in row "+(i+1)+" is "+max ENDmedium
- Which conforms that the software meets its technical specifications?medium
- The software is put into operation in the clients environment. The client comes back to enhance the UI to attract more customers. This phase is called as _______________easy
- Which of the below is one of the phase of the prototype model? a. Detailed HLD phase b. Detailed Coding c. Quick design d. Extensive testingmedium
- High-risk or major functions are addressed in the first cycles there by delivering an operational product. Which of the SDLC process models achieves this?medium
- Beta technologies has undertaken a collision avoidance system software to be implemented for airports. Additional safety measures have to be automated by warning pilots when another aircraft gets closer, otherwise impacts are huge. Which of the following SDLC process models best suits the requirement?medium
- The student mark processing system software has been developed and deployed at the St. Peters university. The system shows the grade as 0 for all the students rather than the actual grade. Which phase below was not done properly during the SDLC?medium
- Choose the option that accurately represents the sequential order of phases in the Waterfall model. a. Requirement Gathering, Analysis, Design, Testing, Implementation, Deployment, Maintenance b. Requirement Gathering, Analysis, Design, Implementation, Testing, Maintenance, Deployment c. Analysis, Requirement Gathering5, Des2ign,2 Imp4leme8ntation, Testing, Deployment, Maintenance d. Requirement Gathering, Analysis, Design, Implementation, Testing, Deployment, Maintenancemedium
- Scenario: LIC has manually carried out their process of premium collection procedure for the past 45 years. Now, they have employed the services of another company to automate the above. Question: Which of the following models would you suggest to the outsource company?medium
- Testing performed by the user to ensure that the system meets the agreed upon quality attributes and the specification is called as.medium
- Which model emphasizes Validation and Verification at each level of stage containment?medium
- Consider that you have to develop a fiight control system. The system is simulated as such that the original system is working. There are many potential hazards with such a system. What model would you suggest to develop the system?medium
- ABC company comes to the Allen Software Company with various requirement. The client wants the functionality to view all the employee profile, view salary information of the employee and view the leave details.Once each functionality is completed the module will be delivered to the client. Which would be the right model for this scenariomedium
- A client wants to develop a Web application for the new Super market store. The client want to have lot of UI components and customers will have lot of interactions with the UI. What model is best suitedmedium
- ________ involves tranformation of user needs into an effective software solution.medium
- Spiral life cycle model is not suitable for products that are vulnerable to large number of risks. State if True or False.easy
- When there is a difference between the output what is expected and the actual one is termed asmedium
- XYZ Finance Co. has, at present, started its operations in India. Based on the first six months performance, it has plans for expansion across five countries. They want to automate their operations at this stage. What is the process model that the developer should choose to adopt?medium
- Which of the following options are the steps involved in Requirements Analysis?medium
- From the below options, identify the role of the system analyst. a. Writes pseudo code for the given module b. Creates SRS c. Creates HLD document d. Creates high level test casesmedium
- Identify the correct statements from the below options. a. Analysis or High level design or Low level design can be performed in any order b. Analysis is performed followed by High level design and then Low level design c. High level design, Low level design followed by Analysis is performed. d. Analysis is performed followed by low level design and then high level designmedium
- Identify the type of design that helps in transforming the data model created during requirements analysis phase into the data structures that will be used to implement the softwaremedium
- A lady buys goods worth Rs.200 from a shop. (shopkeeper is selling the goods with zero profit). The lady gives him Rs.1000 note. The shopkeeper gets the change from the next shop and keeps Rs.200 for himself and returns Rs.800 to the lady. Later the shopkeeper of the next shop comes with the Rs.1000 note saying duplicate and takes his money back. How much LOSS did the shopkeeper face?medium
- You are in a race and overtake the person who is in second place. What place are you now in?medium
- What does come down but never goes up? _______ What can one catch that is not thrown? _______ What goes up and down, but always remains in the same place? _______ what word that changes a girl into a woman? _______ Choose the correct answer: a. Cold, Rain, Stairs, Age b. Rain, Cold, Stairs, Age c. Age, Rain, Stairs, Cold d. Stairs, Cold, Stairs, Agemedium
- Identify the possible entities from the given optionmedium
- What kind of non functional requirement best suit the below scenario: Whenever the new offers are published in the online shopping site, an sms has to be sent to all the registered customers within 10 minutes of publishingmedium
- Consider the below scenario. A team has many players and the player belongs to one team. Identify the cardinality between player and teammedium
- Whenever a new product is arrived, the stock needs to be updated. This requirement is an example for non functional requirement. State true or Falsemedium
- Which of the following are available in SRS Document?medium
- During which phase the following activities are performed: Identifying the major modules of the system, how these modules integrate, the architecture of the system and describing pseudo code for each of the identified modulemedium
- _______ describes how the development activities will be performed and how development phases follow each other.medium
- Requirement came to Allen Software company to develop a software for military purpose. . second delay in the missile launching software would create greater loss to the human life. What kind of model is best suited for this scenario?medium
- Aesthetics of the website is part of the functional requirement. State true or falseeasy
- _________ is the application of a systematic, disciplined, quantifiable approach to the design, development, operation and maintenance of software.medium
- Identify this technique of dynamic testing where, For a range of input, three values are chosen, One value above the range, One value below the range, and One value within the rangemedium
- What is the difference between the actual ou5tput2 of a2 soft4ware8 and the correct output?medium
- What is the type of testing in which the tester will know about the input and the expected output details based on the specification document only but no knowledge on implementation?medium
- Identify the correct phases of software testing life cycle. a. Requirements Analysis,Test Preparation,Test Case development,Test Environment Set up,Test Execution,Test Cycle closure b. Requirements Analysis,Test Case development,Test Preparation,Test Environment Set up,Test Execution,Test Cycle closure c. Requirements Analysis,Test Preparation,Test Case development,Test Execution,Test Environment Set up,Test Cycle closure d. Requirements Analysis,Test Preparation,Test Case development,Test Environment Set up,Test Cycle closure,Test Executionmedium
- Which all of the following options would basis path testing perform?medium
- Determine the cyclomatic complexity for the following code: Accept year if(year mod 4=0 and year mod 100!=0) or(year mod 400 =0) print year is leap else print year is not leap end if.medium
- After implementation of Library management system, the tester identified that certain logic are redundantly rewritten by the developers, and the coding standards are violated in few modules. What type of testing is carried out to identify these errors?medium
- Boundary value analysis can only be used during white-box testing. State if True or False.easy
- The testing technique that deals with the internal logic and structure of the code is called ________.medium
- the online shopping portal, for customer registration the password field can accept only characters in the range of 5 to 25. Derive test cases using Boundary value analysismedium
- Tester is trying to test whether the values in the drop down are listed properly. What type of testing the tester performs in this scenario?medium
- Walk through is performed by the trained moderator, whereas the Inspection is usually conducted by the author itself to record defects and deviationseasy
- An SRS has the following requirement.The stock exchange shall show the stock report for the next 24 hours.What is the issue with this requirementmedium
- The standard document that describes all the requirements of the system is called asmedium
- Client Comes to Allen Company for a Banking Solution. Who from the below options would be best suited to gather all the requirements correctly from the clientmedium
- remote control Car application, in the step by step execution of the requirement described, it is mentioned when the fuel level goes below the minimum level, the application should indicate the user in red color. In the output section of the same process it is mentioned that the indicator will glow pink. What is the kind of requirement specified in SRS?medium
- Client Comes to Allen Company for a Banking Solution.Which phase of SDLC is best suited to gather what is expected from clientmedium
- A good SRS should be ______, ________ and _______.medium
- Which of the following options are valid for the relationship between the configuration objects?medium
- Match the following facts about Version Management.medium
- Version Control allows users to lock files so they can only be edited by one person at a time and track changes to fileseasy
- Choose the missing steps involved in the Change Control Process in the correct order: 1. Identify and submit change request 2. ____________ 3. Plan the change 4. Implement and test the change 5. Verify implementation of change fi. Close change request a. Collect impacts of change request b. Evaluate impacts of change request c. Review stakeholder feedback d. Analyze the cost of the proposed changemedium
- Which of the following describes the change history of an object?medium
- Version Management allows parallel concurrent development. State True or False.easy
- From the options identify the features that are part of the software configuration managementmedium
- State true or false. Automated tools are available in the market, for managing change and versioning the softwaremedium
- _________ is a committee that makes decisions regarding whether or not proposed changes to a software project can be incorporated.medium
- an online shopping application, during customer registration the customer was made to enter his city in a text box. As the site became popular for online shopping, the client came back to include autocomplete feature in the city field to improve user friendliness. What maintenance needs to be carried out in this scenario?medium
- Software maintenance, changes are implemented by modifying existing components and adding new components to the system. State if True or False.easy
- Software maintenance for the change of the platform is an example for --------- maintenancemedium
- Client has developed an application that allows each of their customers to store 2TB of data. As the number of Customers are increasing client feels the storage space has to be increased for smooth operations to its customers. What type of maintanence is this?medium
- Any changes done to the software during the operational phase of the software before project wind up is called as maintenance. State if True or False.easy
- Client wanted to add a new feature to his existing application "Discount Offers" for all the existing customers. Whenever a new product comes to the supermarket, their customer's should be intimated with the week day offer. What kind of maintenance is this?medium
- Y2K problem is an example for ------------- maintenancemedium
- A mathematical quiz context happened in a school and the scores are stored in an array named quizmark. The coordinating person wants to copy the quiz score into another array named copyquizmark. Which of these options will do that?medium
- Assume, number[100] <- 99. How many elements can be stored inside the array variable number?medium
- Which of the following are False with respect to the manipulation of arrays?medium
- Negative elements can be placed inside an array. State true / falseeasy
- The names of all associates undergoing training are stored in an array named associate_name[50]. The 5th associates name is retrieved asmedium
- Informationabout neednotbespecifiedwhendeclaringanarray Information about ___________ need not be specified when declaring an arraymedium
- It is not possible to do a search operation in an array that is not sorted. State True/False.easy
- Random access is not possible in an array. State True/Falseeasy
- Assume you have an array named numbers of size 10. Which of the assignment is valid?medium
- Which of the following statements is correct with respect to arrays?medium
- Consider you buy a laptop. You want to store the details of that laptop such as price, model_name,model_number, warranty_period into a single array named details[10]. Is ths possible?medium
- Consider you want to compare the prices of redmi , sony, samsung phones in three online sites like amazon,flipkart,ebay. Which array type is best suitable to do this comparision?medium
- It is possible to traverse through an array from the first position to the last and not vice versa. State true or false.easy
- An Array consists of rows and columns is also called as________medium
- Choose the correct Pseudo code to store names in an array and display a name. a. BEGIN INPUT name PRINT name DECLARE name [20] END b. BEGIN INPUT name DECLARE name [20] PRINT name END c. BEGIN DECLARE name [20] INPUT name PRINT name END d. BEGIN INPUT name DECLARE name [20] END PRINT namemedium
- the Waterfall model, requirements are typically…medium
- Which model maps each development phase to a corresponding test phase?medium
- Prototyping (throwaway) is BEST when…medium
- Evolutionary Prototyping means…medium
- Which model emphasizes delivering functionality in modules over time?medium
- Iterative development primarily focuses on…medium
- Which model is most associated with explicit risk analysis every iteration?medium
- Agile (Scrum) sprints typically deliver…medium
- RAD prioritizes…medium
- V-Model is most suitable for…medium
- Agile, the product backlog is owned by the…medium
- A key drawback of Waterfall is…medium
- Incremental vs Iterative: which is TRUE?medium
- Which model is LEAST flexible to change?medium
- Spiral is best matched with which keyword?medium
- Agile accepts changing requirements…medium
- RAD typically targets a delivery window of…medium
- Throwaway prototyping’s prototype is…medium
- A hallmark of Scrum is…medium
- Which model best ensures traceability from requirements to tests?medium
- When primary risk is misunderstood requirements, prefer…medium
- Incremental delivery provides value because…medium
- Spiral model phases typically include…medium
- Kanban emphasizes…medium
- Agile, who shields the team from impediments?medium
- A weakness of RAD is…medium
- Which is MOST documentation-heavy?medium
- Which combo is valid?medium
- When frequent regulatory audits are expected, which model helps?medium
- A key Agile artifact used during Sprint Planning is…medium
- RAD differs from Spiral mainly because RAD…medium
- Scrum, increment must be…medium
- Which model best fits “measure–learn–build” loops?medium
- The main risk Spiral addresses early is…medium
- Which statement about Evolutionary Prototyping is TRUE?medium
- A new fintech startup will expand to multiple countries; requirements will evolve rapidly. Which model?medium
- Client demands a quick MVP in 2 months with heavy user workshops. Pick:medium
- HR system to be delivered module-by-module: Profiles → Payroll → Leave. Choose:medium
- Medical device software with strict verification & traceability:medium
- E-commerce UI unclear; stakeholders need to “see it” first. Best approach:medium
- Defense project: high technical risks; must mitigate early. Choose:medium
- Start-up wants frequent releases and can adapt scope every 2 weeks. Choose:medium
- Legacy rewrite with clear, frozen requirements signed by regulators. Choose:medium
- Search engine product: release v1 simple, v2 add filters, v3 add ML ranking. Choose:medium
- Banking back-end core with extreme reliability + audits. Choose:medium
- Client needs a wizard-like UI clarified before build, backend is standard. Choose:medium
- Global payroll system delivered by country packs, one-by-one. Choose:medium
- Gaming app MVP in 8 weeks with user playtests every weekend. Choose:medium
- Highly experimental R&D UI concept needs validation, not production code. Choose:medium
- A product will start small and grow with market learning; same codebase matures.medium
- Airport ATC training portal with strict test evidence + mapping to requirements.medium
- Customer support tool where each month a new module (chat, KB, analytics) is added.medium
- Critical avionics system with many unknown technical risks.medium
- Regulated insurance portal; UI unclear now but must pass audits later.medium
- Startup insists on weekly demos and can reprioritize constantly.medium
- Campus ERP with clear, frozen SRS and fixed budget/time.medium
- Social app: same app gets richer each release (recs, stories, live).medium
- Back-office tool needed super-fast using ready-made components and forms builder.medium
- Client wants to see a working UI every 2 weeks and decides scope on the go.medium
- Safety-critical railway signaling with exhaustive validation mapping.medium
- Which looping logic is exit controlled?medium
- Consider the output: 0, 2, 4, 6, 8 ,10 ,12, 16 Which of the below given pseudo code snippet gives the above output?medium
- Predict the output of the given flowchart.medium
- Iteration/looping is a repetition of___________medium
- Do-while looping statement is almost same as______medium
- What is true about FOR LOOP?medium
- Jack wants to book flight tickets in Feather-Airways online portal for his family of five. Passenger details like name, age, gender etc. should be entered for each member. The same process of getting details continues for all the five members. The above scenario is a good example for which looping statements?medium
- What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number ENDmedium
- What is the output for FOR-loop snippet? FOR i <--1 to 15 PRINT i i <-- i+3 END FORmedium
- Which of the following symbols is inappropriate in building the flowchart pertaining to sequential flow of program?medium
- The statement / statements within the loop must get executed at least once except for do-while statement. State True/False.medium
- Which of the following statements are true with respect to looping statements?medium
- Which of the following statements are true?medium
- Consider you have a Rubik cube with different colors in each face. To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?medium
- d f a o n w h g r l e t m p i DOWN: 1) Step by step list of instructions 4) When you know the exact number of iterations, this loop is used Across: 2)Whenaprocess/setofactionsistoberepeated thesestatementsareused 2)When a process/set of actions is to be repeated, these statements are used. 3) In looping, Each execution of a statement/block of statements is technically termed as______ 5) This loop statement is also called as exit-controlled loop 1 4 a f 2 l o o p i n g g r o 3 i t e r a t i o n i t 5 d o w h i l e mmedium
- Identify the logic which suits the flowchart?medium
- It's Halloween. You go from house to house, tricking or treating. You get 2 candies from each house that you go to. You must return home once you collect 100 candies. Can you arrange the sequence for this loop activity. 1 BEGIN 2 SET candy count <- 0 3 END WHILE 4 DECLARE candy_count 5 WHILE candy_count<=100 6 candy count <- candy_count+2 7 END a. 1 2 4 3 6 5 7 b. 1 4 2 5 6 3 7 c. 1 4 2 3 6 5 7 d. 1 4 5 2 3 6 7medium
- Looping statements are also called ____________ a. Program logic b. Iteration logic c. Selection logic d. Sequence logicmedium
- Select the appropriate code snippet for the given problem statement provided as pseudocode. Problem Statement : Strong number Check if a given number is a strong number. 145 is a strong number because 1!+4!+5! = 145. Sample Input : 145 Sample Output : Strong number Code: BEGIN DECLARE variables number, sum, temp, remainder, fact READ number SET sum=0, temp=number __________________ remainder = number % 10 SET fact = 1 FOR i IN 1 to remainder DO fact = fact *i END FOR sum = sum+ fact number = number / 10 END WHILE IF sum==temp THEN PRINT "Strong number" ELSE PRINT "Not a Strong number" END IF END a. WHILE number == 0 b. WHILE number < 0 c. WHILE number != 0 d. WHILE number <= 0medium
- Choose the pseudocode for the below problem statement. Problem Statement : Vehicle Registration Mr.William buys a new Audi car. During the vehicle registration, he desires a fancy number in such a way that both the number and its reverse are the same. Generate an algorithm to find that fancy number. Sample Input : 1221 Sample Output : Number is Fancy a. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO number = number/10 rem = number%10 reverse = reverse*10 + rem END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END b. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Not Fancy" ELSE PRINT "Number is Fancy" END IF END c. BEGIN DECLARE variables number, reverse, rem, temp READ number WHILE number !=0 DO SET reverse = 0, temp = number rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF END d. BEGIN DECLARE variables number, reverse, rem, temp READ number SET reverse = 0, temp = number WHILE number !=0 DO rem = number%10 reverse = reverse*10 + rem number = number/10 END WHILE IF temp == reverse THEN PRINT "Number is Fancy" ELSE PRINT "Number is Not Fancy" END IF ENDmedium
- ______________must be used when a set of statements needs to be executed only if a condition is met.medium
- Consider the pseudo-code snippet. What output do you think the snippet will produce if the sample input for number is 3? BEGIN DECLARE number READ number IF number>=0 IF number == 0 PRINT Zero ELSE PRINT Three ENDIF PRINT No Value ENDmedium
- From the option, find the correct pseudo-code to find the greatest of three numbersmedium
- READ age IF age>18 THEN PRINT Eligible to vote ENDIF The given pseudo-code snippet is an example for_______medium
- By default, the flow of a program is________medium
- If there are 6 chocolates and you take away 4, how many do you have?medium
- What do you infer from this statement? Only if Alvin is happy, then he does not go to work.medium
- Go to statements in the algorithm ismedium
- Identify the logic which suits the flowchartmedium
- Try some!!! If a doctor gives you 3 pills and tells you to take one pill every half hour, how long would it take before all the pills had been taken?medium
- Which statement logic implements multiple-way selection?medium
- Manual execution of the steps in the algorithm is called as _____medium
- When a single if-else logic is used, how many possible choices can be there?medium
- You are returning home from a hotel. On the way, you find a sealed envelope in a street, fully addressed with unused stamps on it. What would you do???medium
- Which of the following is not a keyword used in a pseudo-codemedium
- Choose the correct options to complete the pseudo-code and determine whether the number is positive, zero, or negative. BEGIN DECLARE number READ number IF _________ PRINT Number is positive IF _________ PRINT Number is zero IF _________ PRINT Number is Negative END IF END a. number>0, number==0, number==0 b. number<0, number>0, number==0 c. number>0, number>0, number==0 d. number>0, number==0, number<0medium
- Decision statements are also called as _______________. a. Selection logic b. Iteration logic c. Program logic d. Sequence logicmedium
- A computer program must either use conditional statements or looping statements or sequential statements to solve a problem. All of them must not appear in the same program. State true/ false.easy
- Identify the correct pseudo-code logic for checking a number divisible by 5 or 11. a. DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINTnumbernotdivisibleby5or11 PRINT number not divisible by 5 or 11 END BEGIN b. DECLARE number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF READ number BEGIN c. BEGIN DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IF END d. DECLARE number READ number IF number%5==0 THEN PRINT number divisible by 5 ELSE IF number%11==0 THEN PRINT number divisible by 11 ELSE PRINT number not divisible by 5 or 11 END IFmedium
- Which of the keyword is used to close the IF block, while writing a pseudo-code?medium
- What distinguishes a unit test from an integration test?easy
- What is the fundamental difference between Agile and Waterfall SDLC models?easy
- What is the primary purpose of code review in software development?easy
- What does the DRY principle stand for, and what problem does it solve?easy
- What problem does the Singleton design pattern solve?medium
- In the MVC (Model-View-Controller) pattern, what is the Controller's responsibility?easy
TCS NQT Prep
10 questionsAlgorithmic Problem Solving(10)
- An array contains numbers where every number appears an even number of times, except for exactly one number that appears an odd number of times. Equal elements always appear consecutively in pairs. What is the optimal time complexity to find the odd-occurring element?
- A network router receives an array representing data packets. Due to a transmission error, some packets have a value of 0 (corrupted). You must shift all 0s to the end of the array while maintaining the exact relative order of the non-zero packets. Which algorithmic pattern is best suited for an O(N) in-place solution?
- In a decentralized P2P network of N nodes, a new protocol requires every node to establish a direct cryptographic handshake with every other node exactly once. What mathematical formula calculates the total number of handshakes?
- You are developing a financial application that must reverse the order of words in a transaction memo string (e.g., 'Payment to Vendor' becomes 'Vendor to Payment') without using built-in split() or reverse() functions. What is the standard algorithmic approach?
- Given an array of integers and a target sum S, what is the most robust approach to count the total number of distinct subsets whose elements sum exactly to S, especially when N > 50?
- A security module needs to convert a base-10 integer into its binary representation string to perform bitwise masking. Which loop condition correctly extracts the binary digits?
- To determine the Highest Common Factor (HCF) or GCD of two large numbers efficiently, which mathematical algorithm should be implemented?
- You need to write a function that continuously sums the digits of an integer until the result is a single digit. What is the O(1) mathematical trick to solve this without loops?
- A data analysis tool needs to find the second largest salary in an array of employee records. What is the most efficient way to achieve this in a single pass O(N)?
- When implementing a 'Leap Year Check' utility for a calendar application, what is the exact logical condition to correctly identify a leap year?
Web Technology
40 questionsCSS(2)
HTML(2)
JavaScript(5)
- What is the key scoping difference between 'let' and 'var' in JavaScript?easy
- What is the correct execution order of: console.log('A'); setTimeout(() => console.log('B'), 0); Promise.resolve().then(() => console.log('C')); console.log('D');hard
- What is a closure in JavaScript?medium
- What is the difference between == and === in JavaScript?easy
- What does Array.map() return that Array.forEach() does not?easy
Web Technology(31)
- Consider the below webpage: Which of the following is used to do this ?easy
- If the phone number should accept only 10 digit numbers, which of the following options will suit?easy
- Ram has designed a portal with 'like' and 'unlike' image buttons that redirect to 'thanks.html'. Which HTML code correctly implements this?medium
- HTML stands for __________easy
- Which element is a container for all the head elements, and may include the document title, scripts, styles, meta information, and more?easy
- An application that lets you search and see material on the internet iseasy
- Choose the correct JavaScript statement which helps you to write "World of JavaScript" in a web page.medium
- Which of the below is the correct syntax for exectuing some code if "amt" is equal to 5000?easy
- Polson needs to extract every character from a text string for email validation. Which JavaScript method is best suited?medium
- Ram's banking website has a 'Check Interest Rates' button that should redirect users to a separate page. Which JavaScript code accomplishes this?medium
- Predict the output of the following JavaScript code: <html> <head> <script> var txt= "pass 70% fail 30%"; var pattern = /\D/g; var res= txt.match(pattern); document.write(res); </script> </head> </html>easy
- What is the output of the below code snippet <script type="text/javascript"> amt=55+"55"; document.write(amt); </script>easy
- The parseInt() method converts the string to a integer. Before applying this function, Ram wants to know the type of the argument that is passed to the function. Which operator in javascript would support this ?easy
- When a user views a page containing a JavaScript program, which machine actually executes the script?easy
- David, a beginner in web development trying to perform one particular operation using client side JavaScript. Choose the correct option(s) that he can't be done with client-side JavaScript?easy
- When you want to enclose; some JavaScript statements to an HTML file, which is the correct tag you have to use?easy
- Which of the below statements are used to comment a line in JavaScript file?easy
- Sita wishes to greet the user when the user clicks on "Greet Me" button. In which event does she need to write the JavaScript code for greeting the user?easy
- Which of the below java script code helps to change the content of the paragraph tag dynamically? <p id="pid1">Aim Higher.. Sky is your limiteasy
- Rhita wants to replace jQuery's $(document).ready(fun) with an equivalent shorter method.medium
- $("#name").remove(); This will remove the text field when you click on the button. State true or false.easy
- jQuery is a JavaScript Object Notation libraryeasy
- Bind an event handler to the "blur" JavaScript event on an element.easy
- Raju wants to remove an event handler that was attached with on() function.Help him to select the correct option.easy
- John sets an element's CSS position property to its default value and applies jQuery animations. What is the output?medium
- Kiran wants to remove all the child nodes from the given div element. Help him to select the correct option to remove all the child node from the div element. <body> <div> This is some text <h2>Good morning</h2> <p>This is a paragraph inside the div.</p> </div> <p>This is a paragraph outside the div.</p> </body>easy
- Some users don't want animations to interfere with their web page experience. How can a user turn off animations?medium
- When referencing an HTML element using jQuery preceded by a # , what JavaScript function is this equivalent to?easy
- If you want to change the color of a link to red when moving mouse pointer on top of it, which CSS property you need to change?easy
- Which of the following is most appropriate tag in html 5 to divide the document into logical document groups?easy
- The following elements are newly added elements in HTML5: <section> <article> <aside> These elements are called _____________easy