Assuming X1,X2, Y1 are integer type variables, A,B,C are Bool type variables and Z as real type variable. Check the wrong statements

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question
Assuming X1,X2, Y1 are integer type
variables, A,B,C are Bool type variables
and Z as real type variable. Check the
wrong statements
Y1:=(X1 AND X2) +2;
if A:=True Then B:=False; End_if;
If Z>10 Then Y1:=X1 +4; End_if;
C:=(A AND B ) +1;
For Z:=1 to 10 Do Y1:=Y1 +1; End_For;
While (A<>B) Do Y1:=Y1+1; End_While;
Transcribed Image Text:Assuming X1,X2, Y1 are integer type variables, A,B,C are Bool type variables and Z as real type variable. Check the wrong statements Y1:=(X1 AND X2) +2; if A:=True Then B:=False; End_if; If Z>10 Then Y1:=X1 +4; End_if; C:=(A AND B ) +1; For Z:=1 to 10 Do Y1:=Y1 +1; End_For; While (A<>B) Do Y1:=Y1+1; End_While;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT