Order of precedence of Republic of India

Ankur Kulhari

The Order of precedence of Republic of India is the protocol list in which the officials and functionaries are listed as per their rank and office in the Government of India. The order is established by the President of India, through the President’s Secretariat and is maintained by the Ministry of Home Affairs. It is only used to indicate ceremonial …

Computer Networking: A Top-Down Approach, Kurose and Ross, 6th Edition, Solutions to Review Questions and Problems – Chapter 2

Ankur Kulhari

Chapter 2 Review Questions Section 2.1 Q1. List five nonproprietary Internet applications and the application-layer protocols that they use. Solution. Following are the nonproprietary Internet applications and the protocols at application-layer used by them: The Web Applications: These applications use Hyter Text Transfer Protocol (HTTP), File Transfer Applications: These applications use File Transfer Protocol (FTP), Remote Login Applications: These applications …

Computer Networking: A Top-Down Approach, Kurose and Ross, 6th Edition, Solutions to Review Questions and Problems – Chapter 1

Ankur Kulhari

¬† Chapter 1 Review Questions Section 1.1 Q1. What is the difference between a host and an end system? List several different types of end systems. Is a Web server an end system? Solution. Host and end system are used interchangeably. Hosts or end systems include Desktops, Laptops (PCs), workstations, Web servers, mail servers, Personal Digital Assistants, Internet-connected game consoles, …

Stack – Data Structure

Ankur Kulhari

Outline: Introduction Implementation (static and dynamic) Application Stack – Introduction Stack is a linear data structure. Stack follows the order as: LIFO(Last In First Out) or FILO(First In Last Out). Operations performed on the stack: Push: Adds an item in the stack. If the stack is full, then it is said to be an Overflow condition. Pop:¬†Removes an item from …

Python Chapter#9: Python Dictionary

Ankur Kulhari

Items of dictionaries are enclosed by curly braces ({}) Consist of key-value pairs A dictionary key can be any Python data type,(usually numbers or strings) Values, can be any Python object. Values can be assigned and accessed using square braces ([]) Ex: OUTPUT: Hello 123 {‘Employee_code’: 6103467, ‘dept’: ‘CSE’, ‘name’: ‘jonny’} dict_keys([‘Employee_code’, ‘dept’, ‘name’]) dict_values([6103467, ‘CSE’, ‘jonny’]) Python Dictionary Functions …

Python Chapter#8: Python Lists

Ankur Kulhari

Python Lists A list in python is a compound data type which can store multiple elements. Items of a list are enclosed within square brackets ([]) Items are separated by commas The items of a list can be of different data type. Ex: l1 = [1,2,”a”,2.3,3j] Slice operator ([ ] and [:] ) can be used to access elements in …

Python Chapter#7: Python Strings

Ankur Kulhari

Python Strings In Python character type variables are not defined; they are treated as strings of length one. Strings in Python are set of characters enclosed in the pair of quotation marks (either single or double quotes). Slice operator ([ ] and [:] ) can be used to take subset of string Indexes start at 0 Concatenation operator: plus (+) …

Pyhton Chapter#6: Numbers

Ankur Kulhari

In python numeric data types store numeric values. Number objects are created when a value is assigned to them. Ex: num1 = 5 num2 = 10 Four different numerical types are supported in python: int (signed integers) long (long integers, they can also be represented in octal and hexadecimal) float (decimal/real values) complex (complex numbers) Mathematical Functions Python includes following …