Unformatted text preview:

Basic Concepts of Programming Ritwik Raj Great Learning Variable Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Variable It is a symbolic name or reference to some kind of information A variable is a virtual container whose value can change over a period of time int roll 10 roll is a variable roll 10 RAM Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Programming language Code Python Java C C Conditional Statements Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Conditional Statements These are expressions that ask the program to determine if a variable is true or false There are two possible ways 1 2 True Action1 False Action2 Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Programming language Code Python Java Programming language Code C C Looping and Iteration Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Looping and Iteration Iteration is any time a program repeats a process or sequence Loops are a common type of iterations Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Programming language Code Python Java C C Datatypes Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Datatypes Data types help classify what information a variable can hold and what can be done with it Numbers Decimal Booleans Characters Strings Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Programming language Code Python Java Programming language Code C C Functions Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Functions These are self contained modules of code that accomplish a particular task Methods with no return type public void add int num1 int num2 int sum num1 num2 System out println Sum of two numbers are sum Methods with return type public int add int num1 int num2 int sum num1 num2 return sum Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Programming language Code Python Java C C Have a Great Learning All the Best Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited Thank You Proprietary content Great Learning All Rights Reserved Unauthorized use or distribution prohibited


View Full Document

Anna CS 104 - Basic Concepts of Programming

Course: Cs 104-
Pages: 20
Documents in this Course
Load more
Download Basic Concepts of Programming
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Basic Concepts of Programming and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Basic Concepts of Programming and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?