Interview questions of database, Cheat Sheet of Computer science

It is best question asked in a interview of database

Typology: Cheat Sheet

2021/2022

Uploaded on 05/06/2023

blue-red-5
blue-red-5 šŸ‡®šŸ‡±

1 document

1 / 9

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
NARESH I TECHNOLOGIES, HYDERABAD, 04023746666
Prepared By Subba Raju
HTML INTERVIEW QUESTIONS
1) What is HTML?
HTML stands for Hyper Text Markup Language. It is a language of World Wide Web. It is a
standard text
formatting language which is used to create and display pages on the Web.
2) What are Tags?
HTML tags are composed of three things: opening tag, content and ending tag. Some tags are
unclosed
tags. HTML documents are made of two things: content, and tags
Content is placed between tags to display data on the web page.
3) Do all HTML tags have end tag?
No. There are some HTML tags that don't need a closing tag. For example: <image>
tag, <br> tag.
4) What are some common lists that are used when designing a page?
There are many common lists which are used to design a page. You can choose any or a
combination of
the following list types:
Ordered list
Unordered list
Menu list
Directory list
Definition list
5) What is the difference between HTML elements and tags?
HTML elements communicate to the browser to render text. When the elements are surrounded by
brackets <>, they form HTML tags. Most of the time, tags come in pair and surround
content.
6) What is semantic HTML?
Semantic HTML is a coding style. It is the use of HTML markup to reinforce the semantics or
meaning of
the content. For example: In semantic HTML <b> </b> tag is not used for bold
statement as well as <i>
</i> tag is used for italic. Instead of these we use <strong></strong> and
<em></em> tags.
7) What is image map?
Image map facilitates you link many different web pages using a single image. You can define
shapes in
images that you want to make part of an image mapping.
8) How to insert a copyright symbol on a browser page?
can insert a copyright symbol by using © or © in an HTML file.
9) How do you keep list elements straight in an HTML file?
You can keep the list elements straight by using indents.
10) Does a hyperlink only apply to text?
No, you can use hyperlinks on text and images both.
11) What is a style sheet?
A style sheet is used to build a consistent, transportable, and well designed style
template. You can add
these templates on several different web pages.
12) Can you create a multi colored text on a web page?
Yes. To create a multicolor text on a web page you can use <font color
="color"> </font> for the specific
texts you want to color.
13) Is it possible to change the color of the bullet?
The color of the bullet is always the color of the first text of the list. So, if you want
to change the color
of the bullet, you must change the color of the text.
14) What is a marquee?
Marquee is used to put the scrolling text on a web page. You should put the text which you
want to
scroll within the <marquee>......</marquee> tag.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Interview questions of database and more Cheat Sheet Computer science in PDF only on Docsity!

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

Prepared By Subba Raju

HTML INTERVIEW QUESTIONS

  1. What is HTML? HTML stands for Hyper Text Markup Language. It is a language of World Wide Web. It is a standard text formatting language which is used to create and display pages on the Web.
  2. What are Tags? HTML tags are composed of three things: opening tag, content and ending tag. Some tags are unclosed tags. HTML documents are made of two things: content, and tags Content is placed between tags to display data on the web page.
  3. Do all HTML tags have end tag? No. There are some HTML tags that don't need a closing tag. For example: <image> tag, <br> tag.
  4. What are some common lists that are used when designing a page? There are many common lists which are used to design a page. You can choose any or a combination of the following list types: Ordered list Unordered list Menu list Directory list Definition list
  5. What is the difference between HTML elements and tags? HTML elements communicate to the browser to render text. When the elements are surrounded by brackets <>, they form HTML tags. Most of the time, tags come in pair and surround content.
  6. What is semantic HTML? Semantic HTML is a coding style. It is the use of HTML markup to reinforce the semantics or meaning of the content. For example: In semantic HTML <b> </b> tag is not used for bold statement as well as <i> </i> tag is used for italic. Instead of these we use <strong></strong> and <em></em> tags.
  7. What is image map? Image map facilitates you link many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.
  8. How to insert a copyright symbol on a browser page? can insert a copyright symbol by using &copy; or &#169; in an HTML file.
  9. How do you keep list elements straight in an HTML file? You can keep the list elements straight by using indents.
  10. Does a hyperlink only apply to text? No, you can use hyperlinks on text and images both.
  11. What is a style sheet? A style sheet is used to build a consistent, transportable, and well designed style template. You can add these templates on several different web pages.
  12. Can you create a multi colored text on a web page? Yes. To create a multicolor text on a web page you can use <font color ="color"> </font> for the specific texts you want to color.
  13. Is it possible to change the color of the bullet? The color of the bullet is always the color of the first text of the list. So, if you want to change the color of the bullet, you must change the color of the text.
  14. What is a marquee? Marquee is used to put the scrolling text on a web page. You should put the text which you want to scroll within the <marquee>......</marquee> tag.

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

