Font size
WorksheetsGrade 12 Computers Quiz
Total questions: 30
Worksheet time: 11mins
What is the difference between an abstract class and an interface in Java?
An abstract class cannot have any methods, while an interface can have both abstract and non-abstract methods.
An abstract class and an interface are the same thing in Java.
The main difference is that an abstract class can have both abstract and non-abstract methods, while an interface can only have abstract methods.
An abstract class can only have abstract methods, while an interface can have both abstract and non-abstract methods.
Explain the concept of method overloading in Java.
Method overloading is a feature that allows a method to have different return types.
Method overloading allows a class to have more than one method having the same name and same parameter list.
Method overloading allows a class to have more than one method having the same name if their parameter lists are different.
Method overloading is not supported in Java.
What is the purpose of JSP in web development?
To manage databases in web development.
To create dynamic web pages with Java technology.
To design static web pages with HTML technology.
To create interactive web pages with Python technology.
How do you include a JSP page in another JSP page?
<% import file='includedPage.jsp' %>
<% include file='includedPage.jsp' %>
<%@ import file='includedPage.jsp' %>
<%@ include file="includedPage.jsp" %>
What are the key features of the Spring framework?
Java, C++, and Python
Frontend, Backend, and Fullstack development
Object-Oriented Programming (OOP), Functional Programming, and Procedural Programming
Inversion of Control (IoC), Aspect-Oriented Programming (AOP), and Spring MVC are key features of the Spring framework.
Explain the concept of dependency injection in Spring.
Dependency injection is a design pattern in which a class receives its dependencies from external sources rather than creating them itself.
Dependency injection is a design pattern in which a class only receives dependencies from internal sources.
Dependency injection is a design pattern in which a class creates its own dependencies.
Dependency injection is a design pattern in which a class does not use any dependencies.
Write a SQL query to retrieve all the records from a table named 'employees'.
DISPLAY employees_data;
SELECT * FROM employees;
SHOW employees;
SELECT * FROM employee_table;
What is the purpose of the Junit testing framework?
Perform system testing for Java applications
Perform unit testing for Java applications
Perform integration testing for Java applications
Perform regression testing for Java applications
Explain the concept of test fixtures in Junit.
Test fixtures in JUnit are a set of preconditions that are used to ensure that the test environment is set up properly before the actual test is executed.
Test fixtures in JUnit are used to clean up the test environment after the test is executed.
Test fixtures in JUnit are not necessary and can be skipped for most tests.
Test fixtures in JUnit are only used for debugging purposes.
How do you integrate Junit with Jenkins for continuous integration?
Install JUnit plugin in Jenkins
Configure Jenkins to run JUnit tests as part of the build process
Use a separate tool to integrate JUnit with Jenkins
Manually run JUnit tests after the build process
What is the command to initialize Git on the current repository ?
start git
initialize git
git start
git init
Git commit history is automatically deleted ?
Commit history is never automatically deleted.
Every Month
Every Year
Every two weeks
What is the command to commit the staged changes for the Git repository?
git stage
git push
git commit
git save
In Git, a branch is :
Nothing, it is a nonsense word.
A secret part of Git config.
A small wooden stick you can use to type commands.
A separate version of the main repository.
What is the command to view the history of commits for the repository ?
git log
git --full-log
git history
git commits
What is the command to delete the branch "new-email" ?
git delete new-email
git delete branch new-email
git branch -d new-email
git gone new-email
Git Pull is a combination of :
branch and checkout
fetch and merge
add and commit
fetch and checkout
Which SQL statement is used to extract data from a database ?
SHOW
EXTRACT
SELECT
OPEN
how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?
SELECT * FROM Persons WHERE FirstName<>'Peter'
SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
SELECT [all] FROM Persons WHERE FirstName='Peter'
SELECT * FROM Persons WHERE FirstName='Peter'
Which SQL statement is used to return only different values ?
SELECT DISTINCT
SELECT SINGLE
SELECT DIFFERENT
SELECT UNIQUE
Which SQL keyword is used to sort the result-set ?
ORDER
SORT BY
ORDER BY
SORT BY
What is a Jenkins job ?
A unit of work in Jenkins
A task that needs to be done manually
A type of software bug
A physical location in a workspace
How can Jenkins help in automating the testing process ?
By writing test cases manually
By printing test cases on paper
By executing test cases automatically
By ignoring the testing phase
What is a Jenkins pipeline ?
A type of road
A graphical user interface
A sequence of automated software delivery stages
A data storage structure
Which of the following is a version control system often integrated with Jenkins ?
Linux
SVN
Maven
Git
Lequel des énoncés suivants est correct concernant le Framework Spring ?
Le Framework Spring est une solution lourde(heavy-weight solution).
Le Framework Spring est une solution légère(light-weight solution).
Les deux 1 et 2 sont vrais
Aucune de ces réponses n’est vraie.
Le langage d’expressions (ou Expression Language) fait partie de Core Container dans le Framework Spring?
(a)
Le Controller dans Spring est une_______________?
Classe Abstraite
Classe finale
Classe concrète
Interface
Les Beans définis dans le framework spring sont par défaut (a) ?
Lequel des énoncés suivants est vrai ?
BeanFactory hérite de ApplicationContext
ApplicationContext hérite de BeanFactory
BeanFactory implémente ApplicationContext
ApplicationContext implémente le BeanFactory
