Posts

Showing posts from October, 2026

Answers for Python December 2022 QP

GE3151 | Python Programming — Answer Guide GE3151 / PYTHON Part A Q11 Q12 Q13 Q14 Q15 November / December 2022 · Question Paper 30509 Problem Solving & Python Programming Exam-ready answers with algorithms, explanations, and runnable Python examples. Part B includes both alternatives wherever the paper says “OR”. 10 Part A answers 5 Part B questions Dark study interface Part A 10 × 2 marks Q1 Sum of first N natural numbers Algorithm: Read N; initialize total=0; repeat i from 1 to N and add i to total; print total. Formula: N(N+1)/2 . N = int(input("N: ")) total = N * (N + 1) // 2 print(total) Q2 Top-down vs bottom-up Top-down: begin with the overall problem and decompose it into smaller subproblems; refine step by step. Bottom-up: develop and test small reusable components first, then combine them into a complete solution. Q3 Slicing operator Slicing extracts a sequence portion using [start:stop:step] ; stop is excluded. items = [10, 20, 30, 40, 50] pri...

Answers for Python January 2022 QP

GE3151 Python Programming | January 2022 Solved Question Paper Py GE3151 Solved ☰ Part A Q11 Q12 Q13 Q14 Q15 Quick Quiz ☾ Theme ⤓ Print JANUARY 2022 · REGULATIONS 2021 Problem Solving with Python Complete, exam-focused answers for GE3151 — Civil Engineering, First Semester. Review short answers, study the long-answer alternatives, and practise with copyable Python programs. 🚀 Start revising Explore 16-mark answers → 📘 Paper at a glance Solved guide 10 Part A · 2 marks each 5 Part B · 16 marks each 100 Total marks 2 sides Both OR choices covered 0 of 16 sections reviewed 0% Tip: mark sections as reviewed as you revise them. Your progress is saved in this browser. ⌕ + Expand all − Collapse all ↻ Reset progress PART A · 20 MARKS Quick answers Ten concise answers for the 2-mark section. Questions 1–10 01 Write an algorithm to accept two numbers, compute the sum and pri...

Answers for Python May 2023 QP

GE3151 | Python Question Paper — Solved Py GE3151 SOLVED Part A Q11 Q12 Q13 Q14 Q15 Quick Quiz ◐ Theme ✦ Exam-ready answer bank · April / May 2023 Problem Solving with Python. GE3151 · First Semester · Regulations 2021. Clear 2-mark definitions, structured 8/16-mark explanations, algorithms, flowchart, pseudocode and runnable Python programs — including both alternatives in the paper. 10 Part A answers All ORs Both choices solved Python 3 Program examples 100 marks Paper coverage Find an answer ⌕ Search filters the answer cards as you type. Contents 01 · Part A 02 · Algorithms 03 · Variables 04 · Strings & Search 05 · Lists & Billing 06 · Files & Stack 07 · Revision quiz Revision progress 0% Mark a card reviewed using its checkbox to track your revision. Section 01 · 10 × 2 = 20 marks Part A — Short answers Concise points you can reproduce in a two-mark answer. 01 Qualities of a good algorithm 2 marks...