Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

#

IFETCE/ME CSE/I YEAR/II


III YEAR AI&DS -BATCH 2021-2025
A -AI&DS
Page 124 of 155

Assignment Statements
Stream Classwork People
The general syntax

<target_var> <assign_operator> <expression>


The assignment operator

= FORTRAN, BASIC, the C-based languages


:= ALGOLs, Pascal, Ada
= can be bad when it is overloaded for the relational
operator for equality (that’s why the C-based languages use

III YEAR AI&DS -BATCH 20…


== as the relational operator)

A -AI&DS
#
IFETCE/ME CSE/I YEAR/II

Page 125 of 155


Announce something
Conditional Targets to your class

Conditional targets (Perl) ($!ag ? $total :


$subtotal) = 0
Material: 'Software testing and automation '

Adlin Stephi posted a new mate…


Created

30 Sept
Which is equivalent to

if ($!ag){ Announcement: 'CS3551 Unit 3 PPT Notes'

sinduja
$total =0
Created
ranjith
} else { 30 Sept
$subtotal
CS3551 Unit 3=PPT
0 Notes
}
#
deadlock.pdf
IFETCE/ME CSE/I YEAR/II

Page 126 of 155


Unit 3 1st half topic ppt.…
Compound Assignment Operators

A sho"hand method of specifying a commonly needed form


Add class comment…
of assignment

Introduced in ALGOL; adopted by C

Example:

a=a+b
A n n o u n c e m e n t : ' U n i t 2 G l o b a l s t a t e a n d S n a p s h o t …'

sinduja ranjith
Created

30 Sept
is wri#en as
Unit 2 Global state and Snapshot recording
Algorithm
a += bNotes (PPT)
#
IFETCE/ME CSE/I YEAR/II
unit 2 global state and s…
Page 127 of 155
Unary Assignment Operators

Unary assignment operators in C-based languages


Add class comment…
combine increment and decrement operations with
assignment
Examples:
Assignment: "HOLIDAY ASSIGNMENT "

sum =Devi R posted


++count
Created
a new assignment…
(count incremented, assigned to sum)
29 Sept
sum = count++ (count assigned to sum and then
incremented)
count++ (count incremented)
Material: 'HYBRID POLICIES UNIT 2 '

Prabha CSE Sastha posted a ne…


-count++ (count incremented then negated)
Created

27 Sept
#
IFETCE/ME CSE/I YEAR/II

Page 128 of 155


Assignment as an Expression
Announcement: 'CS3551 DC Question Bank Unit 2-5'

sinduja ranjith
Created

24 Sept
In C, C++, and Java, the assignment statement produces a
CS3551 DC Question Bank Unit 2-5
result and can be used as operands

while ((ch = getchar())!= EOF){…}


DC QUESTION BANK.docx
ch = getchar() is carried out; result is used as a
conditional value for the while statement
Has expression side e$ect: a=b+(c=d/b)-1
Multiple-target assignment: sum = count = 0;
Add class comment…
Hard to tell: if (x = y) and if (x == y)
Perl and Ruby suppo" list assignments, e.g.,

($%rst, $second, $third) = (20, 30, 40);


Announcement: 'CS3551 Unit 4 Notes'

sinduja ranjith
IFETCE/ME CSE/I YEAR/II
Created
#
24 Sept
Page 129 of 155
CS3551 Unit 4 Notes
Mixed-Mode Assignment
DC unit 4.docx
Assignment statements can also be mixed-
mode

In Fo"ran, C, and C++, any numeric type value can be


Add
assigned to anyclass comment…
numeric type variable

In Java, only widening assignment coercions are done


Announcement: 'DC UNIT 3 Notes'

sinduja ranjith
In Ada, there is no assignment coercion
Created

6 Sept

DC UNIT 3 Notes #
IFETCE/ME CSE/I YEAR/II

Page 130 of 155


UNITStatement-Level
3 dc.docx Control Structures
Controlling Program Flows

Computations
Addinclass
imperative-language
comment… programs
Evaluating expressions – reading variables, executing
operations
Assigning resulting values to variables
Selecting among alternative control !ow
Announcement: 'CS3551 DC Unit 5 notes'

pathssinduja
Causing ranjith
repeated
Created

4structure
A control Sept
execution is a control statement and the
statements whose execution it controls
CS3551 DC Unit 5 notes
Most programming languages follow a single thread of
control (or scheduling)
DC unit 5.docx #
IFETCE/ME CSE/I YEAR/II

Page 131 of 155

Selection
Add classStatements
comment…

A selection statement chooses between two or more paths


of execution
M a t e r i a l : ' C W 3 5 5 1 D ATA A N D I N F O R M AT I O N S E C U R I T Y Q U E S T I O N B A N K '