Prepared By Subba Raju

  1. How many tags can be used to separate section of texts? There are three tags used to separate the texts. i.e. usually <br> tag is used to separate line of texts. Other tags are<p> tag and <blockquote> tag.

  2. How to make a picture a background image of a web page? To make a picture a background image on a web page, you should put the following tag code after the </head> tag. <body background = "image.gif"> Here, replace the "image.gif" with the name of your image file which you want to display on your web page.

  3. What are empty elements? HTML elements with no content are called empty elements. For example: <br>, <hr> etc.

  4. What is the use of span tag? Give one example. The span tag is used for following things: For adding color on text For adding background on text Highlight any color text etc. Example: <p> <span style="color:#ffffff;"> In this page we use span. </span> </p>

  5. What is the use of iframe tag? An iframe is used to display a web page within a web page. Syntax: <iframe src="URL"></iframe> Example: <iframe src="demo_iframe.html" width="200px" height="200px"></iframe> Target to a link: <iframe src="http://www.nareshit.com" name="iframe_a"></iframe> HTML5 INTERVIEW QUESTIONS

  6. What is canvas in HTML5? Canvas is an HTML area which is used to draw graphics.

  7. What is SVG? HTML SVG is used to describe the two dimensional vector and vector/raster graphics.

  8. What are the different new form element types in HTML 5? Following is a list of 10 important new elements in HTML 5: Color Date Datetime-local Email Time Url Range

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

Prepared By Subba Raju Telephone Number Search

  1. Is there any need to change the web browsers to support HTML5? No. Almost all browsers (updated versions) support HTML 5. For example: Chrome, Firefox, Opera,

</ul> </div> HTML 5 Menu: <nav> <ul> <li>News</li> <li>Sports</li> <li>Weather</li> </ul> </nav>

  1. If I do not put <!DOCTYPE html> will HTML 5 work? No, browser will not be able to identify that it is a HTML document and HTML 5 tags will not function properly.
  2. What is the use of required attribute in HTML5? It forces user to fill text on textfield or textarea before submitting form. It is used for form validation. Example: Name: <input type="text" name="name" required>
  3. What are the new <input> types for form validation in HTML5? The new input types for form validation are email, url, number, tel and date. Example: <input type="email">

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

Prepared By Subba Raju

CSS INTERVIEW QUESTIONS

  1. What is CSS? CSS stands for Cascading Style Sheet. It is a popular styling language which is used with HTML to design websites.
  2. What is the origin of CSS? SGML (Standard Generalized Markup Language) is the origin of CSS.
  3. What are the different variations of CSS? Following are the different variations of CSS: CSS CSS CSS2. CSS CSS
  4. How can you integrate CSS on a web page? There are three methods to integrate CSS on web pages. Inline method Embedded/Internal method Linked/Imported/External method
  5. What are the advantages of CSS? Bandwidth Site-wide consistency Page reformatting Accessibility Content separated from presentation
  6. What are the limitations of CSS? Ascending by selectors is not possible Limitations of vertical control No expressions No column declaration Pseudo-class not controlled by dynamic behavior Rules, styles, targeting specific text not possible
  7. What are the CSS frameworks? CSS frameworks are the preplanned libraries which makes easy and more standard compliant web page styling.
  1. Why background and color are the separate properties if they should always be set together? There are two reasons behind this: It enhances the legibility of style sheets. The background property is a complex property in CSS and if it is combined with color, the complexity will further increases. Color is an inherited property while background is not. So this can make confusion further.
  2. What is Embedded Style Sheet?

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

Prepared By Subba Raju An Embedded style sheet is a CSS style specification method used with HTML. You can embed the entire style sheet in an HTML document by using the STYLE element.

  1. What are the advantages of Embedded Style Sheets? You can create classes for use on multiple tag types in the document. You can use selector and grouping methods to apply styles in complex situations. No extra download is required to import the information.
  2. What is CSS selector? It is a string that identifies the elements to which a particular declaration will apply. It is also referred as a link between the HTML document and the style sheet. It is equivalent of HTML elements.
  3. What is ruleset? Ruleset is used to identify that selectors can be attached with other selectors. It has two parts: Selector Declaration
  4. What is the difference between class selectors and id selectors? An overall block is given to class selector while id selectors take only a single element differing from other elements.
  5. What are the advantages of External Style Sheets? You can create classes for reusing it in many documents. By using it, you can control the styles of multiple documents from one file. In complex situations, you can use selectors and grouping methods to apply styles.
  6. What is the difference between inline, embedded and external style sheets? Inline: Inline Style Sheet is used to style only a small piece of code. Embedded: Embedded style sheets are put between the <head>...</head> tags. External: This is used to apply the style to all the pages within your website by changing just one style sheet.
  7. What is RWD? RWD stands for Responsive Web Design. This technique is used to display the designed page perfectly on every screen size and device. For example: Mobile, Tablet, desktop, laptop etc. You don't need to create a different page for each device.
  8. What are the benefits of CSS sprites? : If a web page has large no. of images that takes a longer time to load because each image separately sends out an http request. The concept of CSS sprites is used to reduce the loading time for a web page because it combines the various small images into one image. It reduces the number of http requests and hence the loading time.
  9. What is the difference between logical tags and physical tags? Physical tags are referred to as presentational mark-up while logical tags are useless for appearances. Physical tags are newer versions on the other hand logical tags are old and concentrate on content.
  10. What is the CSS Box model and what are its elements?

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

