Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output if the following code were executed? X = 5 Y = 0 while (X > 0 ): if (X % 2

What is the output if the following code were executed?

X = 5 Y = 0 while (X > 0 ): if (X % 2 == 1): Y = Y + 1 else: Y = Y + X X = X - 2 print( X, " ", Y)

0 3

-1 3

1 4

-1 4

2 points

QUESTION 32

If the number of edges the graph is 10 the the sum of the degrees for all the vertices is

20

10

40

None of the above

2 points

QUESTION 33

What is the result of the following logical operation ?

1011 1010

AND 1111 0000

1001 0000

1011 0000

1010 1111

1100 0000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions

Question

Cash from Financing Activities

Answered: 1 week ago