Which of the following functions does a browser perform?
A. Links you to the web.
A. Links you to the web, is your answer, this is because some browsers are, Firefox, google chrome. What do these sites do? They link you to the web to find what ever your looking for, from information to buying something. So this is why your answer is A. Links you to the web.
Hope I helped ya!! xD
Answer:
The correct option for the given question is option(B) i.e dot operator
Explanation:
Structure are collection of different datatypes member element .
Let us consider the example of structure
Struct test
{
int age ;
char name[45];
};
Here test is an "structure" which member is age of "integer" type and name of "String" type.if we have to access the member of structure,firstly we create structure variable name then after that we use dot operator which is also known as member access operator that access the members of structure.
struct test op;// structure variable name
op.age=12; // access the member age
For example
Following is the code in c language :
#include <stdio.h> // header file
struct test // structure declaration
{
int age ;
char name[45];
};
int main() // main function
{
struct test op;// structure variable name
op.age=12; // access the member age
printf("%d",op.age);
return 0;
}
Output:12
so correct answer is "dot operator"
Answer:
The program to this question can be described as follows:
Program:
#include <iostream> //defining header file
using namespace std;
int main() //defining main method
{
int x1,rem,i=1; //defining integer variable
long Num=0;// defining long variable
cout << "Input a decimal number: "; // print message
cin >> x1; //input value by user
while (x1!=0) //loop for calculate binary number
{
//calculating binary value
rem= x1%2;
x1=x1/2;
Num =Num +rem*i;//holding calculate value
i=i*10;
}
cout <<Num;//print value
return 0;
}
Output:
Input a decimal number: 76
1001100
Explanation:
In the above code, four variable "x1, rem, i, and Num" is declared, in which three "x1, rem, and i" is an integer variable, and one "Num" is a long variable.
- In the x1 variable, we take input by the user and use the while loop to calculate its binary number.
- In the loop, first, we check x1 variable value is not equal to 0, inside we calculate it binary number that store in long "Num" variable, after calculating its binary number the print method "cout" is used to prints its value.
Answer:
O(n)
Explanation:
If we chose to push an element at the end of the list instead of the front, the push operation will have a complexity of O(n) where 'n' represents the number of existing elements of the list. This is because the operation will involve iterating through the entire list of size n via pointers and adding the new element at the end. So the time complexity will be n*O(1) or O(n).
A variable that holds an address is known as a pointer variable.
Such variable "points" to location of memory in computer, the location can be another variable, primitive data type, object and more.
The answer is therefore B.
Hope this helps.
r3t40