TLE Computer Programming (Reviewer for 3rd QTR)

0.0(0)
Studied by 45 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Reviewer for 3rd QTR (For comproggers only)

Last updated 12:29 PM on 2/23/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Name 5 position values

Static (default), relative, absolute, fixed and sticky. These are values that determine how an element is positioned in relation to its normal position in a document.

2
New cards

How to place an element in the middle? (6 codes/commands)

Position: absolute;

Top: 0px;

Bottom: 0px;

Right: 0px;

Left: 0px;

Margin: auto;

3
New cards

(True or False) If you input the element “input type text”. When executing it, does it require a space in between?

False, there shouldn’t be no space in between. It should be written as "input[type=text]" without spaces.

4
New cards

(True or False) Is the command “$num1” correct?

False, the command $num1 alone is incorrect in PHP because it is just a variable without assignment or usage. Instead, it should be implemented properly as shown in the picture:

<p><strong>False,</strong> the command <code>$num1</code> alone is incorrect in PHP because it is just a variable <strong>without assignment or usage.</strong> Instead, it should be implemented properly as shown in the picture:</p>
5
New cards

State the definition of relative value

It’s a value that allows an element to be positioned relative to its normal position in the document flow, enabling adjustments of its location without affecting the layout of surrounding elements.

6
New cards

What are the commands/codes to start and end the PHP script? (Tip: 2 codes)

“<?php” is to start the PHP script and “?>” to end.

7
New cards

(True or False) Is the command ecko "T.L.E.”; correct?

False, the command ecko "T.L.E."; is incorrect in PHP because ecko is not a valid PHP command.

8
New cards

What is an echo command?

It can be used to display text, HTML, or variables.

9
New cards

(True or False) Can variable names contain letters, numbers, or an underscore?

True, variable names can contain letters, numbers, and underscores, but must begin with a dollar sign.

10
New cards

Name the 5 arithmetic operators in PHP

Addition, subtraction, multiplication, division, and modulus (percentage).

11
New cards
<p>Display the following output:</p>

Display the following output:

The sum is 50
The difference is 12
The product is 50
The quotient is 1.6315789473684
The remainder is 12

12
New cards

Is the command “<?” correct?

False, the command <? alone is incorrect in PHP. It should be written properly as shown in the picture: (Although <? might work in some instances, it’s not required to use the command. Instead, use <?php for better compatibility).

<p><strong>False,</strong> the command <code>&lt;?</code> alone is incorrect in PHP. It should be written properly as shown in the picture: (Although &lt;? might work in some instances, it’s not required to use the command. Instead, use &lt;?php for better compatibility).</p>
13
New cards

What is the purpose of $_GET Function?

It’s a function in PHP that is used to collect data sent in the URL query string, allowing access to variables passed via the HTTP GET method.

14
New cards

Define the single line comment

It’s a comment in PHP that starts with // or # and is ignored during execution.

15
New cards

What is the purpose of $_POST Function?

It’s a function in PHP that is used to collect data from the HTML form that uses the post method.

16
New cards

Name the 8 comparison operators (PHP)

It’s classified into 8 operators, these are: == (equal), === (identical), != (not equal), !== (not identical), > (greater than), < (less than), >= (greater than or equal to), and <= (less than or equal to).

17
New cards

Name the 3 If Else statement

It’s classified into 3 statements, these are: if statement, if...else statement, and if...else...if statement.

18
New cards

If the element “=” is equal, then what do we call “==”?

The equality operator. It’s used to compare 2 values.

19
New cards

Name the 3 logical operators

The 3 logical operators in PHP are: && (and), || (or), and ! (not).

20
New cards

What is a concatenation operator?

It’s used to join two strings or values together. It’s symbolized by a period (.)

Explore top notes

note
Chapter 28: Forensic Psychiatry
Updated 1078d ago
0.0(0)
note
4.3 Sales forecasting
Updated 1327d ago
0.0(0)
note
Apush Review
Updated 681d ago
0.0(0)
note
Mongols
Updated 519d ago
0.0(0)
note
Pain Management
Updated 408d ago
0.0(0)
note
The Respiratory System
Updated 1083d ago
0.0(0)
note
Chapter 28: Forensic Psychiatry
Updated 1078d ago
0.0(0)
note
4.3 Sales forecasting
Updated 1327d ago
0.0(0)
note
Apush Review
Updated 681d ago
0.0(0)
note
Mongols
Updated 519d ago
0.0(0)
note
Pain Management
Updated 408d ago
0.0(0)
note
The Respiratory System
Updated 1083d ago
0.0(0)

Explore top flashcards

flashcards
5A Vocab
53
Updated 1153d ago
0.0(0)
flashcards
US History Chapter 9 Review
36
Updated 1139d ago
0.0(0)
flashcards
E1 Ortho- Cervical
102
Updated 407d ago
0.0(0)
flashcards
Ism’s Vocab
59
Updated 401d ago
0.0(0)
flashcards
World Religions Q3 Content Test
164
Updated 1125d ago
0.0(0)
flashcards
5A Vocab
53
Updated 1153d ago
0.0(0)
flashcards
US History Chapter 9 Review
36
Updated 1139d ago
0.0(0)
flashcards
E1 Ortho- Cervical
102
Updated 407d ago
0.0(0)
flashcards
Ism’s Vocab
59
Updated 401d ago
0.0(0)
flashcards
World Religions Q3 Content Test
164
Updated 1125d ago
0.0(0)