JavaScript and Frameworks Quiz

JavaScript and Frameworks Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

HTML Basics

HTML Basics

Professional Development

15 Qs

Basic CSS

Basic CSS

Professional Development

15 Qs

PHP QUIZ-2

PHP QUIZ-2

Professional Development

10 Qs

Moviles 2 medio término

Moviles 2 medio término

Professional Development

10 Qs

CodeMonkey Platform Management & Resources

CodeMonkey Platform Management & Resources

Professional Development

10 Qs

ВебДизайн3

ВебДизайн3

Professional Development

15 Qs

Imaxes e elementos multimedia

Imaxes e elementos multimedia

Professional Development

10 Qs

HTML/CSS 1.dan

HTML/CSS 1.dan

Professional Development

14 Qs

JavaScript and Frameworks Quiz

JavaScript and Frameworks Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Asharani Shinde

Used 32+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for creating a new React component using a function?

function MyComponent() { return

Hello, World!

; }

class MyComponent { return

Hello, World!

; }

var MyComponent = function { return

Hello, World!

; }

createComponent MyComponent() { return

Hello, World!

; }

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to make an AJAX GET request using jQuery?

$.get('url', function(response) { console.log(response); });

jQuery.GET('url', response => { console.log(response); });

$.get('url').done(function(response) { console.log(response); });

$.ajax({ method: 'GET', url: 'url', success: function(response) { console.log(response); }});

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which syntax is used to catch an exception in JavaScript?

try { // code } error(e) { console.log(e); }

try { // code } catch (e) { console.log(e); }

try { // code } except(e) { console.log(e); }

catch(e) { // code }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JDBC method is used to execute a SELECT SQL query and return the result set?

executeQuery()

executeSelect()

getResult()

runQuery()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for defining an XML element?

value

{element} value {/element}

element[value]end

[element] value [/element]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you include an external JavaScript file in a JSP page?


<script link="script.js"></script>

<include src="script.js"></include>

<script src="script.js"></script>

<<jsp:include page="script.js"/>


7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to create a PreparedStatement in JDBC?

PreparedStatement pstmt = conn.execute("SELECT * FROM users");

PreparedStatement pstmt = conn.prepareStatement("SELECT * FROM users");

Statement pstmt = conn.preparedStatement("SELECT * FROM users");

Connection pstmt = conn.createPreparedStatement("SELECT * FROM users");

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?