Answer:
See Explaination
Explanation:
public class testscope
{
//start of main function
public static void main(String[] args)
{
//varible declration
int i;
int x;
//loop for 10 times
for(i=0; i<10; i++)
{
//initialize value of x to 10
x = 10;
}
//the scope of variable x is visible outside of for loop
System.out.println("The value of x is: "+x);
}
}
See attachment for sample output
nb:
You can clearly see in the output of Java program the value of x is not printed and program return errors. It means the variable x declared inside for loop does not has scope outside the for loop.
Answer:
#include <bits/stdc++.h>
using namespace std;
void funct(){
string name;
cout<<"enter the string: ";
cin>>name;
reverse(name.begin(), name.end());
cout<<"The string is : "<<name<<endl;
}
int main()
{
funct();
return 0;
}
Explanation:
create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.
The string enter by user is store in the variable using cin instruction.
after that, we use a inbuilt function reverse() which takes two argument.
firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.
name.begin() it is a function which return the pointer of first character of string.
name.end() it is a function which return the pointer of last character of the string.
finally, print the reverse string.
for calling the function, we have to create the main function and then call the function.
Answer:
When an instruction is sent to the CPU in a binary pattern, how does the CPU know what instruction the pattern means
Explanation:
When the CPU executes the instructions, it interprets the opcode part of the instruction into individual microprograms, containing their microcode equivalents. Just so you know, a full assembly instruction consists of an opcode and any applicable data that goes with it, if required (register names, memory addresses).
The assembly instructions are assembled (turned into their binary equivalent 0s and 1s, or from now on, logic signals). These logic signals are in-turn interpreted by the CPU, and turned into more low-level logic signals which direct the flow of the CPU to execute the particular instruction.
The biggest security issue with using social networking sites to market your listings is Criminals may use social networking sites to identify your personal data.
<h3>What is a social marketing site?</h3>
A social marketing site is a site where people from around the world are connected in one place and share their thoughts and photos and other data.
The social sites are on the internet and there is a chance of stealing data and it identity theft, phishing, online predators, internet fraud, and other cybercriminal attacks are also some risks.
Thus, the largest security concern with using social networking sites to sell your listings is that thieves could use these sites to find personal information about you.
To learn more about social marketing sites, refer to the link:
brainly.com/question/15051868
#SPJ4
Answer:
one, because the consumers of news are no longer interested in worlwide events, but rather on events that are happening close to them, and in a form affect them directly, and second, because it is cheaper to cover gossip, and it generates more profitability for media broadcasters, than speaking about events that have no impact on people´s interests.