Prof. Neeraj Bhargava
Pramod Singh Rathore
Department of Computer Science
School of Engineering & System Sciences,
MDS University Ajmer, Rajasthan, India
1
Basics of Web Programming using
ASP.NET
Session Objectives
 Character Set
 Token –
 Keyword
 Identifier
 Literals
 Punctuators
 Operators
2
Character Set
 It is a set of valid characters that a language can
recognize
 A character represent any letter, digit etc
 Eg :
 Letters A-Z, a-z
 Digit 0-9
 Special symbol: +,-,?,*
3
Token
 Smallest individual unit is a program is known as token
4
Token
 Keyword
 Are reserved word in a program
 E.g. for, if-else, void , main etc
 Identifiers
 Names given to different parts of the program like for variables
, objects, classes, function , array, etc
 Valid identifier : MyFile, _Rollno
 Invalid identifier : 3Myfile, my.file
5
Token
 Literals
 Or constant which never change their value during the program
run
 Integer Constant : 7,100,9
 Character Constant : ‘c’ , ’d’
 Real Constant : 7.0 ,8.9
 String Constant : “psr”
6
Token
 Operators
 Do some computation when applied to variables
 Eg : a=c+d
 Airthematic operator : + , - , / ,%
 Logical Operator : &&, ||
 Assignment Operator : =, <= , >=
 Relational Operator : < , >
7
Data Types and Variable
 Variable are used to store piece of information
 Student _Name
 Data types are used to declare the type of variable
 int
 Float
 String
 Char
 bool
8
Assignment 2
 Describe Character Set
 Explain Token with suitable example ?
9
Queries ????
10
11

2.basics of web programming using asp.net

  • 1.
    Prof. Neeraj Bhargava PramodSingh Rathore Department of Computer Science School of Engineering & System Sciences, MDS University Ajmer, Rajasthan, India 1 Basics of Web Programming using ASP.NET
  • 2.
    Session Objectives  CharacterSet  Token –  Keyword  Identifier  Literals  Punctuators  Operators 2
  • 3.
    Character Set  Itis a set of valid characters that a language can recognize  A character represent any letter, digit etc  Eg :  Letters A-Z, a-z  Digit 0-9  Special symbol: +,-,?,* 3
  • 4.
    Token  Smallest individualunit is a program is known as token 4
  • 5.
    Token  Keyword  Arereserved word in a program  E.g. for, if-else, void , main etc  Identifiers  Names given to different parts of the program like for variables , objects, classes, function , array, etc  Valid identifier : MyFile, _Rollno  Invalid identifier : 3Myfile, my.file 5
  • 6.
    Token  Literals  Orconstant which never change their value during the program run  Integer Constant : 7,100,9  Character Constant : ‘c’ , ’d’  Real Constant : 7.0 ,8.9  String Constant : “psr” 6
  • 7.
    Token  Operators  Dosome computation when applied to variables  Eg : a=c+d  Airthematic operator : + , - , / ,%  Logical Operator : &&, ||  Assignment Operator : =, <= , >=  Relational Operator : < , > 7
  • 8.
    Data Types andVariable  Variable are used to store piece of information  Student _Name  Data types are used to declare the type of variable  int  Float  String  Char  bool 8
  • 9.
    Assignment 2  DescribeCharacter Set  Explain Token with suitable example ? 9
  • 10.
  • 11.