im not sure to be exact , but i think its england. i have done an assignment in the past and that was the awnser.....hope i help
Answer:
The output will be:
B
o
n
d
0
0
7
Explanation:
Given code is of Python language
Let us look at the code line by line
The first line is:
my_list = [7, 0, 0, "d", "n", "o", "B"]
This line will create a list with the given elements.
my_list.reverse()
This line will reverse the sequence of the elements of the list
for thing in my_list:
print (thing)
These lines will simply print the reversed elements of the list on screen.
The output will be:
B
o
n
d
0
0
7
Answer:
#include <iostream>
using namespace std;
int * reverse(int a[],int n)//function to reverse the array.
{
int i;
for(i=0;i<n/2;i++)
{
int temp=a[i];
a[i]=a[n-i-1];
a[n-i-1]=temp;
}
return a;//return pointer to the array.
}
int main() {
int array[50],* arr,N;//declaring three variables.
cin>>N;//taking input of size..
if(N>50||N<0)//if size greater than 50 or less than 0 then terminating the program..
return 0;
for(int i=0;i<N;i++)
{
cin>>array[i];//prompting array elements..
}
arr=reverse(array,N);//function call.
for(int i=0;i<N;i++)
cout<<arr[i]<<endl;//printing reversed array..
cout<<endl;
return 0;
}
Output:-
5
4 5 6 7 8
8
7
6
5
4
Explanation:
I have created a function reverse which reverses the array and returns pointer to an array.I have also considered edge cases where the function terminates if the value of the N(size) is greater than 50 or less than 0.
Answer:
SELECT paintname, COUNT(paintname) as count_paintname
FROM paint
GROUP BY paintname HAVING COUNT(paintname) > 2
ORDER BY paintname
Explanation:
The structured query language or SQL statement returns two columns of paintname and the count of the distinct paint names in the paint table with rows of grouped paint names greater than two and in the ascending order of the names.