Whichdeterminesif“prefs”isadirectoryandexistsonthefilesystem?() A.Booleanexists=Directory.exists(“prefs”);B.Booleanexists=(newFile(“prefs”)).isDir();C.Booleanexists=(newDirectory(“prefs”)).exists();D.Booleanexists=(newFile(“prefs”)).isDirectory();E.Booleanexists=true;Try{Directoryd=newDirectory(“prefs”);} catch(FileNotFoundExceptione){exists=false;}
Whichdeterminesif“prefs”isadirectoryandexistsonthefilesystem?()
A.Booleanexists=Directory.exists(“prefs”);
B.Booleanexists=(newFile(“prefs”)).isDir();
C.Booleanexists=(newDirectory(“prefs”)).exists();
D.Booleanexists=(newFile(“prefs”)).isDirectory();
E.Booleanexists=true;Try{Directoryd=newDirectory(“prefs”);} catch(FileNotFoundExceptione){exists=false;}
相关考题:
SharedPreferences保存文件的路径和扩展名是()。 A./data/data/shared_prefs/*.txtB./data/data/package name/shared_prefs/*.xmlC./mnt/sdcard/指定文件夹指定扩展名D.任意路径指定扩展名
Youexecutedthefollowingcommands:SQLALTERSESSIONSETOPTIMIZER_USE_PENDING_STATISTICS=false;SQLEXECUTEDBMS_STATS.SET_TABLE_PREFS(’SH’,’CUSTOMERS’,’PUBLISH’,’false’);SQLEXECUTEDBMS_STATS.GATHER_TABLE_STATS(’SH’,’CUSTOMERS’);WhichstatementiscorrectregardingtheabovestatisticscollectionontheSH.CUSTOMERStableintheabovesession?()A.Thestatisticsarestoredinthependingstatisticstableinthedatadictionary.B.Thestatisticsaretreatedasthecurrentstatisticsbytheoptimizerforallsessions.C.Thestatisticsaretreatedasthecurrentstatisticsbytheoptimizerforthecurrentsessionsonly.D.Thestatisticsaretemporaryandusedbytheoptimizerforallsessionsuntilthissessionterminates.
Examine this command:SQL exec DBMS_STATS.SET_TABLE_PREFS (‘SH’, ‘CUSTOMERS’, ‘PUBLISH’, ‘false’);Which three statements are true about the effect of this command?() A. Statistics collection is not done for the CUSTOMERS table when schema stats are gathered.B. Statistics collection is not done for the CUSTOMERS table when database stats are gathered.C. Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time.D. Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as pending statistics.E. Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as pending statistics.
Examinethecommand:SQLDBMS_STATS.SET_TABLE_PREFS(’SH’,’CUSTOMERS’,’PUBLISH’,’false’);Whichstatementdescribestheeffectoftheabovecommand() A.AutomaticstatisticscollectionisstoppedfortheCUSTOMERStable.B.StatisticsfortheCUSTOMERStablearelockedandcannotbeoverwritten.C.ExistingstatisticsfortheCUSTOMERStablebecomeunusableforthequeryoptimizer.D.Subsequently,statisticsgatheredontheCUSTOMERStablearestoredaspendingstatistics