Quiz Of JavaScript For The Students For Academic Degree

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Abhijeetjadeja
A
Abhijeetjadeja
Community Contributor
Quizzes Created: 2 | Total Attempts: 1,448
| Attempts: 1,069
SettingsSettings
Please wait...
  • 1/16 Questions

    How can we starts Javascript ?

    • Script tag
    • Javascript tag
    • Language tag
    • None of above
Please wait...
JavaScript Quizzes & Trivia
About This Quiz

This quiz give the over view of javascirpt for the students for academic degree like BCA , MCA , Msc-IT , MSC CS , PGDCA as well as private course running regarding IT. . . WISH U ALL THE VERY BEST


Quiz Preview

  • 2. 

    Is javascript case sensitive ?

    • True

    • False

    Correct Answer
    A. True
    Explanation
    JavaScript is indeed case sensitive. This means that it distinguishes between uppercase and lowercase letters. For example, variables named "myVariable" and "myvariable" would be treated as two separate variables. Similarly, functions or object names must be referenced with the exact casing used when they were declared. Therefore, "True" is the correct answer as JavaScript is case sensitive.

    Rate this question:

  • 3. 

    In script tag what are the attribute we can use  what are the attribute we can use ? what attribute we can use ?

    • Case

    • Language

    • Type

    • Section

    • Tract

    Correct Answer(s)
    A. Language
    A. Type
    Explanation
    The question is asking for the attributes that can be used in a script tag. The correct answer is "language" and "type". These attributes are commonly used in script tags to specify the programming language and type of the script being included.

    Rate this question:

  • 4. 

    How can we declare variable in javascript

    • Datatype

    • Var

    • Int

    • Float

    Correct Answer
    A. Var
    Explanation
    In JavaScript, we can declare a variable using the "var" keyword. This keyword is used to create a new variable and assign a value to it. It is followed by the variable name, which can be any valid identifier, and optionally, we can also specify the data type of the variable. The "var" keyword is essential for declaring variables in JavaScript and is widely used in coding practices.

    Rate this question:

  • 5. 

    .length is ____________

    Correct Answer
    property
    Explanation
    The ".length" is a property in many programming languages, including JavaScript. It is used to retrieve the length or size of a string, array, or other data structure. The property returns the number of characters in a string or the number of elements in an array. Therefore, ".length" is a property.

    Rate this question:

  • 6. 

    .push () is which type of function

    • Date and time

    • String

    • Array

    • Maths / numeric

    Correct Answer
    A. Array
    Explanation
    The .push() function is a method used to add one or more elements to the end of an array. It modifies the original array by adding the elements at the end. Therefore, the correct answer is "array" as .push() is a function that specifically operates on arrays.

    Rate this question:

  • 7. 

    Script tag used in which part tag is used in _____________?

    • Only head tag

    • Only body tag

    • Head tag and body tag both

    • None of above

    Correct Answer
    A. Head tag and body tag both
    Explanation
    The script tag is used in both the head tag and the body tag. It is commonly used to include or reference external JavaScript files in a web page. Placing the script tag in the head tag allows the browser to load and parse the JavaScript file before rendering the rest of the page. On the other hand, placing the script tag in the body tag allows the JavaScript to be executed after the page has been rendered, which can be useful for manipulating the DOM or interacting with elements on the page.

    Rate this question:

  • 8. 

    If we want to print any message in message box we use ___________ in javascript

    • Promptbox

    • Confirmbox

    • Alertbox

    • None of above

    Correct Answer
    A. Alertbox
    Explanation
    In JavaScript, if we want to display a message in a message box, we use the "alert" function. This function displays a pop-up box with the specified message and an "OK" button for the user to acknowledge the message. Therefore, the correct answer is "alertbox". The other options mentioned, such as "promptbox" and "confirmbox", are not valid functions in JavaScript for displaying messages in a message box.

    Rate this question:

  • 9. 

    To take value from user at runtime we use _________

    • Promptbox

    • Alertbox

    • Confirmbox

    • None

    Correct Answer
    A. Promptbox
    Explanation
    To take value from the user at runtime, we use a promptbox. The promptbox is a built-in function in JavaScript that displays a dialog box with a message prompting the user to input data. It allows the user to enter a value, which can then be stored in a variable or used for further processing in the program. This method is commonly used when interactive input is required from the user during program execution.

    Rate this question:

  • 10. 

    Take choice from user either yes and no or cancel we use ________

    • Promptbox

    • Alertbox

    • Confirmbox

    • None of above

    Correct Answer
    A. Confirmbox
    Explanation
    When we want to take a choice from the user with options such as "yes" and "no" or "cancel", we use a confirmbox. A confirmbox is a dialog box that pops up and displays a message to the user along with buttons for different options. The user can then select one of the options provided. Therefore, the correct answer is confirmbox.

    Rate this question:

  • 11. 

    In do-while .. while with condition required ';' at the end of () 

    • True

    • False

    Correct Answer
    A. True
    Explanation
    In a do-while loop, the condition is checked at the end of each iteration. The condition is enclosed within parentheses, and a semicolon is required at the end of the parentheses to indicate the end of the condition. This is necessary for the proper syntax of the do-while loop. Therefore, the statement "in do-while .. while with condition required ';' at the end of ()" is true.

    Rate this question:

  • 12. 

    What is the use of document.getElementById("...").value in javascript

    • To take value from any form tool

    • To take value from only textbox

    • To input some value in javascript

    • None of above

    Correct Answer
    A. To take value from any form tool
    Explanation
    The correct answer is "to take value from any form tool". The document.getElementById("...").value in JavaScript is used to retrieve the value of an input element or form tool on a webpage. It can be used to obtain the value from various form tools such as textboxes, checkboxes, radio buttons, dropdown menus, etc. This method allows developers to access and manipulate the values entered by users in a web form.

    Rate this question:

  • 13. 

    What is the use of document.getElementById("...").innerHTML="[message]"

    • To show our output in any tool

    • To show our output in only textbox

    • To display answer in alertbox

    • None of above

    Correct Answer
    A. To show our output in any tool
    Explanation
    The correct answer is "to show our output in any tool". The document.getElementById("...").innerHTML=" [message]" is used to manipulate the content of an HTML element with the specified ID. By setting the innerHTML property to a specific value, we can display our desired output in any HTML element, not just limited to a textbox or an alert box.

    Rate this question:

  • 14. 

    When we use function and onClick event as example is it must to use <script> and function in <head> only ?

    • True

    • False

    Correct Answer
    A. True
    Explanation
    The answer is true because when using a function and onClick event as an example, it is necessary to include the script tag and define the function within the head section of the HTML document. This is because the head section is where the script tag is typically placed to ensure that the function is loaded and available before the rest of the page is rendered. Placing the script tag and function in the head section ensures that the function can be called and executed properly when the onClick event is triggered.

    Rate this question:

Quiz Review Timeline (Updated): Mar 22, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 12, 2013
    Quiz Created by
    Abhijeetjadeja
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.