Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


A good website has the following conditions

It should be interactive.
It should contain at least 20 images.
Title cannot be null and should contain at least 10 letters
other than spaces and hyphen (-).
The keywords should contain atleast three among the
following list : "design", "Graphics", "lovely",
"beautiful", "amazing" and "mesmerising"
Write a method:


boolean isGoodWebsite(boolean isInteractive, int
numOfImages, String title,String keywords[])

isInteractive whether the site is interactive or not
numOfImages Number of images on the website
title Title of the website
keywords Array of keywords in the website.



A good website has the following conditions It should be interactive. It should contain at least..

Answer / Pran Mohan Mishra

Here's an example Java code for the method: (Note: This is not JSON format as it cannot be executed)nn```javanpublic class GoodWebsite {n public boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title, String[] keywords) {n if (!isInteractive) return false;n if (numOfImages < 20) return false;n if (title == null || title.length() < 10) return false;n for(int i=0; i<keywords.length && i<3; i++) {n if (!Arrays.asList("design", "Graphics", "lovely", "beautiful", "amazing", "mesmerising").contains(keywords[i])) return false;n }n return true;n }n}n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

In Bioinformatics, a DNA sequence is made up of a combination of 4 characters, namely “A,C,G,T”. A subsequence of a given sequence of characters a0, a1, …an- 1, is any subset of the characters taken in order, of the form ai0 , ai1 ,…..aik-1 where 0 &#8804; i0 <i1….< ik-1 &#8804; n-1. For example in the sequence “A,C,G,T,G,T,C,A,A,A,A,T,C,G”, we can have subsequences “A,G,T”, “A,C,A,A” and many more. A subsequence is palindromic if it is the same whether read left to right or right to left. For instance, the sequence “A,C,G,T,G,T,C,A,A,A,A,T,C,G”, has many palindromic subsequences, including “A,C,G,C,A” and “A,A,A,A” (on the other hand, the subsequence “A,C,T” is not palindromic). Devise an algorithm (using dynamic programming) that takes a sequence of characters X[0 … n-1] from the alphabet set (A,C,G,T) and returns the (length of the) longest palindromic subsequence. Implement the algorithm in an appropriate language.

1 Answers  


what is throws keyword

2 Answers   IBM,


Write a program which inputs 2 integers representing the sides of a triangle, a and b. Next, write a function which accepts the 2 sides as parameters and returns the hypotenuse of the triangle, c. Use c 2 = a 2 + b 2 To raise a number to an exponent, us e the built - in JavaScript function Math.pow() Let’s say you have a variable x and you want to raise it to the 5 th power, use Math.pow in the following manner... Math.pow( x, 5 ); This will raise x to the 5 th power. To find the square root of a number, use t he built - in JavaScript function Math.sqrt () So to find the square root of x, use Math.pow () in the following manner... Math.sqrt( x ) You must create 2 functions to receive credit for this assignment. Your ‘ main ’ function which is called from the button. And your hypotenuse function. Again, the main function calls upon the hypotenuse f unction when it needs that value. Get the user ’ s input, call the function, output your result. Create your own CSS layout

0 Answers  


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1 Answers  


what is static objects in java

2 Answers  


merge sort time complexity

6 Answers   BFL, CDAC, IBM, Jawaharlal Nehru Technological University JNTU,


Write 5 differences between Memory Reference Instruction and Register Reference Instruction.

1 Answers   TCS, TJM,


I want to insert date in the form of yyyy-mm-dd... if any changes happen while inserting date format want to show error meg...any one can solve this..??

1 Answers  


is possible to delete specific data in a row by using of sql query?

0 Answers   HCL,


Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile

1 Answers  


Hi guys... I have one doubt ..Exception is a runtime error then why we have checked exception... Thanks in advance

2 Answers  


can we convert .class file to dll file

1 Answers  


Categories