Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Launchpad programming - day 7 morning (JS)

Total questions: 10

Worksheet time: 18mins

Name
Class
Date
1.

What is a library in programming?

a)

A set of functions, routines, or classes that can be reused in software development to perform common tasks or operations.

b)
A place where programmers borrow code
c)
A type of software that allows you to write code
d)

A collection of books and reading materials used for studying programming languages.

2.

What's the name of the File IO library in NodeJS?

a)
fs
b)
fileIO
c)
nodeFile
d)
fileSys
3.

What is CSV short for?

a)
Comma Separated Values
b)
Comma Single Values
c)
Comma Split Values
d)
Comma Sorted Values
4.

What is UTF-8?

a)

A programming language used for web development.

b)

A system for compressing and decompressing data files.

c)

A widely used character encoding standard that represents characters from many languages and includes ASCII as a subset.

d)
A type of software
5.

When we use readFileSync, the data is read in from a file and stored in which data type?

a)
String
b)
Number
c)
Boolean
d)
Array
6.

What is the value of c when the code has executed?

a)

5

b)

10

c)

20

d)

40

7.

What is output?

a)

Each character from the string one by one

T

h

e

b)

The whole string 42 times

c)

Every even character from the string, one per line.

T

e

q

d)

Every odd character from the string, one per line.

h

u

8.

What value will be output?

(a)  

9.

On line 9, what would we enter inside the parentheses to output just the population of Canada?

a)

canada

b)

canada.population

c)

canada(population)

d)

population.canada

10.

What does this regex string do?

a)

Up to 9 different numbers

b)

Decimal and whole numbers

c)

Whole positive numbers

d)

0-9 characters