Today personal computer is changed to laptop mode. Personal computer is made of CPU, monitor, keyboard, printer and mouse. All input device and output device connected with wire or without wire.
<u>Explanation:</u>
Personal computers are also called as desktop or workstation. These days all become compatible device which is called as laptop.
Basically all input devices and output device are fixed in laptop so end user can carry the laptop and used anywhere.
Laptop is charged and used, whereas desktop or workstation just fixed in the table and used it.
Answer:
The code will give an error that is "At least one public class is required in main file".
Explanation:
In the given code if we do not use the public access modifier to the class. It will give an error so, the correct code to this question as follows:
Program:
import java.util.HashSet; //import package
public class A //define class as public.
{
public static void main(String[ ] args) //define main method.
{
HashSet set = new HashSet(); //creating hashset object.
set.add("A"); //add alphabet in hashset
set.add("B"); //add alphabet in hashset
set.add("C"); //add alphabet in hashset
System.out.print("Size of HashSet is :"set.size()); //print the size of hashset.
}
}
Output:
Size of HashSet is : 3
Explanation of the program:
- In the above program, we define a public class that is "A" and inside the class, we define the main method.
- Inside the main method, we create a HashSet class object that is "set".
- To add elements in HashSet we use add() function that adds elements and in the last, we use the size() function that prints the size HashSet.
Answer:
Yes there is
Explanation:
It is scratch a coding game to do almost anything you can also code flappybird
Hope this helps.
Have fun with scratch
The function use to get the number of element in a dictionary is len.
<h3>What is a dictionary?</h3>
Dictionaries are used to store data values in key-value pairs. Dictionary are ordered.
Dictionary in python are express as follows:
my_dict = {"name": "Michael", "age": 28, "school": "Oxford"}
Therefore, the length of the element of the dictionary can be gotten using the len() function.
Hence,
print(len(my_dict)) will give you the length of the element.
learn more on dictionary here: brainly.com/question/14120893
#SPJ11
Answer: Sounds like you are talking about “Distributed memory systems” which use multiple computers to solve a common problem, with computation distributed among the connected computers (nodes) and using message-passing to communicate between the nodes.