Certification Details



Download 0,83 Mb.
Pdf ko'rish
bet9/10
Sana28.12.2022
Hajmi0,83 Mb.
#896687
1   2   3   4   5   6   7   8   9   10
Bog'liq
5413 Java11-Programmer Study-Guide V11-update incl-5278

D

2. 
A
;


)
Sample Questions
3. 
Given the code fragment:
10.
var lst = List.of(1, 2, 3, 4);
11.
lst.replaceAll(x -> x + 100);
12.
System.out.println(“-Completed-”);
Which action enables to print -Completed-?
A. Replacing line 10, with 
List lst = List.of(1,2,3,4);
B. Replacing line 11, with
lst.replaceAll(x = x + 100);
C. Replacing line 10, with
var lst = Arrays.asList(1, 2, 3, 4);
D. Replacing line 11, with
lst.forEach(x -> x + 100);
4.
Which two are guidelines for preventing denial of service attacks? 
A. Release resources in all cases. 
B. Resource limit checks should not suffer from numeric overflow.
C. Purge sensitive information from exceptions.
D. Validate file formats before processing untrusted files.
E. Make 
public static
fields 
final
.
F. Use mutable classes whenever possible.
Answers 
3. 
C

4. 
A | B


)
Sample Questions
5.
Given:
public class Client { 
static void doCalc(byte... a) { 
System.out.print("byte..."); 

static void doCalc(long a, long b) { 
System.out.print("long, long"); 
}
static void doCalc(Byte s1, Byte s2) { 
System.out.print("Byte, Byte"); 
}
public static void main (String[] args) { 
byte b = 5;
doCalc(b, b); 

}
A.
byte

B.
long, long
C.
Byte, Byte
D.
compilation error
Answers 
5. 
B



Download 0,83 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish