Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Zadanie / Problem 1 - Operator new is used to: a ) defining new classes b ) creating objects of classes c ) assigning values

Zadanie/Problem 1-
Operator new is used to:
a) defining new classes
b) creating objects of classes
c) assigning values to variables
d) defining methods
Zadanie/Problem 2
After 'int a=3,b=a2,c=b>>3' the values of variables b and c are
a)12,0
b)5,1
c)5,0
d)12,1
Zadanie/Problem 3.
After executing instructions 'String s1="M", s2="H";' and 's2= s1;', the reference to string "M" is contained in variable(s):
a) none of them
b) both s1 and s2
c) s2
d)s1
Zadanie/Problem 4
After definition 'String[][] null, {"A", null,"U"},{"W"}};', out of the expressions 'a[0][1].length()' and 'a[1][0]. length()' correct ones are
a) only the second
b) both
c) none of them
d) only the first
Zadanie/Problem 5q,
Instruction 'String [] arr=new String [3] ; creates one local reference arr and
a) array of three references to object of class String and three object of this class
b) three object of class
String c) array of three references to object of class String d) nothing more
Zadanie/Problem 6-
Variables of type long occupy in memory:
a)4 bytes
b)8 bits
c)4 or 8 bytes, depending on platform
d)8 bytes
Zadanie/Problem 7
Reference this can be used only in
a) static functions
b) constructors, nonstatic methods and static functions
c) constructors and
nonstatic methods
d) constructors and static functions
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions

Question

Find the exact function value, if it exists. sin 120

Answered: 1 week ago