wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ICT (test) — Final

Total questions: 69

Worksheet time: 35mins

Name
Class
Date
1.

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

a)

REMOVE TABLE

b)

DELETE TABLE

c)

DROP TABLE

d)

CLEAR TABLE

2.

What is the primary purpose of a foreign key in a database?

a)

To uniquely identify a record in a table.

b)

To enforce referential integrity between tables.

c)

To sort data within a table.

d)

To store large amounts of text.

3.

What keyword is used to filter records based on a specified condition in SQL?

a)

WHERE

b)

HAVING

c)

FILTER

d)

SELECT

4.

What does the COUNT() function do in SQL?

a)

Counts the number of columns in a table.

b)

Counts the number of rows in a table.

c)

Counts distinct values in a specified column.

d)

Counts the total number of tables in a database.

5.

Which of the following are valid SQL aggregate functions? (Select all that apply)

a)

SUM()

b)

AVG()

c)

COUNT()

d)

LIST()

6.

Which SQL command is used to remove all records from a table without deleting the table itself?

a)

DELETE TABLE

b)

REMOVE ALL

c)

TRUNCATE TABLE

d)

DROP TABLE

7.

What is the default sorting order when using the ORDER BY clause?

a)

DESCENDING

b)

ASCENDING

c)

RANDOM

d)

ALPHABETICAL

8.

What does the SQL clause GROUP BY do?

a)

It groups rows that have the same values in specified columns into summary rows.

b)

It orders the rows in a result set.

c)

It filters rows based on a condition.

d)

It combines rows from two or more tables.

9.

Which SQL command can be used to create a relationship between two tables? (Select all that apply)

a)

CREATE TABLE

b)

ALTER TABLE

c)

ADD FOREIGN KEY

d)

JOIN

10.

Which of the following are valid SQL data types? (Select all that apply)

a)

INT

b)

VARCHAR

c)

DECIMAL

d)

DATE

11.

What SQL statement is used to select all entries from the locations table?

a)

SELECT ALL FROM locations

b)

SELECT * FROM locations

c)

GET * FROM locations

d)

SELECT locations

12.

Which keyword is used in SQL to combine the results of two or more SELECT statements?

a)

JOIN

b)

UNION

c)

INTERSECT

d)

COMBINE

13.

Which SQL clause is used to sort the results of a query?

a)

ORDER BY

b)

GROUP BY

c)

SORT

d)

FILTER

14.

What is the purpose of a LEFT JOIN in SQL?

a)

To combine rows from two tables, returning only matching rows.

b)

To combine rows from two tables, returning all rows from the left table.

c)

To create a new table.

d)

To delete rows from a table.

15.

What SQL query would you use to get a list of all companies whose names start with the letter 'A'? (Select all that apply)

a)

SELECT * FROM companies WHERE company_name LIKE 'A%'

b)

SELECT company_name FROM companies WHERE company_name STARTS WITH 'A'

c)

SELECT company_name FROM companies WHERE company_name LIKE '%A%'

d)

SELECT company_name FROM companies WHERE company_name = 'A%'

16.

What does the MONTH function do in Excel?

a)

Returns the current month.

b)

Extracts the month from a date.

c)

Calculates the number of months between two dates.

d)

Formats the date to show only the month.

17.

Which action would you take to sort data in Excel?

a)

Use the Format Cells option.

b)

Use the Data tab and select Sort.

c)

Use the Home tab and select Filter.

d)

Use the View tab and select Sort.

18.

Which of the following statements are true about SmartArt in PowerPoint? (Select all that apply)

a)

It can be used to visualize information.

b)

It cannot be customized.

c)

It allows for easy rearrangement of elements.

d)

It can include text and images.

19.

Which of the following actions can help protect your PowerPoint presentation? (Select all that apply)

a)

Set a password for editing.

b)

Save as a PDF.

c)

Use a watermark.

d)

