GATE CSE 2009 Question Paper with Answers or solutions. Most of the times PSUs and other technical examinations directly asks questions from previous year GATE questions. So it is to prepare at last minutes. GATE CSE 2009 QUESTION PAPER WITH SOLUTIONS:
GATE CSE 2008 Question Paper with Answers
Gate CSE 2008 Question paper along with answers or solutions.
GATE CSE 2007 Question Paper with Answers
Gate CSE 2007 Question paper along with answers.
Python Chapter#9: Python Dictionary
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
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
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
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 …
Python Chapter#5: Loops
To execute statement/s multiple times, loops are used. Python loops: Python While Loop Python For Loop Python Nested Loops While Loop Condition is tested before executing the loop body. The condition may be any expression, and any non-zero value is considered as true The loop iterates while the condition is true When the condition becomes false, program control passes to …
Python Chapter#4: If-else
In Python: Any non-zero and non-null values are considered as TRUE, and Zero or NULL are considered as FALSE value Python has 3 types of decision/if-else statements as: Statement Description Syntax if An if statement consists of a boolean expression followed by one or more statements. Ex:Boolean expression: (x>y) if expression: statement(s) if…else An if statement can be followed by …
Python Chapter#3: Basic Python Operators
An operator is a construct which performs some operation: arithmetic or logical, on operands. Operators in Python Python has following operators: Arithmetic Operators Comparison/Relational Operators Assignment Operators Logical Operators Bitwise Operators Membership Operators Identity Operators Python Arithmetic Operators Operator Description Example [x=33, y=10] Addition (+) Binary addition operator which adds both operands. x+y=33+10=43 Subtraction (-) Binary operator which subtracts right …