Become a GOLD member of Deccansoft and get access to 40+ courses!!
NewBatches/Webinars
Packages
Gold Membership
Bestseller
Microsoft Azure Suite & Suite Plus
Power Platform Acadamy
New
Azure DevOps Expert & Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Courses
MS.NET Courses (Includes Live Project)
Complete C#, OOPs and Windows Programing
ASP.NET MVC Online Training
ASP.NET WebForms
ASP.NET Core
WCF incl. Web Services and Remoting
WPF incl. MVVM and Prism
LINQ and Entity Framework
Live Project Training for Developing Enterprise Application
Live Project using Ntier Arch (.NET5 + EF Core + Angular)
Microservices using .NET Core
Gold Membership
CareerStep IT Program
Client-side UI Technologies
Building Static Web Pages using HTML and CSS
JavaScript and HTML DOM
jQuery, AJAX and JSON
Building Interactive Web Pages using HTML5 and CSS3
BootStrap + Live Examples
AngularJS + Live Project
Angular + Typescript
ReactJS
KnockoutJS
Xamarin
SQL Server + MSBI
SQL Server 2017
Querying Data with Transact-SQL(70-761)
SQL Server Integration Service (SSIS)
SQL Server Reporting Service (SSRS)
SQL Service Analysis Service (SSAS)
Cloud Computing / Azure / AWS
AZ-900: Microsoft Azure Fundamentals
Azure Suite (AZ-104+AZ-204+AZ-305+ AZ-500)
AZ-104: Microsoft Azure Administrator
AZ-204: Developing Solutions for Microsoft Azure
AZ-305: Microsoft Azure Architect Technologies and Design
DP-203: Data Engineering on Microsoft Azure
Amazon Web Services (AWS)
DevOps Expert
AZ-400: Microsoft Azure DevOps
Docker by Sandeep Soni
Kubernetes by Sandeep Soni
Docker & Kubernetes by Rahul Rampurkar
IaC Using Terraform
Powershell
Microsoft Power Platform
Microsoft Power Platform
Data Analytics using PowerBI (DA-100)
Testing Tools
Manual Testing
Selenium Testing with Java(Live Training)
Others
Python Programming
C and Data Structure
Core Java
OOPs and C++
Advance Java
Complete Azure Training
Pricing
Videos
Testimonials
Azure Certification
Contact Us
Login
Login or Register
×
Sign In
Register
Forgot Password?
How did you find us
WhatsApp
YouTube
LinkedIn
Facebook
Telegram
Twitter
Google
Referred by Friend
Refresh
Input symbols
By clicking Register, you accept to the
terms and conditions
and that you have read our
privacy policy.
Recover Password
×
Submit
Enquiry Now
Where did you come to know about us
WhatsApp
YouTube
LinkedIn
Facebook
LinkedIn Ad
Email
Twitter
Google
Referred
Other
Refresh
Input symbols
JavaScript-Intoduction and First Program
Interview Questions and Answer
1. ______ tag is an extension to HTML that can enclose any number of JavaScript statements.
Options:
a. <SCRIPT>
b. <BODY>
c. <HEAD>
d. <TITLE>
Reveal Answer
2. What is the correct JavaScript syntax to write "Hello World"?
Options:
a. System.out.println("Hello World")
b. println ("Hello World")
c. document.write("Hello World")
d. response.write("Hello World")
Reveal Answer
3. Which of the following way can be used to indicate the LANGUAGE attribute?
Options:
a. <LANGUAGE="JavaScriptVersion">
b. <SCRIPT LANGUAGE="JavaScriptVersion">
c. <SCRIPT LANGUAGE="JavaScriptVersion"> JavaScript statements…</SCRIPT>
d. <SCRIPT LANGUAGE="JavaScriptVersion"!> JavaScript statements…</SCRIPT>
Reveal Answer
4. Inside which HTML element do we put the JavaScript?
Options:
a. <js>
b. <scripting>
c. <script>
d. <javascript>
Reveal Answer
5. What is the correct syntax for referring to an external script called " abc.js"?
Options:
a. <script href=" abc.js">
b. <script name=" abc.js">
c. <script src=" abc.js">
d. D. None of the above
Reveal Answer
6. Inside which HTML element do we put the JavaScript?
Options:
a. <js>
b. <scripting>
c. <script>
d. <javascript>
Reveal Answer
7. What is the correct syntax for referring to an external script called " abc.js"?
Options:
a. <script href=" abc.js">
b. <script name=" abc.js">
c. <script src=" abc.js">
d. None of the above
Reveal Answer
8. What is the output of this program? #include <iostream> using namespace std; double division(int a, int b) { if (b == 0) { throw "Division by zero condition!"; } return (a / b); } int main () { int x = 50; int y = 2; double z = 0; try { z = division(x, y); cout << z; } catch(const char *msg) { cerr << msg; } return 0; }
Options:
a. 25
b. 20
c. Division by zero condition!
d. none of the mentioned
Reveal Answer
9. SVG is mostly useful for vector type diagrams like.
Options:
a. Pie charts
b. Two-dimensional graphs
c. Both A & B
d. None of the above
Reveal Answer
10. Which types of image maps can be used with JavaScript?
Options:
a. Server-side image maps
b. Client-side image maps JavaScript Multiple Choice Questions Introduction
c. Server-side image maps and Client-side image maps
d. None of the above
Reveal Answer
11. Vector graphics contain geometric objects such as lines and curves.
Options:
a. Yes
b. No
Reveal Answer
12. HTML DOM access the other programming languages.
Options:
a. Yes
b. No
Reveal Answer
13. All HTML elements are defined as
Options:
a. classes
b. objects
c. methods
d. All
Reveal Answer
14. Which is the correct way to write a JavaScript array?
Options:
a. var txt = new Array(1:"tim",2:"kim",3:"jim")
b. var txt = new Array:1=("tim")2=("kim")3=("jim")
c. var txt = new Array("tim","kim","jim")
d. var txt = new Array="tim","kim","jim"
Reveal Answer
15. JavaScript entities start with _______ and end with _________.
Options:
a. Semicolon, colon
b. Semicolon, Ampersand
c. Ampersand, colon
d. Ampersand, semicolon
Reveal Answer
Packages
Gold Membership
Microsoft Azure Suite &Suite Plus
Azure DevOps Expert &Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Resources
Blog
Deccansoft
AzureA2Z
Wall of Fame
On-Job Tech Support
About
About BestDotNetTraining
About Trainer
Testimonials
FAQ
Other links
About Us
Contact Us
Leave us a feedback
Sitemap
Privacy Policy
Terms & Conditions
Proudly Powered by