Disable editing features.

20.

In Excel, how can you quickly apply a currency format to a cell?

a)

Right-click and select Format Cells > Currency

b)

Press Ctrl + C

c)

Use the Home tab and select Currency from the Number format dropdown

d)

Type "$" before the number

21.

Which Excel feature allows you to summarize data based on specific criteria?

a)

PivotTable

b)

Chart

c)

Table

d)

Filter

22.

What function would you use to combine text from multiple cells into one cell in Excel?

a)

CONCATENATE

b)

JOIN

c)

MERGE

d)

COMBINE

23.

How can you adjust the timing of animations in PowerPoint?

a)

Use the Animations tab to set duration and delay.

b)

Right-click on the slide and select "Timing".

c)

Use the Design tab for timing adjustments.

d)

Animations cannot be timed.

24.

Which of the following can be included in an Excel chart? (Select all that apply)

a)

Data labels

b)

Trend lines

c)

Legends

d)

Footnotes

25.

Which feature allows you to add interactivity to a PowerPoint presentation?

a)

Animations

b)

Transitions

c)

Hyperlinks

d)

Slide Layouts

26.

What can you do with the Filter feature in Excel? (Select all that apply)

a)

Display only rows that meet certain criteria.

b)

Sort data in ascending or descending order.

c)

Hide rows that do not meet certain criteria.

d)

Format cells based on conditions.

27.

What will be the output of print("Programming"[3:7])?

a)

Gra

b)

gram

c)

pro

d)

pr

28.

Which of the following correctly demonstrates variable reassignment in Python?

a)

x = 10; x = 20

b)

x := 10; x = 20

c)

int x = 10; x = 20

d)

const x = 10; x = 20

29.

How many iterations will the following code execute? The code shown is: for i in range(2, 10, 2): print(i)

a)

4

b)

5

c)

3

d)

8

30.

What is the primary function of Power BI?

a)

Data storage

b)

Data visualization and analysis

c)

Data modeling

d)

Programming application

31.

Which of the following file types can Power BI NOT import directly?

a)

Excel files

b)

JSON files

c)

XML files

d)

Java files

32.

What is the purpose of a slicer in Power BI?

a)

To create reports

b)

To visualize geographic data

c)

To filter data

d)

To combine multiple visuals

33.

How can you customize the appearance of a chart in Power BI?

a)

Changing the data source settings

b)

Through the Formatting pane

c)

By altering the data model

d)

By manually editing visual code

34.

How do you establish a connection to a SQL database in Power BI?

a)

Using ODBC or SqlClient

b)

Via FTP

c)

With a direct HTTP request

d)

Only through CSV files

35.

In the context of Power BI, which operation combines tables based on matching columns?

a)

Inner Join

b)

Cross Join

c)

Outer Join

d)

Natural Join

36.

What is the effect of the statement print("Hello"[::-1])?

a)

Hello

b)

olleH

c)

Error

d)

H

37.

Which of the following is a correct way to create a multi-line string in Python?

a)

"""Hello World"""

b)

'Hello\nWorld'

c)

<>

d)

"Hello World"

38.

What will print(2**3**2) output?

a)

512

b)

64

c)

12

d)

16

39.

Which of the following types can be used as keys in a dictionary?

a)

List

b)

Set

c)

Tuple

d)

All of the above

40.

What will print("10" + str(10)) yield?

a)

20

b)

1010

c)

"1010"

d)

"20"

41.

What is the output of the following code? for i in range(3): for j in range(2): print(i, j)

a)

000011112222

b)

000110112021

c)

012

d)

Error

42.

What does the following code output? for i in range(1, 6, 2): if i == 3: continue print(i)

a)

1 2 3 4 5

b)

1 3 5

c)

1 5

d)

1 2 4

43.

What will be the result of len([[1, 2], (3, 4, 5), [6]])?

a)

3

b)

6

c)

5

d)

4

44.

