0% found this document useful (0 votes)
4 views4 pages

Python, JavaScript, CSS, AngularJS Differences

The document covers various programming concepts across Python, JavaScript, CSS, and AngularJS, including data types, storage mechanisms, layout systems, and routing. It highlights differences between lists and tuples, null and undefined, CSS Grid and Flexbox, and class vs ID in HTML. Additionally, it explains AngularJS services and the distinction between ng-show and ng-if directives.

Uploaded by

sovakpeto
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)
4 views4 pages

Python, JavaScript, CSS, AngularJS Differences

The document covers various programming concepts across Python, JavaScript, CSS, and AngularJS, including data types, storage mechanisms, layout systems, and routing. It highlights differences between lists and tuples, null and undefined, CSS Grid and Flexbox, and class vs ID in HTML. Additionally, it explains AngularJS services and the distinction between ng-show and ng-if directives.

Uploaded by

sovakpeto
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

How to calculate Ranks outside of BI report (Section Access)

How to swap two values


variable_1 = 1
variable_2 = 2

PYTHON

Differentiate between List and Tuple?


Let’s analyze the differences between List and Tuple:
List
 Lists are Mutable datatype.
 Lists consume more memory
 The list is better for performing operations, such as insertion and
deletion.
 Implication of iterations is Time-consuming
Tuple
 Tuples are Immutable datatype.
 Tuple consume less memory as compared to the list
 Tuple data type is appropriate for accessing the elements
 Implication of iterations is comparatively Faster

22. What is difference between / and // in Python?


// represents floor division whereas / represents precised division. For Example:
5//2 = 2
5/2 = 2.5
Javascript

Q29. What is the difference between null & undefined?

Undefined means a variable has been declared but has not yet
been assigned a value. On the other hand, null is an assignment value. It
can be assigned to a variable as a representation of no value. Also,
undefined and null are two distinct types: undefined is a type itself
(undefined) while null is an object.

Local Storage – The data is not sent back to the server for every HTTP
request (HTML, images, JavaScript, CSS, etc) – reducing the amount of traffic
between client and server. It will stay until it is manually cleared through
settings or program.

Session Storage – It is similar to local storage; the only difference is while


data stored in local storage has no expiration time, data stored in session
storage gets cleared when the page session ends. Session Storage will leave
when the browser is closed.
CSS

Difference between CSS Grid and CSS Flexbox

Grid:CSS Grid Layout, is a two-dimensional grid-based layout system with rows


and columns, making it easier to design web pages without having to use floats
and positioning. Like tables, grid layout allow us to align elements into columns
and rows.

Flexbox: The CSS Flexbox offers a one-dimensional layout. It is helpful in


allocating and aligning the space among items in a container (made of grids). It
works with all kinds of display devices and screen sizes.

10. What is the difference between a class and an ID?

Ans. Class is a way of using HTML elements for styling. They are not unique
and have multiple elements. Whereas ID is unique and it can be assigned to
a single element.

1. Define z-index.

This is one of the most frequently asked CSS interview questions. Z-index is
used to specify the stack order of elements that overlap each other. Its
default value is zero and can take both negative and positive values. A
higher z-index value is stacked above the lower index element. It takes the
following values- auto, number, initial, and inherit.
AngularJS

Explain services in AngularJS


AngularJS services are the singleton objects or functions that are used for carrying
out specific tasks. It holds some business logic.

What is routing in AngularJS?


Routing is one of the main features of the AngularJS framework, which is
useful for creating a single page application (also referred to as SPA) with
multiple views. It routes the application to different pages without reloading
the application. In Angular, the ngRoute module is used to implement
Routing. The ngView, $routeProvider, $route, and $routeParams are the
different components of the ngRoute module, which help for configuring and
mapping URL to views.

The Differences
Both ng-show and ng-if receive a condition and hide from view
the directive’s element in case the condition evaluates to false.
The mechanics they use to hide the view, though, are
different.
ng-show (and its sibling ng-hide) toggle the appearance of the
element by adding the CSS display: none style.
ng-if, on the other hand, actually removes the element from
the DOM when the condition is false and only adds the element
back once the condition turns true.

You might also like