Full Mock Interview Study Packet

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/124

flashcard set

Earn XP

Description and Tags

Flashcards covering basic, intermediate, and advanced concepts in GitHub, PHP, and HTML

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

125 Terms

1
New cards

Git

A distributed version control system for tracking changes in code.

2
New cards

GitHub

A cloud-based hosting service for Git repositories that adds collaboration features (PRs, issues, Actions).

3
New cards

git clone <repo-url>

Command to clone a repository from GitHub.

4
New cards

git fetch

Downloads changes from a remote repository but doesn’t merge them into the current branch.

5
New cards

git pull

Downloads changes from a remote repository and merges them into the current branch in one step.

6
New cards

Git Branch

An independent line of development within a Git repository.

7
New cards

Resolving a Merge Conflict (Git)

Open the conflicted file, edit manually to choose desired changes, then git add the file and git commit.

8
New cards

git reset

Moves the branch pointer to a specified commit, potentially discarding subsequent history.

9
New cards

git revert

Creates a new commit that undoes the changes introduced by a previous commit, preserving history.

10
New cards

GitHub Fork

A copy of a repository under your GitHub account, allowing independent development.

11
New cards

Git Clone

A local copy of a repository on your machine, including all its files and history.

12
New cards

git log

Command used to check the commit history of a Git repository.

13
New cards

.gitignore

A file listing untracked files and directories that Git should ignore (e.g., logs, node_modules).

14
New cards

Pull Request (PR)

A request to merge code changes from one branch into another branch of a repository.

15
New cards

git merge

Combines the history of two branches by creating a new merge commit.

16
New cards

git rebase

Applies commits from one branch on top of another branch, creating a linear history.

17
New cards

Squashing Commits (Git)

Using git rebase -i HEAD~n and marking commits as squash to combine multiple commits into a single one.

18
New cards

GitHub Actions

A CI/CD (Continuous Integration/Continuous Deployment) service for automating workflows like testing and deployment directly within GitHub.

19
New cards

Contributing to Open-Source (GitHub)

The process involves: Fork → Clone → Create branch → Commit → Push → Open PR.

20
New cards

Rolling back a commit while keeping history (Git)

Use the git revert command.

21
New cards

Git Tags

Used to mark specific points in the repository's history, typically for releases (e.g., v1.0.0).

22
New cards

git diff commit1 commit2

Command to see the differences between two specific commits.

23
New cards

git stash

Temporarily saves changes that are not ready to be committed, allowing you to switch branches or work on something else. Use git stash save "msg" and apply with git stash pop.

24
New cards

GitHub Projects

A project management tool integrated with GitHub repositories for organizing and tracking work.

25
New cards

Branch Protection Rules (GitHub)

Configured in repository settings → Branches → Protection rules to enforce certain workflows (e.g., requiring reviews).

26
New cards

Managing Secrets in GitHub Actions

Secrets are stored in repository settings → Secrets and accessed in workflows via secrets.NAME.

27
New cards

Handling Large Files in GitHub

Use Git LFS (Large File Storage) for tracking large files efficiently.

28
New cards

Enforcing Code Quality (GitHub)

Achieved using linters, GitHub Actions checks, and required status checks.

29
New cards

Bare Git Repository

A repository that does not have a working directory, typically used for remote hosting (e.g., on a server).

30
New cards

Non-bare Git Repository

A repository that includes a working directory, visible and modifiable files, used for local development.

31
New cards

Git Submodule

A repository embedded inside another repository as a sub-directory.

32
New cards

GitFlow Branching Strategy

A branching model using master for releases, develop for integration, and feature/hotfix branches for specific work.

33
New cards

Signing Git Commits

Done using GPG keys with the git commit -S command to verify authenticity.

34
New cards

Deleting a Git Branch (Local)

Use git branch -d branch-name.

35
New cards

Deleting a Git Branch (Remote)

Use git push origin --delete branch-name.

36
New cards

git cherry-pick

Applies a specific commit from one branch onto another branch.

37
New cards

Handling Monorepos in GitHub

Use GitHub Actions with path filters, separate directories, and submodules if needed to manage large repositories containing multiple projects.

38
New cards

PHP

A server-side scripting language mainly used for web development.

39
New cards

echo (PHP)

Outputs strings, generally faster, and has no return value.

40
New cards

print (PHP)

Outputs strings, returns 1, and can be used in expressions.

41
New cards

== (PHP)

Compares values for equality, performing type juggling if necessary.

42
New cards

=== (PHP)

Compares values and types for strict equality, no type juggling.

43
New cards

Handling POST data (PHP)

Access submitted data using $_POST['fieldname'].

44
New cards

PHP Sessions

Server-side storage for user-specific data that persists across multiple requests.

45
New cards

require (PHP)

Includes a file; if the file is missing, it throws a fatal error and stops script execution.

46
New cards

include (PHP)

Includes a file; if the file is missing, it throws a warning but continues script execution.

47
New cards

PHP Default Session Storage

Server temporary files.

48
New cards

Checking Variable Type (PHP)

Use gettype() or var_dump() functions.

49
New cards

PHP Superglobals

Built-in arrays that are always available in all scopes, such as $_GET, $_POST, $_SESSION.

50
New cards

PHP Code in HTML

Started using the <?php ... ?> tags.

51
New cards

PDO (PHP)

PHP Data Objects, a database abstraction layer providing a consistent interface for accessing databases.

52
New cards

Preventing SQL Injection (PHP)

Use prepared statements with PDO or MySQLi.

53
New cards

