41. Which of the following is an attribute of Table tag?
- a) SRC
- b) LINK
- c) CELLPADDING
- d) BOLD
Answer: C - CELLPADDING is a valid HTML table attribute that controls space between cell content and cell borders.
42. JavaScript variables are case-sensitive?
- a) TRUE.
- b) FALSE.
- c) N.A.
- d) N.A.
Answer: A - JavaScript is case-sensitive, meaning "myVariable" and "myvariable" are different identifiers.
43. Local Browser used for validations on the Web Pages uses _______.
- a) CSS.
- b) Java.
- c) Js.
- d) HTML.
Answer: B - Java (specifically Java applets) was historically used for client-side validation before JavaScript became dominant.
44. The ____ operator determines the type of a given object.
- a) typeof
- b) instanceof
- c) void
- d) delete
Answer: A - The typeof operator returns a string indicating the type of the unevaluated operand in JavaScript.
45. Javascript is _____ language.
- a) Client Side.
- b) Both.
- c) Server Side.
- d) None.
Answer: A - JavaScript is primarily a client-side scripting language executed in web browsers.
46. How to find out the index of a particular character or a string?
- a) position().
- b) index().
- c) indexOf().
- d) None of the mentioned.
Answer: C - The indexOf() method returns the position of the first occurrence of a specified value in a string.
47. Choose the correct HTML tag for the largest heading?
- a) H1 tag.
- b) H6 tag.
- c) H10 tag.
- d) HEAD tag.
Answer: A - HTML provides H1 to H6 heading tags, with H1 being the largest and most important heading.
48. Comments in XML document is given by:
- a) ?-- _ _-- tag.
- b) !_ _ _ _! tag.
- c) !_ _ _ _ tag.
- d) /_ _ _ _ tag.
Answer: C - XML comments use the syntax <!-- comment -->, which matches pattern c when filled.
49. The Sign & operator is ?
- a) Address operator.
- b) Indirection operator.
- c) Logical and.
- d) Logical or.
Answer: A - The & operator is the address-of operator in languages like C/C++, returning the memory address of a variable.
50. What is an ISP?
- a) Internet System Protocol.
- b) Internal System Program.
- c) Internet Service Provider.
- d) None of the above.
Answer: C - ISP stands for Internet Service Provider, companies that provide internet access to customers.
51. How do you create a new object in JavaScript?
- a) var obj = {};
- b) var obj=new {};
- c) var obj = Object();
- d) None of the above.
Answer: A - The object literal syntax {} is the simplest way to create a new empty object in JavaScript.
52. ______ attribute is used to specify the character encoding used in an external script file.
- a) type.
- b) character.
- c) characters.
- d) charset.
Answer: D - The charset attribute specifies the character encoding for external scripts in HTML.
53. JavaScript is ______ Side Scripting Language.
- a) Server.
- b) ISP.
- c) Browser.
- d) None of These.
Answer: C - JavaScript executes in the browser, making it a client-side scripting language for web pages.
54. Javascript is an object oriented language?
- a) FALSE
- b) TRUE
- c) N.A.
- d) N.A.
Answer: B - JavaScript is object-oriented, supporting objects, inheritance, and polymorphism through prototypes.
55. JavaScript Code is written inside file having extension _______.
- a) .js
- b) .javascript
- c) .jvs
- d) .jsc
Answer: A - JavaScript files use the .js extension, which is the standard convention across web development.
56. Javascript is ______ language.
- a) Application
- b) Programming
- c) Scripting
- d) None of These.
Answer: C - JavaScript is a scripting language designed for web browsers to add interactivity to HTML pages.
57. Is it valid to nest functions in JavaScript?
- a) Yes.
- b) No.
- c) N.A.
- d) N.A.
Answer: A - JavaScript supports nested functions (functions inside other functions), creating closures.
58. JavaScript is designed for following purpose_____
- a) To Perform Server Side Scripting Opertion.
- b) To Execute Query Related to DB on Server.
- c) To add interactivity to HTML Pages.
- d) To Style HTML Pages.
Answer: C - JavaScript's primary purpose is adding interactivity, validation, and dynamic behavior to web pages.
59. The function procedures are ________ by default.
- a) public
- b) private
- c) protected
- d) inherited
Answer: A - In VB.NET, functions are public by default unless explicitly specified otherwise.
60. Which of the following converts the expression to Boolean data type in VB.NET?
- a) CBool(expression).
- b) CByte(expression).
- c) CChar(expression).
- d) CDate(expression).
Answer: A - CBool() is the VB.NET conversion function specifically for converting to Boolean data type.