General Flashcards
what is scope?
Scope refers to where a variable or function is accessible in your program.
What does JSON stand for?
Javascript object notation.
What is JSON?
JSON is a language-independent data interchange format, because of it’s simple text-based data structure is similar to that found in most popular programming languages, it makes it very good for communicating data between services.
why do we use JSON?
its data structure is very similar to that found in most programming languages so it’s easy to parse and create JSON objects in most languages, making it a good data interchange format. it’s also very human-readable.
describe the JSON structure
JSON is built on two structures, a collection of key-value pairs and a collection of values. python supports very primitive data types.
What is AJAX?
AJAX is a set of technology; It is a technique of dynamically updating parts of UI without having to reload the page.
how does AJAX work?
in Ajax, the request are sent to the server by using XMLHttpRequest objects. The response is used by javascript code to dynamically alter the current page.
What are cookies?
Cookies send(sets) state information to a users browser, and returns the state information to the origin site when requested. This state information can be anything, from authentication, identification, shopping cart information, account information. Prone to manipulation.
What is a session
a session is much like a cookie in the sense that it stores/set state information. The only difference is that it stores it in a session file on the server side instead of th e browser, and its generally more secure. Sessions expire when the user closes the browser. We often use cookies to set session ids.
What is object-oriented programming?
Object oriented programming is a programming style where your program is broken down into smaller self contained code called objects. objects are defined by classes and contain all the attributes that describe the state of the object and methods to describe the behavior of the object. We put these smaller units of code together to construct larger program.
What are the core fundamentals of OOP? hint P.E.A.I
Polymorphism, Encapsulation, Abstraction, Inheritance.
What is Unicode?
Unicode is an international encoding standard that encapsulates written language and symbols from around the world.
What is utf-8?
utf-8 is a type of encoding. a way of storing the code points of Unicode in a byte form.
What is the difference between synchronous and asynchronous
Synchronous execution refers to code executing in sequence. Asynchronous execution refers to execution that doesn’t run in the sequence it appears in the code.
An example of a aysnc non-blocking server is Node
What is the difference between blocking and non-blocking
Blocking refers to operations that block further execution until that operation finishes. Non-blocking refers to code that doesn’t block execution.