If list1 = [1, 2, [3, 4]], what will list1[2][1] return?

a)

3

b)

4

c)

[3, 4]

d)

Error

45.

Which of the following can NOT be a data source for Power BI?

a)

Microsoft Excel

b)

SQL Server

c)

MongoDB

d)

Only CSV Files

46.

What is Power Query used for in Power BI?

a)

Creating visualizations

b)

Data cleaning and transformation

c)

Writing DAX formulas

d)

None of the above

47.

What must be done to use a Calculated Column in Power BI?

a)

Input data manually

b)

Write a DAX formula

c)

Change the visual type

d)

Load the data model

48.

What is the purpose of the "Modeling" tab in Power BI?

a)

To create reports

b)

To modify visual elements

c)

To manage relationships and calculated columns

d)

To import data

49.

What kind of connection does DirectQuery allow between Power BI and SQL databases?

a)

Live connection

b)

Scheduled refresh

c)

Manual refresh

d)

None of the above

50.

How can you improve performance when querying a large SQL table in Power BI?

a)

Limit the columns returned with SELECT

b)

Use a more complex query

c)

Avoid indexes

d)

None of the above

51.

What kind of connection does DirectQuery allow between Power BI and SQL databases?

a)

Live connection

b)

Scheduled refresh

c)

Manual refresh

d)

None of the above

52.

How can you improve performance when querying a large SQL table in Power BI?

a)

Limit the columns returned with SELECT

b)

Use a more complex query

c)

Avoid indexes

d)

None of the above

53.

To analyze trends effectively in Power BI, data is typically grouped by:

a)

Categories

b)

Time intervals

c)

Both A and B

d)

Direct data references

54.

Which of the following is a correct use of DAX in Power BI?

a)

Creating a data connection

b)

Defining calculated columns and measures

c)

Formatting visual elements

d)

Connecting to APIs

55.

What is the correct way to declare a variable in Python?

a)

var x = 5

b)

x = 5

c)

int x = 5

d)

x := 5

56.

Which of the following data types is immutable in Python?

a)

List

b)

Dictionary

c)

Set

d)

Tuple

57.

Which keyword is used to define a function in Python?

a)

function

b)

def

c)

define

d)

func

58.

What does the strip() method do when called on a string?

a)

convert it to uppercase

b)

removes whitespace from both ends

c)

splits the string into a list

d)

brings cr7

59.

How do you create a dictionary in Python?

a)

my_dict = []

b)

my_dict = {}

c)

my_dict = ()

d)

my_dict = <>

60.

What is the output o f the following code? print("Python" * 3)

a)

Python

b)

PythonPython

c)

PythonPythonPython

d)

PythonPythonPythonPython

61.

What function do you use to read a line of input from the user?

a)

input_line

b)

input

c)

read_input

d)

read_line

62.

Which of the following will generate a random integer between 1 and 10 in Python?

a)

random.randint(1, 10)

b)

random.range(1, 10)

c)

random.integer(1, 10)

d)

random.int(1, 10)

63.

How do you handle exceptions in Python?

a)

try-except block

b)

if-else block

c)

Catch - finally

d)

handle-except

64.

How are elements in a dictionary accessed?

a)

Using square brackets

b)

Using parentheses

c)

Using curly braces

d)

Using parents

65.

Which method is used to remove an item from a list at a specific index?

a)

remove

b)

pop

c)

delete

d)

discard

66.

What is the purpose of the return statement in a function?

a)

To return a value to the caller

b)

To print a value to the console

c)

to exit the program

d)

To define a function

67.

What is the result of this expression: 5== "5"?

a)

error

b)

none

c)

true

d)

false

68.

What will this value print? print("Hello" + "World")

a)

Hello world

b)

Helloworld

c)

'Hello world'

d)

"Hello world"

69.

What will len("Hello, World!") return?

a)

12

b)

13

c)

14

d)

11