in Education by
a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == operator. c. What is meant by precedence of operators? d. Name any two library packages. e. Differentiate between explicit and implicit type conversion. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Answer: a the char data occupies two bytes whereas int data occupies four bytes b First of all = is a assignment operator and == is a comparison operator. = operator is used to assign value to a variable and == operator is used to compare two variable or constants. The left side of = operator can not be a constant, while for == operator both sides can be operator.

Related questions

0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    d. Arrange the following operators from the lowest to the highest precedence. != % && ++ Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    a. What is abstraction? How it is different from inheritance? b.Differentiate between compiler and interpreter. c. ... final keyword. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    a. What is abstraction? How it is different from inheritance? b.Differentiate between compiler and interpreter. c. ... final keyword. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    write a program to evaluate the arithmetic statement. X=A-B+C*(D*E-F)/G+H*K a) Using a general ... zero -address operation instruction. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    a,b,c and d are int type, however, the expression is slightly modified as (a+b*c-d)/7.0. ... of the following mathematical expression? Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    a,b,c and d are int type, however, the expression is slightly modified as (a+b*c-d)/7.0. ... of the following mathematical expression? Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    Which is a valid declaration within an interface? A)protected short stop = 23; b)final void madness(short stop); ... (double duty);? Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    Write the output for the following i) char c = ‘A’ ; int m = 26 ; int n = c + m ; System.out.println(“ n = “ +n) ; Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Write the output for the following i) char c = ‘A’ ; int m = 26 ; int n = c + m ; System.out.println(“ n = “ +n) ; Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    2.A feature of Microsoft Word which is used to create multiple copies of letters and e-mails is (a) Mail (b) ... merge (d) data source Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    5. Differentiate between natural and synthetic fibres. State any three advantages of synthetic fibres over natural fibres, Select the correct answer from above options...
asked Dec 4, 2021 in Education by JackTerrance
0 votes
0 votes
    . Accept 8 digit number. Separate 8 digits into 4 parts. Display appropriate message in case of number with less ... again as abcd Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
...