# A ________ value in a loop can be either a positive or a negative number.

623 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? The answer is a step value ## Loop Demo:

Syntax:
``````for (i=0; i < 10; i++) {
//do something
}``````

## Related questions

61 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.  b. [1-4] d. [1,2,3,4]
94 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
21 views
1 vote
36 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.
2 views
Problem: for reasonably sized files, is to read the file as a list of lines so that the count of lines is the length of the list. If the file&rsquo;s path is in a string bound to the thefilepath variable, that&rsquo;s just: count = len(open(thefilepath).readlines ... humongous files, a loop using the xreadlines method always works: count = 0 for line in open(thefilepath).xreadlines( ): count += 1
16 views