0% found this document useful (0 votes)
36 views11 pages

RTCAMP

The questions covered topics related to PHP, MySQL, web security, sessions, cookies, form validation, HTTP and HTTPS, encryption, hashing, Git, GitHub, JavaScript, React.js, and more. Specific questions asked about fetching tweets from Twitter, storing PHP sessions without cookies, man-in-the-middle attacks, process vs threads, CDNs, Composer files, encryption vs hashing, CAPTCHA creation, server load management, data structures, database access in PHP, and others. Additional questions focused on Git commands, using Git without GitHub, React vs Vue, virtual DOM, media queries, and differences between jQuery, JavaScript and Java.

Uploaded by

qelebo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views11 pages

RTCAMP

The questions covered topics related to PHP, MySQL, web security, sessions, cookies, form validation, HTTP and HTTPS, encryption, hashing, Git, GitHub, JavaScript, React.js, and more. Specific questions asked about fetching tweets from Twitter, storing PHP sessions without cookies, man-in-the-middle attacks, process vs threads, CDNs, Composer files, encryption vs hashing, CAPTCHA creation, server load management, data structures, database access in PHP, and others. Additional questions focused on Git commands, using Git without GitHub, React vs Vue, virtual DOM, media queries, and differences between jQuery, JavaScript and Java.

Uploaded by

qelebo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

The questions were regarding PHP, MySQL and Web security.

Like about sessions,


cookies, form validation, HTTP and HTTPS, encryption, hashing, and various errors
in PHP.

Discuss on my old projects which I was done.


Discuss on my assignment ( Twitter ) - How to fetch all the tweets ( Millions ) of the
twitter public user?
PHP - Session, Cookies, GET Method, POST Method and Man in Middle Attack
What are Process and Thread?
What is the Composer and files of it?
What is CDN? What are the advantages of it?
What is Git? Basic commands of Git. What is function/difference of each command
( add, commit and push )?

How can we write image slider with vanilla javascript?


Answer Question
What are client side and server side validation?
1 Answer
Which is better React JS or Vue JS? Why?
Answer Question
Can we store PHP session without cookies?
Answer Question
What is virtual DOM?
Answer Question

Basics of server side scripting and client side scripting.


1 Answer
What is media query?
2 Answers
Github commands and functionalities. (like pull, push, fork, blame etc.)\\\

git and github, web dev, php, resum

Some React.js basic questions. react is faster or javascript


Answer Question
difference between git and GitHub, can we use git without github.
Answer Question
What is a web server , some questions related to the session and cookies, session id
, and if we decline cookies do our session get stored

What is the difference between git and github? Where does git stores data? What is
the gitignore file? For storing passwords we should use excryption or hashing? How
does the remember me function stores data?

From Git and Github -One logical -Web Traffic and optimization -Captcha -Javascript
-PHP -Database access in PHP -React, and someother web related topic

git n github difference , cookies session in depth questions, hashing cryptography

Some data structure-related questions. - Validation, web request, session, cookie,


encryption, hashing, HTTP, Web security, Js, Dom, HTML5, Debugging, and CSS
are some of the topics covered. - Previous domain-related questions. - How do you
make a video quality controller similar to the one on YouTube? How would you go
about automating quality control? - How do you create a captcha in the absence of a
database, session, or cookies?

Tell me the names of some servers you've used?

Following are the Questions that I got asked 1. JavaScript and React are Compiled
or Interpreted languages ? 2. Can we use git without GitHub ? 3. How to validate
email ? 4. what is encryption , Decryption and hashing ? what we use for password
storing in database? 5.How to design Captcha from scratch ?

1. Can we use Git without GitHub? 2. What is the difference between Git and
GitHub? 3. Where does Git store data? 4. Define encryption and hashing. 5.
Suppose your site is experiencing high traffic, causing lag. How would you manage it
to reduce server load? 6. Lift use which data structure

how would you generate a otp generator system

. git-github 2. php basic 3. wordpress 4. html/css 5. js

-question like form validation, web request, session, cookie, encryption, hashing etc.

How to create a video quality controller like the one on YouTube?

Is there anything in JavaScript which can be done by JQuery and not by JavaScript

How to export a contacts backup in csv format without user intervention? 2. Is there a
way to tackle SQL Injection attack? 3. What are rainbow tables?