PHP Traits

A mechanism for code reuse in multiple independent classes within single inheritance languages.

54
New cards

Handling File Uploads (PHP)

Use the $_FILES superglobal with move_uploaded_file() function.

55
New cards

PHP Namespaces

A way to group related classes, interfaces, functions, and constants to prevent naming conflicts.

56
New cards

GET request (PHP)

Appends data in the URL (query string), suitable for non-sensitive data and idempotent requests.

57
New cards

POST request (PHP)

Sends data in the request body, suitable for sensitive data or data that changes server state.

58
New cards

Connecting to a database (PHP PDO)

Example: $pdo = new PDO("mysql:host=localhost;dbname=test", "user", "pass");.

59
New cards

PHP Magic Methods

Predefined methods in PHP classes that start with __ (double underscore), such as __construct, __destruct, __get.

60
New cards

Error Handling (PHP)

Use try...catch blocks for exceptions, error_reporting() to control error levels, and custom error handlers.

61
New cards

isset() (PHP)

Checks if a variable exists and is not NULL.

62
New cards

empty() (PHP)

Checks if a variable is considered "empty" (e.g., "", 0, 0.0, "0", NULL, FALSE, array()).

63
New cards

Dependency Injection (PHP)

A design pattern where dependencies are passed into an object (usually via its constructor or setter methods) rather than being created inside the object.

64
New cards

PHP Garbage Collection

Cleans up cyclic references using a reference counting mechanism.

65
New cards

Composer (PHP)

A dependency manager for PHP, used to declare and install libraries your project depends on.

66
New cards

Securing PHP Applications

Key practices include validating input, escaping output, using prepared statements, and implementing CSRF tokens.

67
New cards

JWT Authentication (PHP)

Encode user data into a token on login, and verify the token's signature on subsequent requests.

68
New cards

Synchronous PHP

Normal PHP execution where operations block until completed.

69
New cards

Asynchronous PHP

PHP execution where operations can run in the background without blocking the main thread (possible with libraries like ReactPHP, Swoole).

70
New cards

PHP Performance Optimization

Methods include opcode caching (OPcache), using PHP-FPM, database indexing, and caching layers (e.g., Redis, Memcached).

71
New cards

REST API (PHP context)

Typically uses JSON over HTTP, lightweight, and uses standard HTTP methods.

72
New cards

SOAP API (PHP context)

XML-based, utilizes strict contracts (WSDL), and often involves more overhead.

73
New cards

PSR (PHP)

PHP Standards Recommendations, a set of coding standards and guidelines developed by the PHP Framework Interop Group (PHP-FIG).

74
New cards

Password Hashing (PHP)

Use the built-in functions password_hash() to hash passwords and password_verify() to check them.

75
New cards

HTML

HyperText Markup Language, a standard for creating web pages.

76
New cards

XHTML

Extensible HyperText Markup Language, a stricter XML-based version of HTML where all tags must be closed and attributes quoted.

77
New cards

Semantic HTML

Using HTML tags that convey meaning about the content they contain, such as <header>, <article>, <footer>, enhancing accessibility and SEO.

78
New cards

<div> (HTML)

A block-level generic container for content.

79
New cards

<span> (HTML)

An inline generic container for content, typically used for styling small portions of text.

80
New cards

Embedding an Image (HTML)

Use the <img> tag with src attribute for the image path and alt attribute for descriptive text, e.g., <img src="path" alt="desc">.

81
New cards

Block-level element (HTML)

Takes up the full width available, starts on a new line, and allows width/height/margin/padding (e.g., <div>).

82
New cards

Inline element (HTML)

Flows with the text content, only takes up as much width as necessary, and does not allow explicit width/height (e.g., <span>).

83
New cards

Inline-block element (HTML)

Flows with text like an inline element but allows setting width, height, and vertical margins/padding (e.g., <img>).

84
New cards

<ul> (HTML)

Unordered list, typically rendered with bullet points.

85
New cards

<ol> (HTML)

Ordered list, typically rendered with numbers or letters.

86
New cards

<dl> (HTML)

Description list, used for defining terms and their descriptions.

87
New cards

Creating a Hyperlink (HTML)

Use the <a> (anchor) tag with the href attribute pointing to the URL, e.g., <a href="url">link</a>.

88
New cards

Self-closing tags (HTML)

HTML tags that do not require a separate closing tag because they don't contain content, e.g., <br>, <hr>, <img>.

89
New cards

alt attribute (HTML <img>)

Provides alternative text for an image, important for accessibility (screen readers) and SEO, displayed if the image fails to load.

90
New cards

<strong> (HTML)

Gives semantic importance to text, indicating stronger emphasis.

91
New cards

<b> (HTML)

Applies bold styling to text without conveying any semantic importance.

92
New cards

<section> (HTML)

Groups related content thematically.

93
New cards

<article> (HTML)

Represents self-contained, independent content that could be distributed and reused independently (e.g., a blog post, news story).

94
New cards

Relative URL

Specifies a path relative to the current page or domain.

95
New cards

Absolute URL

Provides the full, complete path to a resource, including the scheme (e.g., https://).

96
New cards

<link> (HTML)

Used to link to external resources, typically stylesheets (<link rel="stylesheet" href="style.css">).

97
New cards

<a> (HTML)

Used to create hyperlinks to other web pages or resources.

98
New cards

<thead> (HTML)

Defines the heading content of a table.

99
New cards

<tbody> (HTML)

Defines the body content of a table.

100
New cards

<tfoot> (HTML)

Defines the footer content of a table.