Posts

Showing posts from June, 2020

Question : Write a program in c++ to print even numbers up to a given number?

Image
Source Code : Program written by Jasna (Using for loop )   Output

ഈ വീഡിയോ ഒന്ന് കണ്ടു നോക്കൂ ...

Image

Class Notes: Part 4

5. What are expressions? Expressions are constitutes by operators and operands to perform an operation. Based on the operators used, there are different types of expressions like , i). Arithmetic expressions Arithmetic expressions are also divided into a). Integer expression :All operands in the expressions are integers. An integer expression yields an integer result. b). Floating point (decimal ) expression: All operands in the expression are floating points(decimals).A floating point expression yields a floating point result. ii). Relational expression ; The relational expression consists of relational operators. They are also called conditions. iii). Logical expression : A logical expression is an expression whose value is either True or False. For example x>y is a logical expression, since it can be either ‘True’ or ‘False’.   6. What is type conversion? Type conversion means converting one data type to another data type. There are two types of type conversion, Implicit type

Class Notes : Part 3

3. What are Data Types? These are means to identify the type of data and associated operations handling these data. Data types are classified into fundamental and user-defined data types. Fundamental data types represent atomic values and they include int, char, float, double and void. 4.What are type modifiers? Type modifiers are used to modify the size of memory space and range o data supported by the basic data types. Eg. long, short, signed, unsigned

VirtualText Book : Computer Application ( Commerce ) - 2nd Year

Class Notes : Chapter 1 ( Part II )

2.Explain the rules for naming an identifier / variable ? a). It may contain an arbitrary long sequence of letters, digits and _(under score) b). First character must be letter or _ c). White space and special characters are not allowed. d). Key words can not be used. e). Upper and Lower case letters are treated separately(case sensitive). Assignment Identify the valid and invalid identifiers ( Give Reasons ) mark3, int , Class_name , 123school , school_name, for , school123, student name , student_name

Class Notes :Chapter 1

I. What are token? What are different types of tokens used in C++? Tokens are the basic building blocks of a C++ program. There are five types of tokens in C++. 1. Key words : Key words are tokens that carry a specific meaning to the language compiler. Eg. int, switch etc.. 2. Identifiers : Identifiers are user defined words that are used to name different program elements such as memory locations, statements, functions, classes etc. Identifiers used for naming memory location is known as variables. Identifiers assigned to statements are known as labels. Identifiers used for set of statements are known as functions. 3. Literal : Literals are data items that never change their values during the program running. They are also known as constants. There are 4 types of literals a) Integer literal: tokens formed only by digits. It must have at least one digit and must not have decimal point. It may contain +ve or _ve sign as first character Eg. 15, -20, +40 b) Floating Po

Victers Channel: Second Class

Image

Victers Channel : 3rd Part

Image

Victers Channel : Chapter 1

Image

C++ Program #1

Aim: To check whether a given number is positive , negative or zero #include<iostream> using namespace std; int main() { int n; cout<<"Enter a number"; cin>>n; if(n>0) cout<<"The number is positive"; else if(n<0) cout<<"The number is negative"; else cout<<"The number is zero"; return 0; }

Computer Practical Work #1

Image

Online Class Room : Computer Application

Image
Review of C++ Programming  Please like and Subscribe

Chapter 1 : Review of C++ Programming : Online Test

Hi Students  This is our Blog for attending and reviewing Online Tests based on +2 Computer Application . Attend the online examinations published here in this blog with out fail. Please follow this blog to get notifications. Thank you Faisal  Take Your Online Test Now