Prabha
Two general CSE
categories:
Created
Sastha posted a ne…
2 Sept
Two-way selectors
Multiple-way selectors

M a t e r i a l : ' C W 3 5 5 1 D ATA A N D I N F O R M AT I O N S E C U R I T Y U N I T N O T E S '

Prabha CSE Sastha posted a ne…


Created

2 Sept (Edited 3 Oct)

#
IFETCE/ME CSE/I YEAR/II
M a t e r i a l : ' C W 3 5 5 1 D ATA & I N F O R M AT I O N S E C U R I T Y U N I T 4 & 5 N O T E S '

Prabha CSE Sastha posted a ne…


Page 132 of 155 2 Sept
Created

Two-Way Selection Statements


M a t e r i a l : ' C C S 3 3 4 - B I G D A T A A N A LY T I C S

General Prabha
form:
Created
CSE Sastha posted a ne…
2 Sept
if control_expression

then clause

else clauseA n n o u n c e m e n t : 'A c t i v i t y 0 1 - Tr e a s u r e H u n t '

Adlin Stephi
Control expression:
Created

1 Sept
In C89, C99, Python, and C++, the control
Activity 01 - Treasure Hunt
expression can be arithmetic
In languages such as Ada, Java, Ruby, and C#, the control
pythonmust
expression debugging
be Booleanques.…
#
IFETCE/ME CSE/I YEAR/II

Page 133 of 155

Add class comment…


Then and Else Clauses

In contemporary languages, then and else clauses can be


single or compound statements
Announcement: 'Deep learning Assignment-1 Questions'

anjali A
In Perl, all clauses must be delimited by braces (they
Created

24 Aug
must be compound even if there is only 1 statement)
Deep learning
Python usesQuestions
Assignment-1 indentation to de%ne clauses
if x > y :

x = yIII YEAR AI&DS -BATCH 2…


print "case 1"

#
IFETCE/ME CSE/I YEAR/II

Page 134 of 155 Add class comment…


Nesting Selectors

Consider the following Java code:


Announcement: 'Deep learning Unit 3,4,5 notes'

anjali
if (sum == 0)A
Created

7 Aug (Edited 4 Sept)


if (count == 0)

Deep learning
result = 0;
Unit 3,4,5
else notes
result = 1;

Unit 3.pdf Unit 4.pdf


Which if gets the else? (dangling else)

Java's static semantics rule: else matches with the nearest if


Unit 5.pdf

#
IFETCE/ME CSE/I YEAR/II

Add class comment…

Announcement: 'Ppl Unit 4&5 notes'

anjali A
Created

1 Aug

Ppl
Unit 4&5 notes

ppl_unit 4.pptx ppl_unit5.pptx

Add class comment…

A n n o u n c e m e n t : ' C C S 3 5 8 P P L O b j e c t i v e t y p e q u e s t i o n s a n d …'

anjali A
Created

1 Aug

CCS358
PPL
Objective type questions and answers.
2marks,short& long question &ans

ppl_objtypeQ.docx

ppl_short&longansQ.docx

Add class comment…

Material: 'Software testing and automation '

Adlin Stephi posted a new mate…


Created

31 Jul

Material: 'Software testing and automation '

Adlin Stephi posted a new mate…


Created

31 Jul

A n n o u n c e m e n t : ' D e e p l e a r n i n g o b j e c t i v e s t y p e Q & A'

anjali A
Created

30 Jul

Deep learning objectives type Q&A

DL_extra questions.docx

Add class comment…

A n n o u n c e m e n t : ' D e e p l e a r n i n g U n i t - 3 , 4 , 5 S h o r t a n d …'

anjali A
Created

29 Jul (Edited 29 Jul)

Deep learning
Unit-3, 4,5
Short and long answer questions with answers

DL_unit3_qbank.docx

DL_unit4&5qbank.docx

Add class comment…

A n n o u n c e m e n t : ' D e e p l e a r n i n g U n i t - 2 S h o r t a n d l o n g …'

anjali A
Created

29 Jul

Deep learning
Unit-2
Short and long answer q& ans

DL_unit2_qbank.docx

Add class comment…

A n n o u n c e m e n t : ' D e e p l e a r n i n g U n i t 1 - s h o r t & l o n g …'

anjali A
Created

29 Jul

Deep learning
Unit 1- short& long answer questions and answers

DL_unit1_qbank.docx

Add class comment…

Material: 'CCS334 BigData Analytics lab manual'

Devi R posted a new material: C…


Created

29 Jul (Edited 1 Aug)

Material: 'Distributed computing unit 1 question bank'

sinduja ranjith posted a new ma…


Created

29 Jul

Material: 'Distributed computing objectives'

sinduja ranjith posted a new ma…


Created

29 Jul

Material: 'BigData Analytics -Objective Questions'

