Posts

Showing posts from 2025

:::: Python Cheat Sheet ::::

  Python Cheat Sheet – QA + Interview Edition A Python data types and functions cheat sheet provides a concise summary of fundamental concepts for quick reference.  These resources typically cover: Python Data Types: Numeric Types:   int  (integers),  float  (floating-point numbers),  complex  (complex numbers). Sequence Types: str  (strings): Immutable sequences of characters. list : Mutable ordered sequences of items. tuple : Immutable ordered sequences of items. Mapping Type:   dict  (dictionaries): Mutable collections of key-value pairs. Set Types:   set  (mutable unordered collections of unique items),  frozenset  (immutable version of set). Boolean Type:   bool  (Boolean values:  True  or  False ). Key Functions and Operations: Type Conversion Functions:   int() ,  float() ,  str() ,  list() ,  tuple() ,  dict() ,  set() . Built-in Functions: ...

:::: Python Logic Building ::::

  10 Python Interview Programs with Simple Explanations 1. First Non-Repeating Character in a String ��  Problem: Find the first character in a string that does not repeat. Input: 'swiss' Expected Output: 'w' ��  Without Library # Without using libraries a="swiss" c={} for char in a:     if char in c:         c[char]+=1     else:         c[char]=1 print(c) ��  With Library # Using collections.Counter from collections import Counter import re a="swiss" count=Counter(a) print(count) for key,value in count.items():     if value==1:         print(key)         break;     else:         continue ��  Explanation We loop through each character and count how many times it appears. The first character with a count of 1 is the answer. 's' repeats, 'w' doesn't. 2. Check if Two Strings are Anagrams ��  Problem: Two strings are anagra...

:::: OSPF and BGP ::::

  Advanced OSPF & BGP Interview Questions & Answers - Mock Q&A Format Question 1: What are the different types of OSPF packets and their usage? Answer: Hello Packet : Initiates and maintains neighbor relationships (contains Router ID, Hello/Dead intervals). DBD (Database Description) : Summarizes LSDB, exchanged during Exstart/Exchange. LSR (Link State Request) : Requests specific LSAs. LSU (Link State Update) : Sends full LSA details. LSAck (Link State Acknowledgment) : Acknowledges receipt of LSAs. Question 2: How does OSPF prevent loops? Answer: OSPF uses  Dijkstra’s SPF algorithm  to calculate shortest paths. Intra-area: Each router maintains identical LSDBs, preventing loops. Inter-area: ABRs do not advertise LSAs back into the area from which they were received (split-horizon like behavior). Question 3: What are stub areas in OSPF? Answer: Stub Area : Allows LSA 1, 2, 3; blocks LSA 5. Totally Stubby Area : Allows only LSA 1 and 2; blocks 3, 5 (Cisco prop...

Python Study Plan -

  WEEK 1: Python Fundamentals Question Bank Core Concepts & Practice What is the difference between input() and print()? Write a code that takes your name and prints a greeting. Create a program that converts temperature from Celsius to Fahrenheit. Demonstrate usage of all types of operators: arithmetic, logical, comparison, assignment, bitwise. Write a script that swaps two variables without using a third variable. Use type(), id(), isinstance() on different variables. Show string slicing with negative indices. Reverse a string. Write code to count vowels in a sentence using a loop. Use split(), strip(), lower(), upper(), replace(), find(), startswith(), and endswith() on a sample string. Built-in Function Practice Practice with: len(), max(), min(), sum(), sorted(), reversed(), enumerate(), zip(), chr(), ord(), round() WEEK 2: Intermediate + OOP Basics Question Bank Data Structures & File Handling Create a dictionary of students and their marks. Print average marks. Sort ...

All-In-One Interview

  Easy Questions: Python: What is a list comprehension in Python? Python: How do you create a virtual environment in Python? Network Automation Testing: What is network automation? Network Automation Testing: Explain the purpose of network automation testing. Protocols Testing: What is BGP and why is it used? Protocols Testing: Describe the TCP three-way handshake. Good Coding Skills: What is the difference between a for loop and a while loop? Python: How do you handle exceptions in Python? Network Automation Testing: What is Ansible and how is it used in network automation? Protocols Testing: What is OSPF and how does it work? Medium Questions: Python: Explain the difference between  deepcopy  and  shallow copy . Python: How do you use decorators in Python? Network Automation Testing: Describe the process of automating network configuration using Python. Network Automation Testing: What are the benefits of using network automation tools? Protocols Testing: How does ...