Answer:
See explaination
Explanation:
#include<iostream>
#include<map>
using namespace std;
bool contains(int arr[], int size){
map<int,int> nums;
for(int i=0; i< size; i++) nums[arr[i]]=1;
int product;
for(int i=0; i<size-1; i++){
for(int j=i+1;j<size;j++){
product = arr[i]*arr[j];
if (nums[product]==1) return true;
}
}
return false;
}
int main(){
int arr[] ={6,4,-3,-2,0,5};
cout<<boolalpha <<contains(arr,5)<<endl;
return 0;
}
Answer:
When images or graphics excessively occupy most of the space on the page.
<u>Explanation:</u>
For example, if you observed the attached image you'll see a bad example in which the image excessively occupies most of the space on the page making the written text difficult to read.
Next, a good example of proper editing is found in the next image, which shows the written text properly aligned with the text.
D because you are always supposed to use your schedule
Answer:
The output is "<class 'str'> ".
Explanation:
In the given python code a print() function is defined. Inside this function, a type() function will use, in which a numeric value is passed in the double quotes (" ") as a function parameter. Double quotes are normally used for print value as a message but in this code, value is not printed because we use the type() function.
- The type() function Returns the parameter class type of the argument(object).
- This function is used for debugging. In this function, we pass a single parameter that will return the type of given object.