wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Semester 1 Exam Review

Total questions: 94

Worksheet time: 55mins

Name
Class
Date
1.

If a user enters "eight books," using parseInt on this input would give:

a)

NaN

b)

eight

c)

8

d)

Undefined

2.

In a relational database, a "one-to-many" relationship means:

a)

Each record in one table links to multiple records in another

b)

Each record links to only one record in another table

c)

All records link to only one field

d)

Each table has only one record

3.

To format data in columns and rows in Access, use:

a)

Form

b)

Query

c)

Table

d)

Report

4.

If "45 apples" is processed using parseInt, it will return:

a)

NaN

b)

45

c)

apples

d)

0

5.

The purpose of "const" in JavaScript is to:

a)

Declare variables that cannot be reassigned

b)

Make values mutable

c)

Declare local variables only

d)

Create arrays only

6.

If a user enters "45.78" and parseInt is used, the result is:

a)

45.78

b)

45

c)

NaN

d)

78

7.

What data type is appropriate for a field in a database that stores dates?

a)

Integer

b)

Text

c)

Currency

d)

Date/Time

8.

To link related data across tables in MS Access, you use:

a)

Primary keys only

b)

Foreign keys

c)

Text fields

d)

Only numeric fields

9.

To ensure a prompt value is stored as a number, you could use:

a)

parseFloat()

b)

Int()

c)

Num()

d)

parse()

10.

What will "parseFloat('87.45.67')" return in JavaScript?

a)

87.45

b)

NaN

c)

67

d)

45

11.

Which is NOT an available object type in Microsoft Access?

a)

Report

b)

Form

c)

Query

d)

Spreadsheet

12.

In a relational database, a primary key:

a)

Uniquely identifies each record

b)

Ensures data consistency across tables

c)

Is always numeric

d)

Tracks all modifications in a record

13.

For storing currency values in MS Access, which data type is best?

a)

Memo

b)

Number

c)

Currency

d)

Date/Time

14.

A foreign key in a database is primarily used to:

a)

Connect related tables

b)

Store unique records only

c)

Track deleted records

d)

Make tables more readable

15.

In a database, linking "CustomerID" in "Orders" to "CustomerID" in "Customers" represents:

a)

One-to-One relationship

b)

One-to-Many relationship

c)

Many-to-One relationship

d)

Many-to-Many relationship

16.

Which JavaScript function extracts the integer 123 from "123 oranges"?

a)

Number("123 oranges")

b)

parseInt("oranges 123")

c)

parseInt("123 oranges")

d)

parseFloat("oranges 123")

17.

In MS Access, the default view when a table opens is:

a)

Report View

b)

Datasheet View

c)

Design View

d)

Layout View

18.

A relational database is defined as:

a)

A flat database file

b)

One with linked tables

c)

A data storage in a single row

d)

A read-only database structure

19.

Which operator checks for strict equality in JavaScript (same type and value)?

a)

==

b)

===

c)

!=

d)

<=

20.

The result of parseInt("67.89") in JavaScript is:

a)

67.89

b)

67

c)

89

d)

NaN

21.

The correct syntax to declare a constant in JavaScript is:

a)

const variableName = value;

b)

var variableName = value;

c)

constant variableName = value;

d)

let variableName = value;

22.

To treat a dropdown selection as an integer in JavaScript, use:

a)

parseFloat()

b)

Number()

c)

parseInt()

d)

toString()

23.

If the user inputs "Chris" into a prompt box, what is displayed using alert?

a)

"Chris has logged in."

b)

An alert saying "Chris"

c)

The prompt asks for input again

d)

A message "Hello, Chris!"

24.

Which rule is correct for variable names in JavaScript?

a)

Variable names are not case-sensitive

b)

They can contain spaces

c)

They may start with a symbol like $

d)

They cannot start with numbers

25.

In JavaScript, == checks:

a)

Type and value equality

b)

Only value equality

c)

Type only

d)

Length of values

26.

What does a database query return?

a)

All records from a specific table

b)

A subset of data based on given criteria

c)

All unique records in a table

d)

A full backup of the database

27.

Changing rows="50%,50%" to rows="25%,75%" will:

a)

Have the bottom frame take up 75%

b)

Resize both frames equally

c)

Stack frames vertically

d)

Place top frame at 50% height

28.

In JavaScript, "document.write" can be used to:

a)

Alert a message

b)

Log to the console

c)

Directly write to HTML

d)

Open a prompt box

29.

To add two values in JavaScript and avoid concatenation, you use:

a)

parseFloat()

b)

parseInt()

c)

All of the above

30.

When using prompt(), user input is by default treated as:

a)

Integer

b)

Float

c)

Boolean

d)

String

31.

parseFloat("45.9abc") will result in:

a)

45.9

b)

NaN

c)

9

