Answer:
The solution code is written in R script.
- #string variable
- character_str<- "Hello World"
- #logical variable
- logic <- a > b
- #Missing value
- myVec <-c(1, 2, 3, NA)
- #Use class to check data type
- class(character_str)
- class(logic)
- class(myVec)
Explanation:
A string variable is a variable that hold a string (the letters enclosed within quotation marks) (Line 2)
A logical variable is a variable that hold a logical value (either True or False). The logical value is created by comparing two variables (Line 5).
In R, missing value is an unknown value which is represented by NA symbol (Line 8).
We can use in-built method <em>class </em> to check for the variable type in R (Line 11-13). For example, the output of <em>class(character_str)</em> is "<em>character</em>"
Answer:
age=int(input("Enter age"))
if age>=18:
print("You are Young")
else
print("You are child")
Explanation:
if you have any query or any problem kindly ask in comment
A, S, D, F, G, H, J, K, L, <semi colon ( ; ) and apostrophe ( ' ) as the last two on the right, in front of enter>
Answer:
1.RGB: Best for projects intended to be used on the web or video
Explanation:
On websites or making project RGB combination of colors is used. This combination of colors is used to store images in electronic components.
2. CMYK: best for professional printing projects using process colors
Explanation:
Printing professional use CMYK combinations of color for better printing results.
3.) indexed:The only colors saved are the colors used in the image
To manage digital images we use Indexed mode of colors.
Explanation:
4.) bitmap: uses black and white
Explanation:
bitmap is the combination of the black and white colors. As the images are large in size so that, to reduce the size of the image we store image in bitmap to reduce the size.
5.) gray scale: uses different shades of grey
Explanation:
The different shades of gray colors are found in the gray scale. These shades are used to produce images.