I was asked asked to explain difference between jQuery, JavaScript and Java.

PHP, MySQL, and Web Security:

Sessions, cookies, form validation, HTTP, and HTTPS.


Encryption, hashing, and various errors in PHP.
Fetching tweets from Twitter's public user.
Storing PHP sessions without cookies.
Man-in-the-middle attacks.
Process and thread in the context of web development.
Basics of server-side scripting and client-side scripting.
Web server-related questions.
Server load management during high traffic.
Data structure-related questions.
Web request handling.
Database access in PHP.
Web security concepts (e.g., validation, encryption, hashing).
Git and GitHub:

Git basic commands (add, commit, push).


Differences between Git and GitHub.
Where Git stores data.
Gitignore file.
Using Git without GitHub.
Web traffic and optimization in Git and GitHub.
Forking, blaming, and other GitHub functionalities.

JavaScript and React.js:

Writing an image slider with vanilla JavaScript.


Client-side and server-side validation.
React.js vs. Vue.js.
React.js vs. JavaScript speed.
Virtual DOM.
Media queries.
JavaScript vs. jQuery capabilities.
Video quality controller creation.
Using jQuery, JavaScript, and Java – differences.

Miscellaneous:
CDN and its advantages.
What is Composer and its files?
Differences between encryption, decryption, and hashing.
Creating a captcha without a database, session, or cookies.
Quality control automation.
Generating an OTP system.
Exporting contacts backup in CSV format without user intervention.
Tackling SQL Injection attacks.
Rainbow tables.
Names of servers you've used.

GIT::Git
is a version-control system for tracking changes
in computer files and coordinating work on those files
among multiple people.A Version Control System (VCS)
allows you to revert files back to a previous state, revert
the entire project back to a previous state, review
changes made over time, see who last modified
something that might be causing a problem, who
introduced an issue and when, and more. Using a VCS
also means that if you screw things up or lose files, you
can generally recover easily.
A repository a.k.a. repo is nothing but a collection of
source code.

There are four fundamental elements in the Git Workflow

Working Directory, Staging Area, Local


Repository and Remote Repository.
If you consider a file in your Working Directory, it
can be in three possible states.
1. It can be staged. Which means the files with the
updated changes are marked to be committed to the
local repository but not yet committed.

1. It can be modified. Which means the files with the


updated changes are not yet stored in the local
repository.
1. It can be committed. Which means that the changes
you made to your file are safely stored in the local
repository.
 git add is a command used to add a file that is in the

working directory to the staging area.


 git commit is a command used to add all files that are

staged to the local repository.


 git push is a command used to add all committed files in

the local repository to the remote repository. So in the


remote repository, all files and changes will be visible to
anyone with access to the remote repository.
 git fetch is a command used to get files from the remote

repository to the local repository but not into the working


directory.
 git merge is a command used to get the files from the local

repository into the working directory.


 git pull is command used to get files from the remote

repository directly into the working directory. It is


equivalent to a git fetch and a git merge .
.gitignore

So what is it?

tells git which files (or patterns) it should ignore.


.gitignore

It's usually used to avoid committing transient files from


your working directory that aren't useful to other
collaborators, such as compilation products, temporary
files IDEs create, etc.

Can you use Git without GitHub?

The short answer is yes, you can. Git is a tool for revision control. GitHub is an
online service that allows you to store, manage, and share Git repositories in the
cloud. You can use Git with online services other than GitHub, with an in-house
server, or on your local computer without any server at all.

What is a Session?
Sessions are used to temporarily store data on the server so that it can be utilized on a
variety of different websites. To put it more simply, a session is the amount of time
that a user spends engaged in a particular activity. This period of time begins when
the user accesses any website or program and continues until the user exits the
application or shuts down the computer.

Because the HTTP protocol does not keep track of the user's status, the web server
does not recognize the user as they are navigating the apps available on the internet.
The information that the user enters into the program on the home page or any other
page will not be moved to any other pages in the application. Sessions are what are
used to remove this limitation from the game. Session variables, which can be of any
sort, are where the user's data can be saved if they are chosen to do so. The data that is
stored by session variables is either encrypted or converted to a binary form on the
server, which protects the data from being accessed by a third party.

When the user of the application logs out of that application or closes down their
computer, the session value is automatically detached. It is necessary for the session
values to be saved in the database if they are to be retained for a longer period of time.

Imagine a website containing two pages: main and water. Suppose a visitor
sees main first and then moves on to water. HTTP is a stateless protocol. So, if a typical
web server is managing this site, any knowledge gathered at main is lost when the visitor
browses over to water. In other words, water cannot take advantage of any information
that the visitor might have provided at main.

To get around this limitation, application servers detect when a visitor first enters a
website. At that point, the application server starts a session for this visitor. In the
preceding example, when the visitor requests the main page, the application server starts
a session. The website designer can use main to gather information about the visitor and
store that information in session variables. The information in session variables is
available to all subsequent pages. So, for example, if Bob provides his age to main,
and main's designer wrote the age to a session variable, then water could easily access
Bob's age.

Session variables contain values available for the duration of the session. When the
session ends, the application server destroys the session variables associated with that
session. Each session variable consumes memory on the application server, so creating
unnecessary session variables can hurt performance.

WebCenter Sites automatically creates some session variables; the website developer
can optionally create others.

The application server can maintain sessions on a cluster.

Cookies are small pieces of data stored on a user's device by the web browser.
They are sent between the browser and the server with each request, allowing
the server to identify and track the user. Cookies can be used for various
purposes, such as session management, personalization, tracking user
behavior, and more.

What is HTTP?
An HTTP stands for Hypertext Transfer Protocol. The HTTP protocol provides
communication between different communication systems. When the user
makes an HTTP request on the browser, then the webserver sends the
requested data to the user in the form of web pages. In short, we can say that
the HTTP protocol allows us to transfer the data from the server to the client.

An HTTP is an application layer protocol that comes above the TCP layer. It
has provided some standard rules to the web browsers and servers, which
they can use to communicate with each other.

An HTTP is a stateless protocol as each transaction is executed separately


without having any knowledge of the previous transactions, which means that
once the transaction is completed between the web browser and the server,
the connection gets lost.

What is HTTPS?

The full form of HTTPS is Hypertext Transfer Protocol Secure.


The HTTP protocol does not provide the security of the data, while HTTP
ensures the security of the data. Therefore, we can say that HTTPS is a secure
version of the HTTP protocol. This protocol allows transferring the data in an
encrypted form. The use of HTTPS protocol is mainly required where we need
to enter the bank account details. The HTTPS protocol is mainly used where
we require to enter the login credentials. I

Secure Sockets Layer

The HTTPS protocol is secured due to the SSL protocol. The SSL protocol
encrypts the data which the client transmits to the server. If someone tries to
steal the information which is being communicated between the client and
the server, then he/she would not be able to understand due to the
encryption. This is the main difference between the HTTP and HTTPS that the
HTTP does not contain SSL, whereas the HTTPS contains SSL that provides
secure communication between the client and the server.

Hashing :: It is a process to convert information to a shorter fixed value


known as the key that is used to represent the original information.

Encrption:: Encryption
is the process of converting a normal readable
message known as plaintext into a garbage message or not readable
message known as Ciphertext. The ciphertext obtained from the
encryption can easily be transformed into plaintext using the encryption
key. Some of the examples of encryption algorithms are RSA, AES, and
Blowfish.
HTML:HTML stands for HyperText Markup Language. It is a standard text
formatting language used for developing web pages
HTML is a language that is interpreted by the browser and it tells the
browser what to display and how to display.

HTML elements are defined by a starting tag, may contain some content and
a closing tag. <h1>Heading 1</h1>

Tags defines how the content will be structured/ formatted,

Attributes are used along with the HTML tags to define the characteristics of
the element

<p align=” center”>Interview questions</p>, in this the ‘align’ is the attribute


using which we will align the paragraph to show in the center of the view

The class attribute is used to specify the class name for an HTML element.
Multiple elements in HTML can have the same class value. Also, it is mainly
used to associate the styles written in the stylesheet with the HTML
elements.

Multiple elements in HTML can have the same class value, whereas a value
of id attribute of one element cannot be associated with another HTML
element

How to optimize website assets loading?

 CDN hosting - A CDN or content delivery network is geographically


distributed servers to help reduce latency.
 File compression - This is a method that helps to reduce the size of an
asset to reduce the data transfer
 File concatenation - This reduces the number of HTTP calls
 Minify scripts - This reduces the overall file size of js and CSS files
 Parallel downloads - Hosting assets in multiple subdomains can help to
