wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer 10: Date and Time, String Manipulation Functions

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following concepts refers to a programmed routine that accepts argument/s and returns an output or a value?

a)

Function

b)

String Interval

c)

Parameter

d)

Procedure

2.

What do you call the functions used to manipulate date and time values?

a)

Date Argument

b)

Date and Time String Interval

c)

Date and Time Function

d)

Data Conversin Function

3.

What do you call the values used to help Functions to perform programming tasks?

a)

Instances

b)

Numeric and Non-numeric Values

c)

Data Types

d)

Parameters

4.

Which of the following is NOT a valid Date and Time String Interval?

a)

yyyy

b)

ms

c)

h

d)

d

5.

Which of the following is NOT TRUE about the String Manipulation Functions?

a)

String Manipulation Functions are built-in Functions.

b)

All String Manipulation Functions use parameters.

c)

String Manipulation Functions can generate string and/or numeric output.

d)

String Manipulation Functions work with string parameters only.

6.

What is the value stored in a variable given below?

num = Chr(112) & Chr(85) & Chr(103)

a)

pUf

b)

pUg

c)

pug

d)

puF

e)

Pug

7.

What is the value that will be stored in a variable given below?

code = Len(“Integrated School”) & Mid(“Batangas”, 4, 5)

a)

16atanga

b)

16angas

c)

17angas

d)

17Batan

e)

17ngas

8.

What is the value stored in the variable given below?

x = DatePart(“q”, “7/15/1988”)

a)

2

b)

3

c)

7

d)

15

e)

1988

9.

What is the value that will be stored in the variable given below?

y = DateAdd(“q”, 4, "01/31/2019")

a)

01/31/2020

b)

02/01/2019

c)

01/31/2019

d)

01/31/2023

e)

02/04/2019

10.

Which of the the following Date and Time Functions returns the number of date/time intervals between two dates/times?

a)

DateAdd

b)

DateDiff

c)

DatePart

d)

DateSerial

e)

DateInterval

11.

The correct Date and Time String Interval for 'day of year' is:

a)

y

b)

yy

c)

d

d)

w

12.

The correct Date and Time String Interval for 'week' is:

a)

w

b)

ww

c)

d

d)

y

13.

How many numeric parameters are employed in Mid Function?

a)

2

b)

3

c)

4

d)

5

14.

In the parameters of the DateDiff Function, which one is considered as the minuend?

a)

1st parameter

b)

2nd parameter

c)

3rd parameter

d)

4th parameter

15.

What is the output of the Visual Basic Expression below?

StrReverse(LCase(“785643”))

a)

346587

b)

785643

c)

364587

d)

385647