d)

Undefined

32.

The correct way to assign 2024 as a constant in JavaScript is:

a)

let year = 2024;

b)

const year = 2024;

c)

variable year = 2024;

d)

year = 2024;

33.

A prompt() with a string value, "4 oranges", if parsed with parseInt, will result in:

a)

4

b)

oranges

c)

NaN

d)

0

34.

"===" in JavaScript checks for:

a)

Value equality only

b)

Reference equality

c)

Both value and type equality

d)

Length equality

35.

The default function to open a table in MS Access is:

a)

Query View

b)

Design View

c)

Data Sheet View

d)

Report View

36.

A foreign key ensures that:

a)

Data is unique

b)

Tables are connected by key fields

c)

Tables only hold integer values

d)

Only one record is present per table

37.

Which operator is used for "not equal to" in JavaScript?

a)

!==

b)

<>

c)

!=

d)

==

38.

What does parseInt("abc123") return?

a)

123

b)

NaN

c)

abc

d)

0

39.

A prompt for "123.456" with parseFloat() will result in:

a)

123

b)

456

c)

NaN

d)

123.456

40.

Write a statement that asks for 2 inputs: totalAmount and discount. Subtracts the two variables and store the result in a variable called finalPrice. Use parseFloat to treat the inputs as decimal values.stores

4 lines
41.

Write a statement that multiplies two variables, price and quantity, and stores the result in a variable called totalCost. Use parseFloat to treat the inputs as decimal values, and use prompt() to get the inputs.

4 lines
42.

Which of the following code snippets correctly calculates the interest by multiplying principalAmount, rateOfInterest, and timePeriod, and stores the result in a variable called interest? It also uses parseFloat to treat the inputs as decimal values, and window.prompt() to get the inputs.

a)

b)

c)

d)

43.

Which of the following code snippets correctly calculates the total cost by multiplying pricePerItem and quantity, then adding tax, and stores the result in a variable called totalCost? It also uses parseFloat to treat the inputs as decimal values, and window.prompt() to get the inputs.

a)

b)

c)

d)

44.

What will be the output of parseInt("100.5 apples")?

a)

100.5

b)

100

c)

NaN

d)

0

45.

Which of the following is a valid way to declare a variable in JavaScript?

a)

var myVar = 10;

b)

let myVar = 10;

c)

const myVar = 10;

d)

All of the above

46.

In MS Access, which object is used to create a user interface for data entry?

a)

Form

b)

Table

c)

Query

d)

Report

47.

What will be the output of parseInt("12.34abc")?

a)

12.34

b)

12

c)

NaN

d)

34

48.

Which of the following is NOT a valid way to declare a variable in JavaScript?

a)

var myVar = 10;

b)

let myVar = 10;

c)

const myVar = 10;

d)

declare myVar = 10;

49.

If a user inputs "3.14 pies" and parseFloat is used, the result will be:

a)

3.14

b)

3

c)

NaN

d)

pies

50.

What will be the output of "5" + 3 in JavaScript?

a)

8

b)

53

c)

NaN

d)

5

51.

In MS Access, which of the following is used to filter records?

a)

Sort

b)

Query

c)

Form

d)

Report

52.
What surrounds a string?
a)
Quotations
b)
Curly Brackets
c)
Parenthesis
d)
Square Brackets
53.
To display writing on the screen you must include this direction;
a)
Document Write
b)
documentWrite
c)
document.write( )
d)
document.write
54.
A variable;
a)
Expresses a true false statement
b)
stores a string, number, or boolean, and gives it a specific, case-sensitive name
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
55.

The rows in a database are called:

a)

Records

b)

Fields

c)

Attribute

d)

Coloum

56.

Which of the following is not a valid JavaScript variable name?

a)

2names

b)

_first_and_last_names

c)

FirstAndLast

d)

None of the above

57.

Which of the following is the correct syntax to display "Letsfindcourse" in an alert box using JavaScript?

a)

alert-box("Letsfindcourse");

b)

confirm("Letsfindcourse");

c)

msgbox("Letsfindcourse");

d)

alert("Letsfindcourse");

58.

What will be the output of the following Javascript code?

var string1 = "Hello World";

var intvalue = 30;

alert( string1 + intvalue );

a)

Hello World 30

b)

30

c)

Hello World30

d)

Exception

59.

Which symbol is used for comments in Javascript?

a)

\\

b)

//

c)

\* *\

d)

\* */

60.

What are the types of Pop up boxes available in JavaScript?

a)

Alert

b)

Prompt

c)

Confirm

d)

All of the above

61.

What is the primary purpose of the <frameset> tag in HTML?

a)

To define the structure of a webpage

b)

To divide a webpage into multiple sections

c)

To apply styles to a webpage

d)

To create hyperlinks

62.

