You are on page 1of 4

Instructions

You are posed with 5 practical problems below,


You can use any application/software available on the machine provided to resolve them To qualify to the next round at least 3 of the 5 need to be attempted The maximum time permitted to take the test is 1 hour; please strictly adhere to the time. Its advised to spend some time planning the solutions so that you can attempt the maximum questions.

talent spotters
1716-MIG, BHEL, R.C.Puram, Hyderabad 502032; Phone No. 9885516506 Email: talentspotters.hyd@gmail.com

CASE 1: Write the Java script code to be embedded in the above HTML code for the click event of
the button which will display the alert message eligible for Voting if the following validations are true: The age should be numeric and should be >18 The nationality should be Indian

The alert message Not eligible to vote should be displayed if any of the above mentioned validations are false.

Make sure the java script should be added to the page without using the onclick attribute in any of the tags.

Following is the HTML code for the below page. <HTML> <BODY> <h1> Enter the details</h1> <FORM NAME=frm1> Enter your nationality: <INPUT TYPE=Text NAME=TxtNat SIZE=20><BR><BR> Enter your age: <INPUT TYPE=Text NAME=TxtAge SIZE=2> <BR><BR> <INPUT TYPE=Button NAME=Bsubmit VALUE=Send details> </FORM> </BODY> </HTML>

talent spotters
1716-MIG, BHEL, R.C.Puram, Hyderabad 502032; Phone No. 9885516506 Email: talentspotters.hyd@gmail.com

CASE 2: Create a page like below with a text box and button, the button should hide the radio button with the number entered in the text box. For example , if I enter 3 in the textbox and press the button, the 3rd radio button should disappear.

Case 3: Show a button for 2 seconds; hide for 1 second then again show for 2 seconds. Let this continue Case 4: Create a set of checkboxes with the below text: Which company would you work in? Infosys TCS Wipro Microsoft Google None of these If None of these is selected with any other, show a error message Invalid selection. Case 5: Write the HTML code to generate a Web Page in the format given below: Consider the following while writing the HTML code: 1. 2. 3. 4. 5. Background color of the page should be Cyan. Text style should be Comic Sans MS and color should be Red. Picture used in the page is the file activity.jpg Table should have a border of color blue Use the concept of nested lists for creating the list given in the webpage with specified bullets. 6. Pages linked to: Indoor Activities as in.html Outdoor Activities as out.html 7. Bottom message should be of size 2.

talent spotters
1716-MIG, BHEL, R.C.Puram, Hyderabad 502032; Phone No. 9885516506 Email: talentspotters.hyd@gmail.com

The Little Starlings

Welcome to our world..

The Little Starlings is an hobby club that


believes in all-round development of a child through various activities.

We offer the following activities: 1. Indoor activities Dramatics Dance 2. Outdoor activities Horse-riding Swimming

Activity Charges Activity Dramatics Dance Horse-riding Swimming Monthly charges Rs.250 Rs.350 Rs.400 Rs.500

For enquiries Mail to us

talent spotters
1716-MIG, BHEL, R.C.Puram, Hyderabad 502032; Phone No. 9885516506 Email: talentspotters.hyd@gmail.com

You might also like