Java Coding Assessments
Java Coding Assessments
DATE: -19-FEB-2022
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Answer: D
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
2. An Increment operator "++" and/or a Decrement operator "--" are used along with a Loop-Counter
variable in Java. (TRUE / FALSE).
A. True
B. False
Answer: B
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
int a=1;
while(a<4)
{
System.out.print(a + " ");
a++;
}
A1234
B123
C6
D Compiler error
1 QA Idea
FRESHERS JOBS BY QA IDEA
DATE: -19-FEB-2022
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
4. What is the main difference between a WHILE and a DO-WHILE loop in Java?
● A. WHILE loop executes the statements inside of it at least once even if the condition is false.
● B. DO-WHILE loop executes the statements inside of it at least once even if the condition is false.
● C. WHILE loop is fast.
● D. DO-WHILE loop is fast.
Answer: B
Explanation:
Both the WHILE loop and DO-WHILE loop work at the same speed. A DO-WHILE loop executes the
statements inside of it even if the condition is false. This is the reason why a DO-WHILE loop is used in
MENU driven console java programs.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
5. What is the value of "age" in the below Java program with a DO-WHILE loop?
int age=20;
do
{
age++;
}while(age<20);
System.out.println(age);
A. 20
B. 21
C. Compiler error
D. None
Answer: B
Explanation:
WHILE condition fails. By that time, the incremental statement was executed for one time. So its new
value is 21.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
6. In Java language, BREAK or CONTINUE statements can be implemented inside a Loop only with the
help of ___ statements to avoid never-ending loops.
A. IF ELSE
B. SWITCH
2 QA Idea
FRESHERS JOBS BY QA IDEA
DATE: -19-FEB-2022
C. ENUM
D. None
Answer: A
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Answer: a
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Answer: D
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
9. Is it possible to break all loops with a single BREAK with a Label statement? (YES/NO)
A. YES
B. NO
Answer: A
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
3 QA Idea
FRESHERS JOBS BY QA IDEA
DATE: -19-FEB-2022
Answer: c
Explanation: Break is used with a switch statement to shift control out of switch.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Answer: a
Explanation: exit() is not a flow control statement in Java. exit() terminates the currently running JVM.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Answer: b
Explanation: break, continue and return transfer control to another part of the program and returns
back to caller after execution. However, goto is marked as not used in Java.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
4 QA Idea
FRESHERS JOBS BY QA IDEA
DATE: -19-FEB-2022
d) PHP
View Answer
Answer: A
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
16. Which type of loop is guaranteed to have the body execute at least once?
A. Selenium Initialization Development Environment
B. Selenium Interrelated Development Environment
C. Selenium Integrated Development Environment
D. Selenium Information Development Environment
Answer: C
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Answer: D
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
5 QA Idea
FRESHERS JOBS BY QA IDEA
DATE: -19-FEB-2022
Answer: Option C
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
19. Select the operating system which is not supported by selenium IDE
A. Unix
B. Linux
C. Windows
D. Solaris
Answer: Option A
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
20. Out of the following which can only test web applications
A. QTP
B. Selenium
Answer: option B
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
6 QA Idea
FRESHERS JOBS BY QA IDEA
DATE: -19-FEB-2022
☸ Course Contents:-
Java, Selenium, TestNG, Maven, GIT, Jenkins, BDD Cucumber, Selenium Grid, Page Object
Model, HTML, JavaScript, AutoIT, Log4j, Assertion, API Testing, etc.
✔Duration:- 3 Months
✔Monday to Thursday: - 2 Hours
✔Timing:- 9.30 PM to 11.30 PM IST
✔Fees:- 6000/-
✔Mode of Training: - Online
7 QA Idea