Solved

Assuming That the User Inputs "Twenty" as the Input, What

Question 94

Multiple Choice

Assuming that the user inputs "twenty" as the input, what is the output of the following code snippet? String numEmployeesStr;
Scanner in = new Scanner(System.in) ;
System.out.println("Please enter the number of your employees: ") ;
NumEmployeesStr = in.next() ;
Int numEmployees = Integer.parseInt(numEmployeesStr) ;
If (numEmployees < 10)
{
System.out.println("Very small business!") ;
}
Else
{
System.out.println("Small business") ;
If (numEmployees > 100)
{
System.out.println("Mid size business") ;
}
Else
{
System.out.println("Large business") ;
}
}


A) Very small business!
B) Small business
C) Mid size business
D) Run-time error

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents