• Register
search
Log In
0 votes
275 views

Problem:

A ________ value in a loop can be either a positive or a negative number. Is this true of False? I am bit confused can anyone suggest?


edited by

1 Answer

0 votes
The answer is a step value

Related questions

0 votes
1 answer 18 views
18 views
Problem: I am new, I need help, can anyone help? Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4? a. 1-4 c. [1234] b. [1-4] d. [1,2,3,4]
asked Feb 21 maddi86 5.4k points
0 votes
1 answer 32 views
32 views
Problem: I am new and learning, I need help, can anyone help by filling in the blanks? A(n) ________ search uses a loop to sequentially step through an array? A) binary B) unary C) linear D) relative E) None of these
asked Feb 21 maddi86 5.4k points
1 vote
1 answer 14 views
14 views
Problem: I wrote a program in python to check if a given number is sparse or not. So I wrote this code: def IsSparse(n): if ((n<<1) & (n>>1)): return 0 return 1 print(IsSparse(35)) print(IsSparse(16)) print(IsSparse(12)) print(IsSparse(72)) And when I run this or ... . The output is: 1 1 1 1 But the actual output should be: 0 1 0 1 What should I do to get the actual result? Thanks in advance.
asked Apr 22 samhaz 5k points
1 vote
1 answer 27 views
27 views
Problem: Can anyone provide me an expression that executes the loop body as long as the user enters a non-negative number. Thanks in advance.
asked Apr 9 LizzyM 5.7k points
0 votes
1 answer 64 views
64 views
Problem : The below error occurs quite frequently to me: &ldquo;Subscript indices must either be real positive integers or logical&rdquo; I want to have a general solution for dealing with above problem.
asked Jan 28 jwilliam 3.9k points