Answer:
1 will be stored in result
Explanation:
Given
The lines of code
Required
Determine the value stored in result
The value stored in result is determine by the condition (x<3 && y ==6)
In the first line, the value of x is 2 and the value of y is 6
So: x<3 is true because x = 2 and 2 is less than 3
y == 6 is also true because y = 6 and 6 is equal to 6
So, the condition (x<3 && y ==6) is true and true will be saved in variable result
Because result is a Boolean variable which can only take true or false value
1 represents true
0 represents false
<em>So, 1 will be stored in result</em>
A part-time job would provide on-the-job experience while also giving him a flexible schedule competing with school.
Answer:
// here is code in c++.
#include <bits/stdc++.h>
using namespace std;
// function that return greatest common divisor
int g_c_d(int num1, int num2)
{
if (num1 == 0)
return num2;
return g_c_d(num2 % num1, num1);
}
// main function
int main()
{
// variables
int num1,num2;
cout<<"enter two numbers:";
// read two numbers from user
cin>>num1>>num2;
// call the function and print the gcd of both
cout<<"greatest common divisor of "<<num1<<" and "<<num2<<" is "<<g_c_d(num1.num2)<<endl;
}
Explanation:
Read two numbers from user and assign them to variables "num1" and "num2".Call the function g_c_d() with parameter "num1" and "num2".According to Euclidean algorithm, if we subtract smaller number from the larger one the gcd will not change.Keep subtracting the smaller one then we find the gcd of both the numbers.So the function g_c_d() will return the gcd of both the numbers.
Output:
enter two numbers:5 9
greatest common divisor of 5 and 9 is 1
enter two numbers:-25 15
greatest common divisor of -25 and 15 is 5
Answer:
B. adware
Explanation:
An adware refers to programs that show advertisements on your computer in different forms like a pop up or a banner display. This type of software install itself on your computer without your permission and it can also redirect your searches and gather information. According to this, the program on Gipsi's system is an adware.
Answer:
Exponential.
Explanation:
The router is a network device that route packets to its destination through a path on its routing table. The routing table contains the path to the next hop count of the destination network. A path or route could be learnt statically or dynamically.
Static routes are learnt based on direct connection to other router or a hard coded path configuration. A dynamic route is learnt through a routing protocol. RIP, EIGRP, OSPF, IS-IS are examples of routing protocols.
The OSPF or open shortest path first is a protocol that uses algorithm, load cost and other metrics to determine paths for packets. The exponential algorithm is used by the OSPF to determine the shortest and noise-free path to a destination.