Profile Report

Candidate Details
user-img
Overall competency
Fail
Pass Percentage : 50
0%
Assessment Details
Attempt Details

Candidate Score
Answer Summary
Question 1 : Pets

Not Attempted

Scenario:

There was an old couple in the town. They both are pet lovers. They bought a pet on their second anniversary. From then they started to buy a pet in a standard intervals in their anniversary.They named the pets by the year they bought them. Write a program to display the number of pets and the name of each pet. The year when they got married and the standard interval will be the input. The total number of pets until 2010 and the names of each pet will be the output.

RULES:
1.Include a class Icode with the method getYear which accepts two integers and DisplayNames for displaying the count and names of the pets and define another method calculatePets.
2.The return type is void.
3.Use for or while loop in calculatePets.
4.Create a class mainpets which would be used to accept input and call the methods in inheritIcode.
5.The year should be in the range 1950 to 2010.
6.If the year is not in the given range,the statement "Year should be in the range 1950 to 2010" should be displayed
7.The interval should be in the range 1 to 10
8.If the interval is not in the range, the statement " Interval should be in the range 1 to 10" should be displayed
9. If interval and year are not in the type of integer ,the statement "Input should be integer" should be displayed

Sample Input:
1995
 2

Sample Output:
1997
1999
2001
2003
2005
2007
2009
7

Test case execution
Test Case Actual Input Expected Output Obtained Output Status
Question 2 : Palindrome

Not Attempted

Scenario:

You have been given a String S. You need to find and print whether this string is a palindrome or not. If yes, print "YES" (without quotes), else print "NO" (without quotes).

Input Format:

The first and only line of input contains the String S. The String shall consist of lowercase English alphabets only.

Output Format:

Print the required answer on a single line.

Constraints:
1

|
S
|

100
1≤|S|≤100

Note:
String S consists of lowercase English Alphabets only.

Test case execution
Test Case Actual Input Expected Output Obtained Output Status

Report generated time : 14-05-2019 07:23:38

Powered by banyan-logo