Quiz 2

Quiz 2

University

10 Qs

quiz-placeholder

Similar activities

Highway Design Standards Quiz

Highway Design Standards Quiz

University

15 Qs

AI BASED CREATIVE QUIZ

AI BASED CREATIVE QUIZ

University

10 Qs

Input & Output Interfacing Raspberry Pi Pico

Input & Output Interfacing Raspberry Pi Pico

University

10 Qs

Embedded Systems

Embedded Systems

University

10 Qs

Bioenergy

Bioenergy

University

15 Qs

Engineering Design Experience Quiz

Engineering Design Experience Quiz

8th Grade - University

15 Qs

Quiz Counter, FSM 2024

Quiz Counter, FSM 2024

University

15 Qs

MechnoSpell Challenge-002

MechnoSpell Challenge-002

University

10 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Engineering

University

Practice Problem

Medium

Created by

Lakshminarayanan R

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code?

3

4

4 is maximum

3,4

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code?

x is 50

Changed global x to 2

Value of x is 50

x is 50

Changed global x to 2

Value of x is 2

x is 50

Changed global x to 50

Value of x is 50

x is 50

Changed global x to 52

Value of x is 2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code?

a is 7 and b is 3 and c is 10

a is 25 and b is 5 and c is 24

a is 5 and b is 100 and c is 50

a is 3 and b is 7 and c is 10

a is 5 and b is 25 and c is 24

a is 50 and b is 100 and c is 5

a is 3 and b is 7 and c is 10

a is 25 and b is 5 and c is 24

a is 100 and b is 5 and c is 50

a is 3 and b is 3 and c is 10

a is 25 and b is 25 and c is 24

a is 100 and b is 5 and c is 50

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the following code print?

[2, 4, 6]

[1, 2, 3]

[4, 16, 36]

[0, 2, 4]

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the following code print?

mary

hada

little

littlelamb

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct sequence to create a database connection?

i. Import JDBC packages.

ii. Open a connection to the database.

iii. Load and register the JDBC driver.

iv. Execute the statement object and return a query resultset.

v. Create a statement object to perform a query.

vi. Close the resultset and statement objects.

vii. Process the resultset.

viii. Close the connection.

  1. i, ii, iii, v, iv, vii, viii, vi

  1. i, iii, ii, v, iv, vii, vi, viii

  1. ii, i, iii, iv, viii, vii, v, vi

  1. i, iii, ii, iv, v, vi, vii, viii

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are the major components of the JDBC?

DriverManager, Driver, Connection, Statement, and ResultSet

DriverManager, Driver, Connection, and Statement

DriverManager, Statement, and ResultSet

DriverManager, Connection, Statement, and ResultSet

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?