B. true
RAM (Random Access Memory) is volatile because if power is lost, so is your memory.
Answer:
Technology refers to methods, systems, and devices which are the result of scientific knowledge being used for practical purposes. Technology is changing fast. They should be allowed to wait for cheaper technologies to be developed.
I want to start playing!! it seems super cool, don’t know much ab it but i like paimon lol
Answer:
import java.util.Arrays;
import java.util.Scanner;
public class num4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("How many numbers? ");
int n = in.nextInt();
int []intArray = new int[n];
//Entering the values
for(int i=0; i<intArray.length;i++){
System.out.println("Enter the numbers");
intArray[i]=in.nextInt();
}
System.out.println(Arrays.toString(intArray));
int min =intArray[0];
for(int i =0; i<intArray.length; i++){
if(min>intArray[i]){
min = intArray[i];
}
}
System.out.println("The Minimum of the numbers is "+min);
}
}
Explanation:
- Using Java programming language
- Prompt the user for the number of values
- Using Scanner class receive and store in a variable
- Create an array of size n
- Using an for loop continuously ask the user to enter the integers
- Print the array of integers
- Using another for loop with an if statement, find the smallest element in the array of numbers
- Output the the smallest number
Answer:
In opp friend function is a function that gives the same access to private and protected data. It is declared in class that is granting access.
Explanation:
#include<iostream.h>
using namespace std;
class Sum
{
int a, b, add;
public:
void input()
{
cout << "Enter the value of l and m:";
cin >> l>>m; taking input from users
}
friend void add(sum &t);
void display()
{
cout << "The sum is :" << z;
}
};
void add(sum & p)
{
p.add = p.a + p.b;
}
int main()
{
sum p1;
p1.input();
add(p1);
p1.display();
return false;
if(display==5)
{
return true; //true is returned if sum is equal to 5
}
else //if they are not the same
{
return false;
}
}