wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python and SQL Quiz

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What is the output of:type(10.5)?

a)

6

b)

8

c)

5.5

d)

10

2.

what is the output for:print('Hello'+'World')

a)

Hello+World

b)

Error

c)

HelloWorld

d)

Hello World

3.

Which Operator is used for Comparison Python?

a)

=

b)

!=

c)

===

d)

==

4.

Which of the following is a mutable data type in python?

a)

tuple

b)

str

c)

list

d)

int

5.

What is the output of:bool([]) ?

a)

True

b)

False

c)

Error

d)

None

6.

What is the output of:('Python'[:: -1])?

a)

Python

b)

nohtyP

c)

Error

d)

Pyt

7.

Which of the following Methods removes the last items from a list ?

a)

remove()

b)

pop()

c)

dalete()

d)

discard()

8.

What is the result of: set([[1,2,2,3]) ?

a)

{1,2,2,3}

b)

[1,2,3]

c)

{1,2,3}

d)

Error

9.

Which SQL statement is used to retrive data from a Database ?

a)

GET

b)

SELECT

c)

FETCH

d)

RETRIEVE

10.

Which Clause is used to filter records in SQL ?

a)

ORDER BY

b)

GROUP BY

c)

WHERE

d)

HAVING

11.

What does SQL stand for ?

a)

Structred Query Language

b)

Simple Query Language

c)

Sequential Query Language

d)

Standard Query Language

12.

Which data type is used to store whole numbers in SQL ?

a)

VARCHAR

b)

DATE

c)

INT

d)

FLOAT

13.

Which SQL statement is used to remove a table from a database ?

a)

DELETE

b)

REMOVE

c)

DROP

d)

ERASE

14.

Which symbol selects all columns in a SELECT query ?

a)

#

b)

*

c)

@

d)

%

15.

Which clause is used to combine rows from two tables based on a related column ?

a)

UNION

b)

JOIN

c)

COMBINE

d)

MERGE

16.

Which of the following is a valid SQL aggregate function ?

a)

ROUND()

b)

LENGTH()

c)

COUNT()

d)

FORMET()

17.

Which year first SQL was was build ?

a)

1970

b)

1969

c)

1972

d)

1989

18.

Which protocol is used to send emails ?

a)

FTP

b)

SMTP

c)

HTTP

d)

SNMP

19.

which programming language is known as the backbone of web development ?

a)

Python

b)

Java

c)

JavaScript

d)

C++

20.

What is a URL ?

a)

Universal Resource Locator

b)

Uniform Resource Locator

c)

Uniform Reference Link

d)

Unified Resource Link

21.

Which technology is primarily used for cryptocurrencies like Bitcoin ?

a)

Cloud computing

b)

Blockchain

c)

Artificial Intelligence

d)

Virtual Reality

22.

Which of these is an example of an open-source operating system ?

a)

Windows

b)

macOS

c)

Linux

d)

Android

23.

What does the ".exe" file extension represent ?

a)

Image file

b)

Executable file

c)

Text file

d)

Audio file

24.

Which company developed the Windows Operating System ?

a)

Apple

b)

IBM

c)

Microsoft

d)

Intel

25.

What does the 'C' in C language stands for ?

a)

Code

b)

Compiler

c)

Computer

d)

it doesn't stands for anything