bypass the download limit of 6 assets per domain of all modern browsers.
This can be configured but most general users never modify these settings.
 Lazy Loading - Instead of loading all the assets at once, the non-critical
assets can be loaded on a need basis

What are forms and how to create forms in HTML?

The HTML form is used to collect the user inputs. HTML provides a <form>
tag to create forms. To take input from the user we use the <input> tag
inside the form so that all collected user data can be sent to the server for
processing. There are different input types like ‘button’, ‘checkbox’, ‘number’,
‘text’, ‘password’, ‘submit’ etc.
Some advantages of HTML5 are:-

 It has Multimedia Support.


 It has the capabilities to store offline data using SQL databases and
application cache.
 Javascript can be run in the background.
 HTML5 also allows users to draw various shapes like rectangles, circles,
triangles, etc.
 Included new Semantic tags and form control tags

. What are the New tags in Media Elements in HTML5?


 <audio> - Used for sounds, audio streams, or music, embed audio content without any
additional plug-in.
 <video> - Used for video streams, embed video content etc.
 <source> - Used for multiple media resources in media elements, such as audio, video, etc.
 <embed> - Used for an external application or embedded content.
 <track> - Used for subtitles in the media elements such as video or audio

The Document Object Model (DOM) is a programming interface for web


documents. It represents the page so that programs can change the
document structure, style, and content.

A content delivery network (CDN) is a network of interconnected


servers that speeds up webpage loading for data-heavy applications.
CDN can stand for content delivery network or content distribution
network. When a user visits a website, data from that website's server
has to travel across the internet to reach the user's computer. If the
user is located far from that server, it will take a long time to load a
large file, such as a video or website image. Instead, the website
content is stored on CDN servers geographically closer to the users and
reaches their computers much faster.

To manage high traffic and reduce server load on a website, you can employ several strategies.

Load Balancing: Implement load balancing to distribute incoming traffic across multiple servers. This
ensures that no single server bears the entire load, improving overall performance and reliability.

Content Delivery Network (CDN): Use a CDN to cache static content like images, stylesheets, and
scripts on servers distributed globally. This reduces the load on your main servers and accelerates
content delivery to users.
Caching: Utilize caching mechanisms for both static and dynamic content. Cached content can be
served directly to users, reducing the need for repeated database queries or computations.

Optimize Images and Files: Compress and optimize images and other static files to reduce their size.
This minimizes the amount of data transferred and speeds up page loading times.

Database Optimization: Optimize database queries, use indexes, and implement database caching.
This ensures that database queries are efficient, reducing the load on the database server.

Code Optimization: Review and optimize your website's code. Identify and eliminate any unnecessary
or redundant code that may contribute to increased server load.

Scaling Infrastructure: If the traffic surge is persistent, consider scaling your infrastructure by adding
more servers or upgrading hardware. Cloud services like AWS, Azure, and Google Cloud provide
scalable solutions.

For storing passwords we should use excryption or hashing?

For storing passwords, the recommended practice is to use hashing, not


encryption.

A web server is software or hardware that serves content (such as web pages,
images, or other resources) to users over the internet. When users request a
web page by entering a URL in their web browser, the browser sends a
request to the web server, and the server responds by sending the requested
files to the browser, which then renders and displays the page.

The Document Object Model (DOM) is an API (Application Programming


Interface) that provides a way for JavaScript to interact with and manipulate
HTML and XML documents dynamically. The DOM represents the structure of
a document as a tree of objects, where each object corresponds to a part of
the document, such as elements, attributes, and text.

With the DOM, JavaScript can:

. Access elements in a document.


. Modify the content of elements.
. Change the structure of the document.
. React to events, such as user interactions.

in wesite they ask save cookie what happen when we reject will websitr still work

When a website asks you to save cookies and you choose to reject or decline
them, the website will still work to some extent, but your experience may be
affected. Here are some potential consequences of rejecting cookies:

.
Loss of Personalization: Many websites use cookies to remember your
preferences, such as language settings, themes, or personalized content. If you
reject cookies, these preferences may not be saved, and you might need to set
them each time you visit the site.
.
.
Authentication Issues: If a website uses cookies for user authentication
(keeping you logged in), rejecting cookies might require you to log in each
time you visit, as the site won't be able to remember your login status.
.

You might also like