Devi R posted a new material: Bi…


Created

29 Jul

Material: 'Software testing and automation '

Adlin Stephi posted a new mate…


Created

29 Jul

Announcement: 'Deep learning Question bank'

anjali A
Created

29 Jul

Deep learning
Question bank

study-material-btech-it…

Add class comment…

Material: 'Software testing and automation '

Adlin Stephi posted a new mate…


Created

29 Jul

Announcement: 'Deep learning lab manual'

anjali A
Created

29 Jul

Deep learning lab manual

LabManual_DL

Add class comment…

M a t e r i a l : ' C W 3 5 5 1 D ATA A N D I N F O R M AT I O N S E C U R I T Y P R E V Y E A R Q P '

Prabha CSE Sastha posted a ne…


Created

29 Jul

M a t e r i a l : ' C W 3 5 5 1 D A T A A N D I N F O R M A T I O N S E C U R I T Y M U LT I P L E C H O I C E Q U E S T I O N S '

Prabha CSE Sastha posted a ne…


Created

29 Jul

M a t e r i a l : ' C W 3 5 5 1 D ATA A N D I N F O R M AT I O N S E C U R I T Y N O T E S '

Prabha CSE Sastha posted a ne…


Created

29 Jul

Announcement: 'PPL Previous year similar QP's'

anjali A
Created

26 Jul

PPL
Previous year similar QP's

ppl_ME_previousQP.pdf

ppl_me_previousqp2.pdf

Add class comment…

Material: 'CS3551 - Distributed Computing'

sinduja ranjith posted a new ma…


Created

24 Jul

A n n o u n c e m e n t : ' C C S 3 5 8 P r i n c i p l e s o f p r o g r a m m i n g …'

anjali A
Created

24 Jul

CCS358
Principles of programming language
Unit -3

unit3_ppl.pptx

Add class comment…

A n n o u n c e m e n t : ' C C S 3 5 8 P r i n c i p l e s o f p r o g r a m m i n g …'

anjali A
Created

24 Jul

CCS358
Principles of programming language
Unit-2

PPL_unit2.pptx

Add class comment…

Material: 'CCS334 BigData Analytics question bank -unit 1 and 2'

Devi R posted a new material: C…


Created

24 Jul (Edited 28 Jul)

Material: 'CCS334 BigData Analytics notes '

Devi R posted a new material: C…


Created

24 Jul (Edited 31 Aug)

Material: 'CS3551 Distributed Computing'

sinduja ranjith posted a new ma…


Created

24 Jul

A n n o u n c e m e n t : 'A D 3 5 0 1 D e e p l e a r n i n g U n i t 2 n o t e s '

anjali A
Created

24 Jul (Edited 4 Sept)

AD3501
Deep learning
Unit 2 notes

Unit 2.pdf

Add class comment…

A n n o u n c e m e n t : 'A D 3 5 0 1 D e e p l e a r n i n g U n i t - 1 n o t e s '

anjali A
Created

24 Jul (Edited 4 Sept)

AD3501
Deep learning
Unit-1 notes

Unit 1.pdf

Add class comment…

A n n o u n c e m e n t : ' C C S 3 5 8 P r i n c i p l e s o f p r o g r a m m i n g …'

anjali A
Created

24 Jul (Edited 24 Jul)

CCS358
Principles of programming language (PPL)
Unit-1

unit1_ppl.pptx

Add class comment…

M a t e r i a l : ' C W 3 5 5 1 D ATA A N D I N F O R M AT I O N S E C U R I T Y N o t e s '

Prabha CSE Sastha posted a ne…


Created

24 Jul

Material: 'Software testing and automation '

Adlin Stephi posted a new mate…


Created

24 Jul

Material: 'CS3591 Computer Network Question Bank'

Chief Examcell posted a new ma…


Created

21 May

Assignment: "Computer Network Notes"

Chief Examcell posted a new as…


Created

21 May

Material: 'UNIT 5

Devi R posted a new material: U…


Created

11 May

M a t e r i a l : ' A D 3 4 9 1 F U N D A M E N T A L S O F D A T A S C I E N C E & A N A LY T I C S - N O T E S '

Devi R posted a new material: A…


Created

11 May

Assignment: "unit 5 ml notes"

Sree Sastha Anithacse posted a …


Created

11 May

Assignment: "unit 4 ml notes"

Sree Sastha Anithacse posted a …


Created

11 May

Assignment: "machine learning ppt"

Sree Sastha Anithacse posted a …


Created

11 May

Assignment: "UNIT 2 MACHINE LEARNING NOTES"

Sree Sastha Anithacse posted a …


Created

11 May

Assignment: "unit 1 machine learning"

Sree Sastha Anithacse posted a …


Created

11 May
Page 131 / 155

You might also like