HTML, CSS & JS Questions Welcome to your HTML, CSS and JS Questions Name Email Phone Number 1. How will you make all paragraph elements 'RED' in color? p.all {color: red;} p.all {color: #990000;} all.p {color: #998877;} p {color: red;} None 2. The attribute, which defines the relationship between the current document and HREF'ed URL is REL URL REV All of these None 3. If we want to define style for an unique element, then which css selector will we use ? Id text class Name None 4. Which of the following method is used to evaluate a string of JavaScript code in the context of the specified object? Eval ParseDoule ParseObject Efloat None 5. tag is designed to fit a single line of our web page but tag will accept a line of text full paragraph word request None 6. What should be the table width, so that the width of a table adjusts to the current width of the browser window? 640 pixels 100% full-screen 1024 px None 7. Which is the correct way to write a JavaScript array? var txt = new Array(1:"arr",2:"kim",3:"jim") var txt = new Array:1=(" arr ")2=("kim")3=("jim") var txt = new Array("arr ","kim","jim") var txt = new Array=" arr ","kim","jim" None 8. is format tag empty tag both (a) and (b) none of these None 9. Any part of the graphic that is not included in another hot zone is considered to be part of rect point default polygon None 10. Is it possible to declare font-weight, font-face & font-size by using ONLY ONE CSS properly? Yes, it's possible No, not possible None 11. The latest HTML standard is XML SGML HTML 4.0 HTML 5.0 None 12. By default, Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code? a {text: no-underline;} a {text-decoration:none;} a {text-style: no-underline;} a {text-decoration: no-underline;} None 13. Which of the following is not a valid JavaScript variable name? 2java _java_and_ java _names javaandjava None of the above None 14. How to append a value to an array of JavaScript? arr[arr.length] = value arr[arr.length+1] = new Arrays() arr[arr.length-1] = value arr[arr.length*1] = value None 15. Which of the following is a server-side JavaScript object? Function File FileUpload Date None 16. Character encoding is method used to represent numbers in a character method used to represent character in a number a system that consists of a code which pairs each character with a pattern,sequence of natural numbers or electrical pulse in order to transmit the data none of these None 17. What language defines the behavior of a web page? HTML CSS XML Java Script None 18. www is based on which model? Local-server Client-server 3-tier None of these None 19. HTML stands for? Hyper Text Markup Language Hyper Tabular Markup Language High Text Markup Language None of these None 20. Java Script entities start with ____________ and end with ______________ Semicolon, colon Semicolon, Ampersand Ampersand, colon Ampersand, semicolon None 21. Which CSS property you will use if you want to add some margin between a DIV's border and its inner text? spacing margin padding inner-margin None 22. Which of the following is correct to write “Hello World” on the web page? System.out.println(“Hello World”) print(“Hello World”) document.write(“Hello World”) response.write(“Hello World”) None 23. Java script can be used for Storing the form's contents to a database file on the server False True None 24. Which of the ways below is incorrect of instantiating a date? new Date(dateString) new Date() new Date(seconds) new Date(year, month, day, hours, minutes, seconds, milliseconds) None 25. What java wrapper type is created when a JavaScript object is sent to Java? ScriptObject JavaObject Jobject JSObject None