Answer:
Files Extension.
Explanation:
The letters that follow the period at the end of a file name are the file's extension. This enables the computer to know what application it should use to read the file.
Im not sure if you mean in or by but heres my answer: Basically to attempt to exploit a private network, control over computers, viruses and such.
Answer:
i= 1
for i in range(1,n):
if i * i < n:
print(2* i + 1)
i += 1
else:
print('Hakuna Matata')
Explanation:
First, there's a need to rewrite the code segment in your question (because of indentation)
<em>i= 1</em>
<em>while i*i < n:</em>
<em> print(2* i + 1)</em>
<em> i += 1</em>
<em>else:</em>
<em> print('Hakuna Matata')</em>
<em />
The explanation of the equivalent of the above while loop is as follows
This line initializes i to 1
i= 1
This line iterates from 1 to n-1
for i in range(1,n):
This line checks if i * i is less than n
if i * i < n:
The following line is executed if the above condition is satisfied; otherwise, nothing is done
print(2* i + 1)
The value of i is incremented by 1 using this line
i += 1
The following is executed at the end of the iteration
else:
print('Hakuna Matata')
<em>Note: Assume any value of n, both programs display the same output</em>
Answer:
D. int* ptr;
Explanation:
int *ptr; it is pointer used to hold address of another integer variable.In the options provided we have int ptr that is an integer variable of name ptr.
*int ptr; is wrong this will give error because first we have to write the data type.
int ptr*; is an integer varaible with name ptr*.
int* ptr; is a pointer which can hold the address of another integer varaible.
Joystick? It would be helpful if you listed the choices :)