1CS501 Computer Programming Question Bank

Audited from June 2023 to Feb 2025 • Theory, Logic & Syntax Covered

1. Introduction to C & Computer Basics
TOPIC: Computer Fundamentals & Software
Explain the Basic Structure of a Computer with a neat diagram. Diagram May 24
Differentiate: System vs Application Software OR IDE vs Application Software. Feb 25 Feb 24
Describe Compiler, Interpreter, Assembler? Name C compilers. High Yield Apr 25
Differentiate between High-level language and Low-level language. Mar 24
TOPIC: C Language Features & Tokens
Explain Tokens. Give examples (Operators, Keywords, Identifiers). Apr 25
Discuss Salient Features or Applications of C Language. Feb 25 Feb 24
Rules for constructing Identifiers/Variables. Classify valid/invalid: abc2, $abc1, +abc, 100_abc, #num. High Yield May 24 June 23
Explain Data Types: int, long, float (Size, Range, Memory). Feb 25 Mar 24 Feb 24
Discuss Escape Sequence characters. Mar 24
2. Logic, Flowcharts & Operators
TOPIC: Operators & Expressions
Explain Type Conversion (Implicit vs Explicit) with code. High Yield Apr 25 May 24 Mar 24 Feb 24
Explain Operators: Ternary, Bitwise (AND/OR), Shift (Left/Right). Code Feb 25 May 24 Mar 24 Feb 24
Describe Precedence and Associativity with a program. Rare Feb 25
Evaluate expressions (e.g., a+=b*=c-=5 or Logical/Relational mix). May 24
TOPIC: Algorithms & Flowcharts
What is an Algorithm/Flowchart? Draw/Write for: Largest of 3, Prime, Armstrong, Average of N, Arithmetic Ops. Diagram Apr 25 Mar 24 June 23 Feb 24
Write algorithm to Swap two numbers (with and without temp variable). Feb 24
TOPIC: General Logic Programs
Switch Case: Area of Geometrical figures OR Odd/Even checker. Apr 25 June 23
Loops/Math: Gross Salary Calc, Electricity Bill Calc, Product of digits. Program Apr 25 May 24 June 23
Explain Break, Continue, Goto, Nested If, While Loop with examples. Feb 25 Apr 25 Mar 24 Feb 24 June 23
Pattern Printing: Pyramid of numbers/alphabets. Code Mar 24 Feb 24
3. Arrays & Strings
TOPIC: Arrays (1D & 2D)
1D Array Ops: Sum of elements, Average, Frequency of number, Reverse array, Remove duplicates. High Yield Apr 25 May 24 Mar 24 Feb 24 June 23
Matrix (2D): Transpose, Symmetric check, Multiplication, Identity Matrix conversion, Sum of Diagonals. Program Feb 25 Apr 25 Mar 24 Feb 24
Real Life Array: Student Marks (2D Array) - Total/Average marks. Feb 25
TOPIC: Strings
String Logic: Count Vowels/Consonants, Reverse sentence, Concatenate without library, Copy without library. High Yield Apr 25 Feb 25 May 24 June 23
Explain Library Functions: strlen vs sizeof, strcpy, strncpy, strcmp. Feb 25 Mar 24 Feb 24
4. Functions, Pointers & Structures
TOPIC: Functions & Recursion
User Defined Function: Definition, Elements, Classification with examples. May 24
Differentiate: Call by Value vs Call by Reference (Swap program). Top Repeat Apr 25 Feb 25 May 24
Recursion: Definition. Program for Factorial. Apr 25 May 24
Programs via Function: Power(x,y), Square, Binary to Decimal, IsPrime(num). May 24 Mar 24 June 23 Feb 24
Differentiate: Actual Arguments vs Formal Arguments. Mar 24
TOPIC: Pointers & Files
Pointers: Definition, Adv/Disadv, Void Pointer. Program: Sum/Mean of array, Reverse array, String length. High Yield Apr 25 May 24 Mar 24 June 23 Feb 24
Give output of code snippet involving pointer arithmetic. Rare Apr 25
File Handling: Functions (getw, putw, fscanf, fprintf, rewind). Why files? Apr 25 June 23
File Programs: Count vowels, Read/Display content, Separate Prime/Non-prime numbers. Feb 25 Mar 24 Feb 24
TOPIC: Structures
Structure Definition, Syntax. Array of Structures vs Array. Feb 24 June 23
Record Management Programs: Employee/Student/Product (ID, Name, Salary/Marks). Logic: Max salary, Date join, Grade calculation. Code Apr 25 Feb 25 May 24 Mar 24 June 23
Explain Scope and Lifetime of variables. Feb 24 June 23