<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2458059276763005257</id><updated>2011-11-27T16:11:29.057-08:00</updated><category term='Language_Fundamentals'/><title type='text'>Exam Practice Questions &amp; Answers</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://examprac.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://examprac.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Survivor</name><uri>http://www.blogger.com/profile/01210002569673338413</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2458059276763005257.post-3192096589582256808</id><published>2007-04-16T02:50:00.000-07:00</published><updated>2007-04-16T03:04:00.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Language_Fundamentals'/><title type='text'>Question 6</title><content type='html'>Which will legally declare, construct and initialize an array?&lt;br /&gt;&lt;br /&gt;A. int [] mylist = { "1", "2", "3"};&lt;br /&gt;B. int [] mylist = (5, 8, 2);&lt;br /&gt;C. int mylist [] [] = {4, 9, 7, 0};&lt;br /&gt;D. int mylist [] = { 4, 3, 7};&lt;br /&gt;E. int [] myList = [3, 5, 6];&lt;br /&gt;F. int myList [] = {4; 6; 5};&lt;br /&gt;&lt;br /&gt;Answer: D&lt;br /&gt;&lt;br /&gt;The rest are wrong because&lt;br /&gt;&lt;br /&gt;A: The array is of type int but the values assigned are String literals.&lt;br /&gt;B: Curly braces should be used instead of ( ).&lt;br /&gt;C: Provides initial values for one dimension, even though the array is two dimensional.&lt;br /&gt;E: Curly braces should be used instead of [].&lt;br /&gt;F. Commas should be used to seperate the values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2458059276763005257-3192096589582256808?l=examprac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://examprac.blogspot.com/feeds/3192096589582256808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2458059276763005257&amp;postID=3192096589582256808' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/3192096589582256808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/3192096589582256808'/><link rel='alternate' type='text/html' href='http://examprac.blogspot.com/2007/04/question-6.html' title='Question 6'/><author><name>Survivor</name><uri>http://www.blogger.com/profile/01210002569673338413</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2458059276763005257.post-7025904321173296615</id><published>2007-04-16T02:42:00.000-07:00</published><updated>2007-04-16T02:47:41.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Language_Fundamentals'/><title type='text'>Question 5</title><content type='html'>Consider the following lines of code:&lt;br /&gt;&lt;br /&gt;int [] x = new int[25];&lt;br /&gt;&lt;br /&gt;After execution, which statement or statements are true?&lt;br /&gt;&lt;br /&gt;A. x[24] is 0.&lt;br /&gt;B. x[24] is undefined.&lt;br /&gt;C. x[25] is 0.&lt;br /&gt;D. x[0] is null.&lt;br /&gt;E. x.length is 25.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Answer : A, E&lt;br /&gt;&lt;br /&gt;The array index is from 0 to 24. It has 25 elements which are all initialized to the default value of the data type of the array.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2458059276763005257-7025904321173296615?l=examprac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://examprac.blogspot.com/feeds/7025904321173296615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2458059276763005257&amp;postID=7025904321173296615' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/7025904321173296615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/7025904321173296615'/><link rel='alternate' type='text/html' href='http://examprac.blogspot.com/2007/04/question-5.html' title='Question 5'/><author><name>Survivor</name><uri>http://www.blogger.com/profile/01210002569673338413</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2458059276763005257.post-1809174441594337741</id><published>2007-04-16T02:35:00.000-07:00</published><updated>2007-04-16T02:40:44.453-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Language_Fundamentals'/><title type='text'>Question 4</title><content type='html'>If all three top - level elements occur in one source file, they must appear in which order?&lt;br /&gt;&lt;br /&gt;A. Imports, package declaration, classes&lt;br /&gt;&lt;br /&gt;B. Classes, Imports, package declaration&lt;br /&gt;&lt;br /&gt;C. Package declaration should come first; order for imports and class definitions is not    &lt;br /&gt;     significant.&lt;br /&gt;&lt;br /&gt;D. Package declaration, imports, classes&lt;br /&gt;&lt;br /&gt;E. Imports must come first; order for package declaration and class definitions is not significant.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Answer: D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2458059276763005257-1809174441594337741?l=examprac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://examprac.blogspot.com/feeds/1809174441594337741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2458059276763005257&amp;postID=1809174441594337741' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/1809174441594337741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/1809174441594337741'/><link rel='alternate' type='text/html' href='http://examprac.blogspot.com/2007/04/question-4.html' title='Question 4'/><author><name>Survivor</name><uri>http://www.blogger.com/profile/01210002569673338413</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2458059276763005257.post-6567304535995209693</id><published>2007-04-16T02:28:00.000-07:00</published><updated>2007-04-16T02:34:46.770-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Language_Fundamentals'/><title type='text'>Question 3</title><content type='html'>Which of the following signatures are valid for the main method entry point of the application?&lt;br /&gt;&lt;br /&gt;A. public static void main()&lt;br /&gt;B. public static void main(String arg[])&lt;br /&gt;C. public void main(String [] arg)&lt;br /&gt;D. public static void main(String [] args)&lt;br /&gt;E. public static int main(String [] arg)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Answer: B, D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2458059276763005257-6567304535995209693?l=examprac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://examprac.blogspot.com/feeds/6567304535995209693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2458059276763005257&amp;postID=6567304535995209693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/6567304535995209693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/6567304535995209693'/><link rel='alternate' type='text/html' href='http://examprac.blogspot.com/2007/04/question-3.html' title='Question 3'/><author><name>Survivor</name><uri>http://www.blogger.com/profile/01210002569673338413</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2458059276763005257.post-3624272683335760758</id><published>2007-04-16T02:16:00.000-07:00</published><updated>2007-04-16T02:25:08.403-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Language_Fundamentals'/><title type='text'>Question 2</title><content type='html'>Choose valid identifiers from those listed below.&lt;br /&gt;&lt;br /&gt;A.BigO1LongStringWithMeaninglessName&lt;br /&gt;B.$Int&lt;br /&gt;C.bytes&lt;br /&gt;D.$1&lt;br /&gt;E.finalist&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Answer: A, B, C, D, E&lt;br /&gt;&lt;br /&gt;An identifier must begin with a letter, a dollar sign ($) or an underscore; subsequent characters maybe letters, dollar signs, underscores or digits.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2458059276763005257-3624272683335760758?l=examprac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://examprac.blogspot.com/feeds/3624272683335760758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2458059276763005257&amp;postID=3624272683335760758' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/3624272683335760758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/3624272683335760758'/><link rel='alternate' type='text/html' href='http://examprac.blogspot.com/2007/04/question-2.html' title='Question 2'/><author><name>Survivor</name><uri>http://www.blogger.com/profile/01210002569673338413</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2458059276763005257.post-3512919131326816626</id><published>2007-04-14T12:47:00.000-07:00</published><updated>2007-04-16T03:35:46.887-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Language_Fundamentals'/><title type='text'>Question 1</title><content type='html'>A signed data type has an equal number of non- zero positive and negative values available.&lt;br /&gt;&lt;br /&gt;A. True&lt;br /&gt;&lt;br /&gt;B. False&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Answer : B&lt;br /&gt;&lt;br /&gt;For each signed data type, the exponent of 2 in the minimum and maximum is one less than the size of the type.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Helpful Links to understand this question:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://www.cafeaulait.org/course/week2/02.html"&gt;&lt;strong&gt;Java Primitive Data Types&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;This tutorial gives a comprehensive explanation about the 8 primitive data types in Java.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2458059276763005257-3512919131326816626?l=examprac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://examprac.blogspot.com/feeds/3512919131326816626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2458059276763005257&amp;postID=3512919131326816626' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/3512919131326816626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2458059276763005257/posts/default/3512919131326816626'/><link rel='alternate' type='text/html' href='http://examprac.blogspot.com/2007/04/question-1.html' title='Question 1'/><author><name>Survivor</name><uri>http://www.blogger.com/profile/01210002569673338413</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
