technical questions Flashcards
(82 cards)
What is URI
A URI (Uniform Resource Identifier) is a string of characters used to uniquely identify a resource on the internet or a local system. It provides a way to locate and access resources, such as web pages, files, or services. A URI can be classified into two types:
URL (Uniform Resource Locator): A specific type of URI that not only identifies a resource but also provides a way to locate it (e.g., an address to access a resource on the web). For example, https://www.example.com is a URL.
URN (Uniform Resource Name): A URI that uniquely identifies a resource but doesn’t give its location. An example could be urn:isbn:0451450523, which identifies a book by its ISBN but doesn’t tell you where to find it.
What are examples of block elements in HTML?
H1/2 etc., li, p, div
What are examples of inline elements in HTML?
img, span, text formatting elements, a, button
What is an operating system?
Interface between the human and the machine. The software that allows normal human beings to use the computer hardware. It also provides a software development kit (or SDK) that allows other developers to create programs/applications for the computer
What is Linux?
Open-source operating system mainly used on servers and to manage servers. Also manages multi-users environment - supports many users logging in at the same time
What’s a virtual machine?
An operating system running on top of your existing operating system as an independent program. E.g. VMWare, WINE, Repl.it
what is sudo
sudo basically means “run as Administrator”.
What is the “native language” of a computer?
Electrical signals
What is a kernel (in an OS)?
A kernel is the core component of an operating system (OS) that manages communication between hardware and software. It acts as a bridge between applications and the computer’s hardware, handling process management, memory management, device drivers, and system security.
What is async?
where a program can perform tasks concurrently, without waiting for one task to complete before starting another.
tasks can run in the background, allowing the program to continue executing other operations while waiting for slower tasks to finish.
What is a server?
A server is a specialized computer or system that provides services or resources to other computers (clients) over a network. It listens for requests from clients and responds with the requested data or action.
What is JSX?
JSX looks like HTML and has the same functionality as HTML elements but they are JavaScript in disguise. When you run a React program, the JSX will be converted to JavaScript.
What is transpilation in the context of React?
Process where React code is translated into browser-compatible JS
How is the JS in Express and React different?
Express uses CommonJS, while React uses ES6 JavaScript
When does a React component re-render itself?
Whenever the component’s state or prop changes
What does strongly typed mean?
In a strongly typed language, the type of a variable is explicitly defined, and you cannot perform operations that are inconsistent with the variable’s type.
What is assembly?
Assembly, or assembly language, is a low-level programming language that is closely related to the machine code specific to a computer’s architecture.
What’s the difference between compiled and interpreted languages
For compiled, the code is translated to machine code before execution. For interpreted, code is executed line by line at runtime. For compiled, errors are detected at compilation time. For interpreted, errors are detected at runtime.
How is Java different from traditional compiled languages?
Java uses a virtual machine for each operating system. Java code is compiled for the virtual machine instead. So any Java code you write works for any operating system that supports Java
What executes Java code?
The Java Virtual Machine, aka the Java Runtime Environment (JRE)
What are frequent uses of Java?
Backend operations, big data processing
What’s the difference between primitive and reference data types?
Primitive:
- Actual values stored directly in memory
- Not objects, hence no methods
Reference
- Stores memory reference to an object
- Has methods
What is UML?
A standardised visual language used to model and design software systems e.g. class diagram
What are the four access modifiers in Java and how are they different?
Package (None specified): any functions in the same package can access
Private: Only functions in the same class can access
Protected: Only functions in the same class or children classes can access
Public: Any functions can access