[Imic] de Test Danh Gia Kt Hoc Vien - 01

Embed Size (px)

DESCRIPTION

Đề thi IMIC

Citation preview

CNG TY CP IMIC - O TO V PHT TRIN CNG NGHTr s chnh: Tng 2B, ta nh T6-08 Tng Cc V B Cng Anin thoi: (043) 7557 666 (043) 7557 333 Email: [email protected] - Website: www.imic.edu.vn

TRC NGHIM LP TRNH JAVAThi gian: 30 minute

Cc hc vin c k tng cu hi v bi vng vi mi p n ng. Khi np bi lm cn lu theo format: _. V d: PHAMTHANHTRANG_EXAM01. Bi lm np ko ng qui nh th bi s b hy v ko tnh im.Cu hi 01: Trong SQL Server, khi mun chn ra tp bn ghi ko cha gi tr trng lp trong mt trng thng tin c ch nh no th s dng pht biu no di y: (0,2)a. Distancesb. Distancec. Distinct d. DistinctsCu hi 02: Trong SQL Server, khi mun thc thi phn quyn cho thnh vin c php SELECT, INSERT, UPDATE, DELETE trn 1 thc th no ta s s dng pht biu no di y: (0,2)a. Grants select;insert;update;delete in tblStudents for hieunmb. Grants select,insert,update,delete in tblStudents for hieunmc. Grant select;insert;update;delete on tblStudents to hieunmd. Grant select,insert,update,delete on tblStudents to hieunmCu hi 03: Trong SQL Server, lm th no bn chn c tt c cc bn ghi t 1 bng tn l tblStudents vi iu kin trng LastName l k t alphabetically trong khong LastName = Johns v LastName = Pettersen? (1)Cu hi 04: Trong SQL Server, yu cu to ra mt th tc c tn SP_GetStudentById nhn vo mt tham s Id (s nguyn) , thc thi x l tr v ton b thng tin lin quan n sinh vin (tblStudents) c m id tng ng: (1)Cu hi 05: Trong khi thc hin phn tch tng yu cu nghip v (requitments) ca khch hng th cn phi ch ra c nhng yu t no? (0,2)Cu hi 06: Bn tnh cht ca OOP(Object Oriented Programming) l nhng tnh cht no? (0,2)

Cu hi 07: Cho mt lp i tng c tn Controllers c cc phng thc ln lt nh sau: (0,25)publicclass Controllers {public static String PrintInfo(studentEn obj){return"Id: "+ obj.getId() + " - fullName: "+ obj.getFullName();}public static String PrintInfo(int id, String fullName){return"Id: "+ id + " - fullName: "+ fullName;}}Khi lp i tng khc mun thc thi vi phng thc PrintInfo trong Controllers th s nh ngha x l ra sao? (0,2)Cu hi 08: Khi thc hin on code x l bn di bin sum s nhn c gi tr bao nhiu? (0.25)public static void main(String[] args){ int sum=0; for(int i=0;i