0% found this document useful (0 votes)
25 views2 pages

Before & After Mid

The document provides an introduction to computer science and its major subfields. It discusses the basics of computers including hardware components and software. It covers various programming concepts like variables, input/output, arithmetic expressions, selection statements using if/else, loops using while and for. Algorithms, flowcharts and pseudocode are used to represent problem solving approaches.

Uploaded by

prince12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Before & After Mid

The document provides an introduction to computer science and its major subfields. It discusses the basics of computers including hardware components and software. It covers various programming concepts like variables, input/output, arithmetic expressions, selection statements using if/else, loops using while and for. Algorithms, flowcharts and pseudocode are used to represent problem solving approaches.

Uploaded by

prince12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Before mid

Introduction of Computer Science • Introduction: Objectives of the course • Brief description of major sub-
fields/subjects of Computer Science with reference to their usage in common life. Introduction to Computers •
What is a Computer? • Applications of Computer • Types of computer • RAM • Input/Output Devices • Storage •
CPU

• Introduction to Problem solving • Algorithms Problem solving • Flow Charts and Pseudo-codes • Sequential –
Problem Solving using • Flowcharts and Pseudo-codes (e.g., how to make a tea, adding two numbers,
conversion of length from feet to inch, convert temperature

Variable • Concept/Purpose of variable • Concept of Type • Declaration of variable/Syntax, Semantics • The rule
for a valid identifier • Initialization of variables • Accessing values of a variable • Assignment statement,
Syntax/Semantics • Arithmetic Expression involving variables and/or literal constants • Problem-solving using
literal constants, variables Interactive Program (Taking Input from Console) • How to take input from the user. •
Syntax/Semantics of cin (Formatted Input) • Concept of white space (space, tab, newline) and default working of
cin • Problem Solving using cin, variables, strings

Hello World Program in C++ • Processing a C++ program/Execution Flow • Syntax of C++ (cout << “literal
string \n”) • Syntax of C++ (cout << Numeric Constant/Expression ) • Comments/ Importance of Comments •
Syntax Errors • Syntax vs. Semantics Arithmetic expression • Output Numbers (Literal Constants) (cout << 2 <<
endl;) • Arithmetic Operators (+, -, *, /, %) • Defining Expression/Arithmetic Expression • Operator Precedence &
Associativity • Arithmetic Expression evaluation • Output value of an Arithmetic Expression (cout << 2*3 <<
endl;) • Problem Solving using Arithmetic Expression (literal constants

Selection Statement • Need/Purpose of Selection • Selection: if and if...else • One-Way Selection • Compound
(Block of) Statements • Comparing if...else Statements with a Series of if Statements; Short-Circuit Evaluation •
Solution/Algorithm development (Pseudo-Code and Flow-Chart) • Comparing Floating-Point Numbers for
Equality • Associativity of Relational Operators • Input Failure and the if Statement • Confusion between the
Equality Operator (==) and the Assignment Operator (=) • switch Structures (Pseudo-Code and Flow-Chart)

Nested Selection • Multiple Selections: Nested if • Need for multi-way selection • Compound Expression and
nested if • Compound Selection (e.g., Number is negative, positive or equal to zero; assigning grades to a
student) • Multiple Selections (e.g., check whether a student has passed or failed and then assign grades to a
student) • Solution/Algorithm development (Pseudo-Code and Flow-Chart) Operators • Pre/Post-Increment •
Pre/Post-Decrement • Order of Precedence • Ascii values • Type Conversion (Casting)
Loop Statement • Why Is Repetition Needed? • while Looping (Repetition) Structure • Designing while Loops •
Case 1: Counter-Controlled while Loops • Case 2: Sentinel-Controlled while Loops • Solution/Algorithm
development (Pseudo-Code and Flow-Chart) • Case 3: Flag-Controlled while Loops • More on Expressions in
while Statements • for Looping (Repetition) Structure • Solution/Algorithm development (Pseudo-Code and
Flow-Chart) • Dry-Run the loop.

Loop Statement • Why Is Repetition Needed? • while Looping (Repetition) Structure • Designing while Loops •
Case 1: Counter-Controlled while Loops • Case 2: Sentinel-Controlled while Loops • Solution/Algorithm
development (Pseudo-Code and Flow-Chart) • Case 3: Flag-Controlled while Loops • More on Expressions in
while Statements • for Looping (Repetition) Structure • Solution/Algorithm development (Pseudo-Code and
Flow-Chart) • Dry-Run the loop.

After Mid

You might also like