body tag of html. <script type="text/javascript"> document.write("JavaScript Hello World!"); </script>

  1. How to use external JavaScript file? I am assuming that js file name is message.js, place the following script tag inside the head tag. <script type="text/javascript" src="message.js"></script>
  2. Is JavaScript case sensitive language? Yes.
  3. What is BOM? BOM stands for Browser Object Model. It provides interaction with the browser. The default object of browser is window. Browser Object Model
  4. What is DOM? What is the use of document object? DOM stands for Document Object Model. A document object represent the html document. It can be used to access and change the content of html.Document Object Model
  5. What is the use of window object? The window object is automatically created by the browser that represents a window of a browser. It is used to display the popup dialog box such as alert dialog box, confirm dialog box, input dialog box etc.
  6. What is the use of history object? The history object of browser can be used to switch to history pages such as back and forward from current page or another page. There are three methods of history object. history.back() history.forward() history.go(number): number may be positive for forward, negative for backward.
  7. How to write comment in JavaScript? There are two types of comments in JavaScript.

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

Prepared By Subba Raju Single Line Comment: It is represented by // (double forward slash) Multi Line Comment: It is represented by slash with asterisk symbol as /* write comment here */

  1. How to create function in JavaScript? To create function in JavaScript, follow the following syntax. function function_name() { //function body }
  2. What are the JavaScript data types? There are two types of data types in JavaScript: Primitive Data Types Non-primitive Data Types
  3. What is the difference between == and ===? The == operator checks equality only whereas === checks equality and data type i.e. value must be of same type.
  4. How to write html code dynamically using JavaScript? The innerHTML property is used to write the HTML code using JavaScript dynamically. Let's see a simple example: document.getElementById('mylocation').innerHTML="<h2>This is heading using JavaScript</h2>";
  5. How to write normal text code using JavaScript dynamically? The innerText property is used to write the simple text using JavaScript dynamically. Let's see a simple Example:

document.getElementById('mylocation').innerText="This is text using JavaScript";

  1. How to create objects in JavaScript? There are 3 ways to create object in JavaScript. By object literal By creating instance of Object By Object Constructor Let's see a simple code to create object using object literal. emp={id:102,name:"Rahul Kumar",salary:50000}
  2. How to create array in JavaScript? There are 3 ways to create array in JavaScript. By array literal By creating instance of Array By using an Array constructor Let's see a simple code to create array using object literal. var emp=["Shyam","Vimal","Ratan"];
  3. What does the isNaN() function? The isNan() function returns true if the variable value is not a number.

NARESH I TECHNOLOGIES, HYDERABAD, 04023746666

Prepared By Subba Raju

  1. What is the output of 10+20+"30" in JavaScript? 3030 because 10+20 will be 30. If there is numeric value before and after +, it is treated is binary + (arithmetic operator).
  2. What is the output of "10"+20+30 in JavaScript? 102030 because after a string all the + will be treated as string concatenation operator (not binary +).
  3. Difference between Client side JavaScript and Server side JavaScript? Client side JavaScript comprises the basic language and predefined objects which are relevant to running java script in a browser. The client side JavaScript is embedded directly by in the HTML pages. This script is interpreted by the browser at run time. Server side JavaScript also resembles like client side java script. It has relevant java script which is to run in a server. The server side JavaScript are deployed only after compilation.
  4. In which location cookies are stored on the hard disk? The storage of cookies on the hard disk depends on OS and the browser. The Netscape navigator on Windows uses cookies.txt file that contains all the cookies. The path is : c:\Program Files\Netscape\Users\username\cookies.txt The Internet Explorer stores the cookies on a file [email protected]. The path is: c:\Windows\Cookies\[email protected].
  5. What is the real name of JavaScript? The original name was Mocha, a name chosen by Marc Andreessen, founder of Netscape. In September of 1995, the name was changed to LiveScript. In December 1995, after receiving a trademark license from Sun, the name JavaScript was adopted.
  6. What is the difference between undefined value and null value? Undefined value: A value that is not defined and has no keyword is known as undefined value. For Example: int number;//Here, number has undefined value. Null value: A value that is explicitly specified by the keyword "null" is known as null value. For Example: String str=null;//Here, str has a null value.
  7. How to set the cursor to wait in JavaScript? The cursor can be set to wait in JavaScript by using the property "cursor". The following example illustrates the usage: <script> window.document.body.style.cursor = "wait";