Which HTML element is replaced by `<frameset> in a frameset-based page?

a)

<html>

b)

<head>

c)

<body>

d)

<meta>

63.

What is the correct syntax for defining a frameset with two horizontal frames?

a)

<frameset rows="50%, 50%">`

b)

<frameset cols="50%, 50%">

c)

<frameset horizontal="50%, 50%">

d)

<frameset frame="50%, 50%">

64.

How do you define three vertical frames in HTML?

a)

`<frameset rows="33%, 33%, 33%">` 

b)

`<frameset cols="33%, 33%, 33%">` 

c)

`<frameset cols="33%, 33%, 34%">` 

d)

Both b and c

65.

Which attribute of the `<frameset>` tag is used to define the number of columns?

a)

rows

b)

cols

c)

column

d)

grid

66.

What does the ``<frame>`` tag do?

a)

Defines the contents of each frame

b)

Divides the page into multiple sections

c)

Embeds multimedia files

d)

Links external stylesheets

67.

In the syntax `<frameset rows="30%, 70%">`,what does the 30% and 70% indicate?

a)

Width of the frames

b)

Height of the frames

c)

Both width and height

d)

Space between frames

68.

Which attribute is used in a frame to prevent scrolling?

a)

noscroll

b)

scrolling

c)

preventscroll

d)

disable_scroll

69.

A special symbol or sign that indicates the remaining size of the frame.

a)

&

b)

@

c)

*

d)

$

70.

Which view of table is used to insert a field name in table.

a)

Date sheet

b)

Design

c)

Database

d)

all of the above

71.

The default extension of Ms-Access file is __________

a)

.acccdb

b)

.accdb

c)

.abccd

d)

.acbdc

72.

Which datatype will be used to generate numbers automatically while inserting data?

a)

Number

b)

Auto number

c)

Automatic Number

d)

Integer

73.

Each item from this list is classified as...

Name

Birthdate

Social Security No.

Street

City

State

Zip

a)

table

b)

record

c)

field/Attribute Name

d)

Data Type

74.

Which data type would be most suitable for the 'Price' field?

a)

Currency

b)

Date/Time

c)

Yes/No

d)

Memo

75.
The ___________field is exactly like number fields, but formatted to display decimal places and a currency symbol.
a)
text
b)
currency
c)
name
76.

A unique identifier used in creating a table that assures there will be no duplicate data.

a)

Primary Key

b)

Query

c)

Data Type

77.

__________allows to divide the web page into several independent parts.

a)

Frameset

b)

Frame

c)

Nested Frame

78.

________is defined as a set of frames inserted in an HTML web page

a)

Frameset

b)

Frame

c)

Nested Frame

79.

If you need to display a message in browser you have to select following syntax

a)

Object.method()

b)

document.write()

c)

window.prompt

d)

print()

80.

_________________are the name assigned to memory location that can be used for storing data

a)

JavaScript

b)

Variables

c)

Operators

81.

variable can have a short name like x or more descriptive name like Fname

a)

True

b)

False

82.

The __________ attribute indicates the number of columns in a frameset.

a)

TABLE

b)

VERT

c)

COLUMNS

d)

COLS

83.
A JavaScript file has an extension name of
a)
.jscp
b)
.js
c)
.css
d)
.Jp
84.
Which 1 of the following symbols is used for JavaScript comments?
a)
\\
b)
^
c)
?
d)
//
85.
How do I declare a new variable?
a)
var newVariable = 5;
b)
Variable int = new Variable();
c)
var 5 = myVariable;
d)
int var = 5;
86.

Variable x has a value of 5. Variable y has a value of 7

how does x < 7 && y > 6 evaluate ?

a)

True

b)

false

c)

typeError

d)

undefined

87.

which of these is not a logical operator ?

a)

!

b)

&

c)

&&

d)

||

88.
What type of variable is
var typeOfApples="Fuji";
a)
Int
b)
Float
c)
Boolean
d)
String
89.
Which message will the user see?
a)
"Hello user"
b)
No message
c)
"Goodbye user"
d)
"message + user"
90.

Which of the following platform(s) can be used to run Javascript Code

a)

Google Chrome

b)

Firefox

c)

Microsoft Edge

d)

Safari

91.

His name is George and he is more than 16 years old

Which of the following is the best way to write the above statement?

a)

if (name != "George" && age > 16 )

b)

if (name == "George" && age > 16 )

c)

if (name = "George" || age > 16 )

d)

if (name == "George" || age > 16 )

92.

A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?

a)

var numApples == 20;

b)

20 = numApples;

c)

var numApples = 20;

d)

var num apples = 20;

93.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
94.
HTML stands for...
a)
Hyper Text Markup Language
b)
High Tech Marking Language
c)
High Tech Modem Language
d)
Hyper Tech Markup Lexicon