Question
a.
str.charAt(0);
b.
str.substring(1);
c.
str.charAt(1);
d.
str.charAt(2);
Posted under UGC NET computer science question paper Web Technologies
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following returns the first characters of the string str?
Similar Questions
Discover Related MCQs
Q. Which method is used to search for a sub string?
View solution
Q. What is the full form of DOM?
View solution
Q. Which of the following refers to the <html> element in an HTML document?
View solution
Q. Which of the following objects is the root object in HTML DOM object hierarchy?
View solution
Q. Which of the following is not a property of the window object?
View solution
Q. Which of the following is not a method of the window object?
View solution
Q. What does the confirm() method of the window object return?
View solution
Q. Which of the following methods executes a certain piece of code after a periodic interval?
View solution
Q. Which of the following is not a property of the location object?
View solution
Q. Which of the following is a method of the location object?
View solution
Q. Which of the following is not a property of the history object?
View solution
Q. Which of the following is not a method of the history object?
View solution
Q. Which of the following refers to the <body> element in an HTML page?
View solution
Q. Which of the following represents the <head> element?
View solution
Q. Which of the following is not a mouse event?
View solution
Q. The event object is accessible from
View solution
Q. Which of the following is not a property of the event object?
View solution
Q. How many phases are there in the W3C event propagation model?
View solution
Q. Which of the following methods on an element node is used to check whether it has any child nodes?
View solution
Q. Which of the following returns a reference of an element having the id “panel”?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Web Technologies? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!