1) Which of the following languages can be used to write server side scripting in ASP.NET?
a) C-sharp
b) VB
c) C++
d) (your answer) a and b - correct answer
2) When an .aspx page is requested from the web server, the out put will be rendered to browser
in following format.
a) (your answer) HTML - correct answer
b) XML
c) WML
d) JSP
3) The Asp.net server control, which provides an alternative way of displaying text on web page, is
a) (your answer) < asp:label > - correct answer
b) < asp:listitem >
c) < asp:button >
4) The first event to be triggered in an aspx page is.
a) Page_Load()
b) (your answer) Page_Init() - correct answer
c) Page_click()
5) Postback occurs in which of the following forms.
a) Winforms
b) HTMLForms
c) (your answer) Webforms - correct answer
6) What namespace does the Web page belong in the .NET Framework class hierarchy?
a) System.web.UI.Page - correct answer
b) System.Windows.Page
c) (your answer) System.Web.page
7) Which method do you invoke on the Data Adapter control to load your generated dataset?
a) (your answer) Fill( ) - correct answer
b) ExecuteQuery( )
c) Read( )
8) How do you register a user control?
a) (your answer) Add Tag prefix, Tag name
b) Add Source, Tag prefix
c) Add Src, Tagprefix, Tagname - correct answer
9) Which of the following is true?
a) User controls are displayed correctly in the Visual Studio .NET Designer
b) Custom controls are displayed correctly in VS.Net Designer - correct answer
c) (your answer) User and Custom controls are displayed correctly in the Visual
Studio .NET Designer.
10) To add a custom control to a Web form we have to register with.
a) TagPrefix
b) Name space of the dll that is referenced
c) Assemblyname
d) (your answer) All of the above - correct answer
11) Custom Controls are derived from which of the classes
a) System.Web.UI.Webcontrol
b) (your answer) System.Web.UI.Customcontrol
c) System.Web.UI.Customcontrols.Webcontrol - correct answer
12) How ASP.Net Different from classic ASP?
a) Scripting is separated from the HTML, Code is interpreted seperately
b) (your answer) Scripting is separated from the HTML, Code is compiled as a DLL,
the DLLs can be executed on server - correct answer
c) Code is separated from the HTML and interpreted Code is interpreted separately
13) What's the difference between Response.Write() andResponse.Output.Write()?
a) Response.Output.Write() allows you to flush output
b) Response.Output.Write() allows you to buffer output
c) (your answer) Response.Output.Write() allows you to write formatted output -
correct answer
d) Response.Output.Write() allows you to stream output
14) Why is Global.asax is used?
a) (your answer) Implement application and session level events - correct answer
b) Declare Global variables
c) No use
15) There can be more than 1 machine.config file in a system
a) (your answer) True - correct answer
b) False
16) What is the extension of a web user control file?
a) .Asmx
b) (your answer) .Ascx - correct answer
c) .Aspx
17) Which of the following is true?
a) IsPostBack is a method of System.UI.Web.Page class
b) IsPostBack is a method of System.Web.UI.Page class
c) (your answer) IsPostBack is a readonly property of System.Web.UI.Page class -
correct answer
18) The number of forms that can be added to a aspx page is.
a) (your answer) 1 - correct answer
b) 2
c) 3
d) More than 3
19) How do you manage states in asp.net application
a) Session Objects
b) Application Objects
c) Viewstate
d) (your answer) All of the above - correct answer
20) Which property of the session object is used to set the local identifier?
a) SessionId
b) (your answer) LCID - correct answer
c) Item
d) Key
21) Select the caching type supported by ASP.Net
a) Output Caching
b) DataCaching
c) (your answer) a and b - correct answer
d) none of the above
22) Where is the default Session data is stored in ASP.Net?
a) (your answer) InProcess - correct answer
b) StateServer
c) Session Object
d) al of the above
23) Select the type Processing model that asp.net simulate
a) (your answer) Event-driven - correct answer
b) Static
c) Linear
d) Topdown
24) Does the EnableViewState allows the page to save the users input on a form?
a) (your answer) Yes - correct answer
b) No
25) Which DLL translate XML to SQL in IIS?
a) (your answer) SQLISAPI.dll - correct answer
b) SQLXML.dll
c) LISXML.dll
d) SQLIIS.dll
26) What is the maximum number of cookies that can be allowed to a web site?
a) 1
b) 10
c) (your answer) 20 - correct answer
d) More than 30
27) Select the control which does not have any visible interface.
a) Datalist
b) DropdownList
c) (your answer) Repeater - correct answer
d) Datagrid
28) How do you explicitly kill a user session?
a) Session.Close( )
b) Session.Discard( )
c) (your answer) Session.Abandon - correct answer
d) Session.End
e) Session.Exit
29) Which of the following is not a member of ADODBCommand object?
a) ExecuteReader
b) ExecuteScalar
c) ExecuteStream
d) (your answer) Open - correct answer
e) CommandText
30) Which one of the following namespaces contains the definition for IdbConnection?
a) System.Data.Interfaces
b) System.Data.Common
c) (your answer) System.Data - correct answer
d) System.Data.Connection
Can a dll run as stand alone application ?
• No
• Yes
• Sometimes we can make it by introducing some code
ANS : NO
Select the validation control used for “PatternMatching”
• FieldValidator
• RegularExpressionValidator
• RangeValidator
• PatternValidator
ANS : RegularExpressionValidator
How ASP.Net Different from ASP
• Scripting is separated from the HTML, Code is interpreted seperately
• Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs
can be executed on server
• Code is separated from the HTML and interpreted Code is interpreted
separately
ANS :Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be
executed on server
Which of the following is not a valid state management tool?
• Application State
• Hidden Form Field
• Querystate
• Cookies
ANS : Querystate
What is the maximum number of cookies that can be allowed to a web site
• 1
• 10
• 20
• 30
• More than 30
ANS : 20
The Asp.net server control, which provides an alternative way of displaying text on web
page, is
• < asp:label >
• < asp:listitem >
• < asp:button >
ANS : < asp:label >
What’s the difference between Response.Write() andResponse.Output.Write()?
• Response.Output.Write() allows you to flush output
• Response.Output.Write() allows you to buffer output
• Response.Output.Write() allows you to write formatted output
• Response.Output.Write() allows you to stream output
ANS : Response.Output.Write() allows you to write formatted output
How do you disable client side validation ?
• Set the language property to C#
• Set the Runat property to server
• Set the ClientTarget property to Downlevel
• Set the inherits property to codeb
ANS : Set the ClientTarget property to Downlevel
How do you post the current page to a different aspx page ?
• FORM ACTION="actiopage.aspx" RUNAT="server" method="post"
• FORM ACTION="actiopage.aspx" method="post"
• FORM id="Form1" method="post" runat="server"
ANS : FORM ACTION="actiopage.aspx" method="post"
Why is Global.asax is used for ?
• To implement application & Session level events
• To store configuration information
• To store styling information
• None of the above
ANS : To implement application & Session level events
Session Object classes are defined in which of the following namespace?
• System.Web.UI
• System.Web.SessionState
• System.Web
ANS : System.Web.SessionState
How to open more than one datareader at a time
• Use different datareader variable
• Use different datareader and connection variable
• Can not be done
ANS : Use different datareader and connection variable
How do you manage states in asp.net application
• Session Objects
• application Objects
• Viewstate
• Cookies
• All of the above
ANS : All of the above
Does the “EnableViewState” allows the page to save the users input on a form
• Yes
• No
ANS : Yes
Is it Possible to Serialize HashTable with XMLSerializer
• Yes
• No
ANS :Yes
What is the significance of Response.AddHeaders( )
• Adds HTTP Headers to output stream
• Adds <Header> Tag to rendered Page
• Add Headers to the web site
ANS : Adds HTTP Headers to output stream
The first event to be triggered in an aspx page is
• Page_Load()
• Page_Init()
• Page_click()
ANS : Page_Init()
What is the significance of Server .MapPath
• Returns the physical file path that corresponds to virtual specified path
• Returns the Virtual Path of the web folder
• Maps the specified virtual path to Physical path
• None
ANS : Returns the physical file path that corresponds to virtual specified path
Which property of the session object is used to set the local identifier ?
• SessionId
• LCID
• Item
• Key
ANS : LCID
Why do we use XMLSerializer class
• Remoting
• WebServices
• Xml documentary Files
ANS : WebServices.
What is the difference between Server.Transfer & Response.Redirect
• No Difference
• Server.Transfer needs a roundtrip, Response.Redirect does not
• Response.Redirect needs roundtrip, Server.Transfer does not
• Server.Transfer can transfer user between 2 applicaions
ANS : Response.Redirect needs roundtrip, Server.Transfer does not
How do we Delete, Update, Select data in a Dataset
• Using SQLDataAdapter
• Using SQLDataReader
• Using SQLCommand
• None
ANS : Using SQLDataAdapter
1) A local variable
a) Can be used anywhere in the program
b) (your answer) Is declared within a method - correct answer
c) Must accept a class
d) Represent a class object
2) An instance variable
a) is an object of a class
b) (your answer) represents an attribute of an object - correct answer
c) is a method of a class
d) a and c
3) Private Button print = new button();
a) creates a button control
b) initializes a button control
c) instantiates button control
d) a and b
e) (your answer) a and c - correct answer
4) An instance method
a) (your answer) Represents the behavior of an object - correct answer
b) Represents the attribute of an object
c) Represents another class
d) a and b
5) A Constructor
a) is used to create objects
b) must have the same name as the class it is declared within
c) maybe overloaded
d) b and c
e) (your answer) all of the above - correct answer
6) class Test: Form { }
a) Creates the class Test : Form
b) (your answer) Creates the class Test that inherits the class Form - correct
answer
c) Creates the class form that inherits the class Test
d) a and b
7) A variable declared inside a method is called a________variable
a) Static
b) Private
c) (your answer) Local - correct answer
d) Serial
e) b and d
8) Defining two methods with the same name but with different parameters is called.
a) Loading
b) (your answer) Overloading - correct answer
c) Multiplexing
d) Duplexing
9) Find any errors in the following BankAccount constructor: Public int BankAccount() { balance =
0; }
a) Name
b) Formal parameters
c) (your answer) Return type - correct answer
d) No errors
10) In the body of a method, C# uses the variable named_____to refer to the current object
whose method is being invoked.
a) call
b) (your answer) this - correct answer
c) do
d) that
11) String mystring; Creates a(n)
a) Class
b) Constructor
c) (your answer) Object - correct answer
d) a and b
12) An Event is
a) (your answer) The result of a users action - correct answer
b) result of a party
c) code to force users action
13) A delegate defines
a) a Wahsington representative
b) a class that encapsulates methods - correct answer
c) a means of passing arrays into methods
d) a substitue for an inherited method
14) Is it possible to pass methods as arguments for other methods without modification.
a) (your answer) True
b) False - correct answer
15) All interfaces must contain IDrivable
a) True
b) (your answer) False - correct answer
16) What is the proper header for a class that intends to use an interface.
a) class MyClass IFace
b) class MyClass ; IFace
c) (your answer) class MyClass : IFace - correct answer
d) class MyCalss {IFace}
e) class MyCalss(IFace)
17) In order for a class to use an interface, it must
a) inherit the properties of the interface
b) contain the same methods as the interface
c) create an interface objects
d) (your answer) a and b
e) all of the above - correct answer
18) Every class directly or indirectly extends the______class.
a) System
b) (your answer) Object - correct answer
c) Drawing
d) Console
19) The concept of composition specifies that you can.
a) Compose good code with C#
b) Compose C# projects with different objects - correct answer
d) Reduce errors by remaining composed during programming
e) (your answer) all of the above
20) Polymorphism occurs when the methods of the child class.
a) Override the parent class methods but maintain the implementation
b) (your answer) Maintain the same return type and arguments as the parent class,
but implement it differently - correct answer
c) Have different return types and arguments than the parent class
d) Are Virtual
21) To output the value of multidimensional array, Console.WriteLines(___)
a) (your answer) myArray[1][3]; - correct answer
b) myArray[1.3];
c) myArray{1}{3};
d) myArray(1),(3);
22) All methods in an abstract base class must be declared abstract.
a) True - correct answer
b) (your answer) False
23) Methods that are declared abstract in the base class must show implementation at the time of
declaration.
a) True
b) (your answer) False - correct answer
24) The code public class B : A { }
a) Defines a class that inherits all the methods of A - correct answer
b) (your answer) Defines a class that inherits the public methods of A only
c) Errors
d) a and b
25) Assuming that public class B : A { public B(int i) :base(i) { } } compiles and runs correctly,
what can we conclude about the constructors in the class A?
a) One constructor takes an argument of type i
b) There is only a default constructor
c) (your answer) One constructor takes an arguments of the type int - correct
answer
d) a and b
26) Classes declared with the sealed keyword cannot be base class.
a) (your answer) True - correct answer
b) False
27) A method_____an exception when that method detects that a problem has occured.
a) Trys
b) Catches
c) (your answer) Throws - correct answer
d) a and b
28) Exception objects are derived from the class.
a) Try
b) Catch
c) (your answer) Exception - correct answer
d) Event
e) System
29) An abstract class
a) may contain instance variables
b) may contain constructors
c) (your answer) may extend another class
d) a and b
e) all of the above - correct answer
30) A____block enclose the code that could throw an exception.
a) (your answer) Try - correct answer
b) Catch
c) Exception
d) Error
e) a and b
31) A Thread is:
a) an object that allows computer multitasking - correct answer
b) (your answer) an object that wraps itself with other threads
c) a deprecated object that is no longer used
32) Synchronization is:
a) the delaying of a thread until there is sufficient memory and work to keep it up -
correct answer
b) making every thread start and end at the same time
c) make each thread do the same thing
d) have each thread start at the same time but not necessarily finish together
33) In C# Thread.Sleep(time) measures time in:
a) seconds
b) milliseconds - correct answer
c) nanoseconds
d) all of the above
34) When a thread returns from a WaitSleepJoin or Suspended state it returns to the:
a) Unstarted state
b) Stopped state
c) Started state (now considering a part of the running state) - correct answer
d) Resume state
35) The ThreadPriority enumeration does not contain:
a) Lowest
b) Highest
c) BelowNormal
d) None of the above - correct answer
36) The way of returning a thread from s suspended state is:
a) Pulse
b) PulseAll
c) Interrupt
d) Resume - correct answer
e) ReStart
37) In order to lock/unlock an object use the.
a) Lock and Unlock methods
b) Enter and Exit methods - correct answer
c) Close and Open methods
d) Close and Allow methods
38) Class String and the Char structure found in the:
a) System.Strings namespace
b) System.Text namespace - correct answer
c) System.Chars namespace
d) System namespace
39) A String literal is a:
a) only contains one character
b) contains numbers rather than letters
c) sequence of characters in double quotation marks - correct answer
d) contains exactly its variable name and nothing else
Top of Form
1) What does SQL stand for?
a) Strong Question Language
b) Structured Question Language
c) (your answer) Structured Query Language - correct answer
2) Which SQL statement is used to extract data from a database?
a) GET
b) OPEN
c) EXTRACT
d) (your answer) SELECT - correct answer
e) QUERY
3) Which SQL statement is used to update data in a database?
a) (your answer) UPDATE - correct answer
b) SAVE AS
c) MODIFY
d) SAVE
4) Which SQL statement is used to delete data from a database?
a) TRUNCATE
b) (your answer) DELETE - correct answer
c) REMOVE
5) Which SQL statement is used to insert new data in a database?
a) ADD RECORD
b) ADD INTO
c) (your answer) INSERT - correct answer
d) ADD NEW
6) With SQL, how do you select a column named "FirstName" from a table named "Persons"?
a) EXTRACT FirstName FROM Persons
b) (your answer) SELECT FirstName FROM Persons - correct answer
c) SELECT Persons.FirstName
7) With SQL, how do you select all the columns from a table named "Persons"?
a) SELECT [all] FROM Persons
b) SELECT All Persons
c) SELECT *.Persons
d) (your answer) SELECT * FROM Persons - correct answer
8) With SQL, how do you select all the records from a table named "Persons" where the value of the column
"FirstName" is "Peter"?
a) SELECT [all] FROM Persons WHERE FirstName='Peter'
b) SELECT * FROM Persons WHERE FirstName LIKE 'Peter'
c) SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
d) (your answer) SELECT * FROM Persons WHERE FirstName='Peter' - correct answer
9) With SQL, how do you select all the records from a table named "Persons" where the value of the column
"FirstName" starts with an "a"?
a) SELECT * FROM Persons WHERE FirstName='%a%'
b) SELECT * FROM Persons WHERE FirstName LIKE '%a'
c) SELECT * FROM Persons WHERE FirstName='a' - correct answer
d) (your answer) SELECT * FROM Persons WHERE FirstName LIKE 'a%'
e) SELECT * FROM Persons WHERE FirstName='a'"
10) The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if
ALL of the conditions listed are true
a) (your answer) True - correct answer
b) False
11) With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter"
and the "LastName" is "Jackson"?
a) SELECT * FROM Persons WHERE FirstName LIKE 'Peter' AND LastName LIKE 'Jackson'
b) (your answer) SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson' - correct
answer
c) SELECT FirstName='Peter', LastName='Jackson' FROM Persons
12) With SQL, how do you select all the records from a table named "Persons" where the "LastName" is
alphabetically between (and including) "Hansen" and "Pettersen"?
a) SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons
b) (your answer) SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen' - correct
answer
c) SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'
13) Which SQL statement is used to return only different values?
a) SELECT UNIQUE
b) SELECT INDENTITY
c) SELECT DIFFERENT
d) (your answer) SELECT DISTINCT - correct answer
14) Which SQL keyword is used to sort the result-set?
a) SORT BY
b) ORDER
c) (your answer) ORDER BY - correct answer
d) SORT
15) With SQL, how can you return all the records from a table named "Persons" sorted descending by
"FirstName"?
a) SELECT * FROM Persons SORT BY 'FirstName' DESC
b) (your answer) SELECT * FROM Persons ORDER BY FirstName DESC - correct answer
c) SELECT * FROM Persons ORDER FirstName DESC
d) SELECT * FROM Persons SORT 'FirstName' DESC
16) With SQL, how can you insert a new record into the "Persons" table?
a) (your answer) INSERT INTO Persons VALUES ('Jimmy', 'Jackson') - correct answer
b) INSERT ('Jimmy', 'Jackson') INTO Persons
c) INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
17) With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?
a) (your answer) INSERT INTO Persons (LastName) VALUES ('Olsen') - correct answer
b) INSERT ('Olsen') INTO Persons (LastName)
c) INSERT INTO Persons ('Olsen') INTO LastName
18) How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
a) UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
b) (your answer) UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen' - correct answer
c) MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
d) MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
19) With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?
a) (your answer) DELETE FROM Persons WHERE FirstName = 'Peter' - correct answer
b) DELETE ROW FirstName='Peter' FROM Persons
c) DELETE FirstName='Peter' FROM Persons
20) With SQL, how can you return the number of records in the "Persons" table?
a) SELECT COLUMNS() FROM Persons
b) (your answer) SELECT COUNT(*) FROM Persons - correct answer
c) SELECT COLUMNS(*) FROM Persons
d) SELECT COUNT() FROM Persons
21) Given an employees table as follows: empid name managerid a1 bob NULL b1 jim a1 B2 tom a1 What value
will select count(*) from employees return?
a) 1
b) (your answer) 2
c) 3 - correct answer
d) none of the above
22) The result of a SELECT statement can contain duplicate rows.
a) (your answer) True - correct answer
b) False
23) Sometimes the expression "select count(*)" will return fewer rows than the expression "select
count(value)".
a) True
b) (your answer) False - correct answer
24) What type of lock will deny users any access to a table?
a) EXPLICIT
b) IMPLICIT
c) (your answer) EXCLUSIVE - correct answer
d) SHARED
e) READ ONLY
25) Which of the following is the correct SQL statement to use to remove rows from a table?
a) DROP
b) REMOVE ROW
c) (your answer) DELETE - correct answer
d) DELETE ROW
26) The only way to join two tables is by using standard, ANSI syntax.
a) True
b) (your answer) False - correct answer
27) A NULL value is treated as a blank or 0.
a) True
b) (your answer) False - correct answer
28) The left outer join is one type of outer join. Another one is the.
a) (your answer) right
b) full
c) right outer
d) full outer
e) all of the above - correct answer
Bottom of Form
40) To create a string literal exclude escape sequence, use:
a) !string
b) @string - correct answer
c) #string
d) $string
41) String indexers treat strings as:
a) binary code
b) 1 to string Length
c) arrays of characters - correct answer
d) a character
42) If an IndexofAny method is passed an array of characters it:
a) finds the first occurrence of each letter in the string
b) searches for the first occurrence of any of the characters in the string - correct
answer
c) will search for the first occurrence of the sequence of characters
d) generates an error
43) Concatenating with strings are done with:
a) reserved words
b) (your answer) method calls
c) operator overloading
d) operator overloading and method calls - correct answer
44) If two StringBuilder objects contain the same string then
a) they represent the same meory location
b) (your answer) the are two different objects - correct answer
c) if one changes, so will the other
d) None of the above
45) The proper way to convert a string to all lowercase is:
a) String = string.ToLower(string);
b) ToLower(string);
c) (your answer) string.ToLower(); - correct answer
d) string.ToLower(string);
1) What is the size of a Char?
a) 4 bits
b) 7 bits
c) 8 bits
d) (your answer) 16 bits - correct answer
2) A class cannot be declared:
a) Static
b) (your answer) Private - correct answer
c) Default
3) Following code will result in: int a = 3.5;
a) (your answer) Compilation error - correct answer
b) Runtime error
c) a being 3.5
d) a being 3.
4) Following code will result in: int a1 = 5; double a2 = (float)a1;
a) Compilation error
b) Runtime error
c) (your answer) No errors - correct answer
5) Following code will result in: int a = 9/0;
a) Compilation error: Divisions must be in a try block.
b) Compilation error: DivideByZeroException
c) (your answer) Runtime Exception - correct answer
d) No Error: a is NaN
6) Following code will result in: float a = 9/0;
a) Compilation error: Divisions must be in a try block
b) Compilation error: DivideByZeroException
c) (your answer) Runtime Exception
d) No Error: a is NaN - correct answer
7) A class can be transient
a) (your answer) True
b) False - correct answer
8) Following code will result in: class A { int b = 1; public static void main(String [] args)
{ System.out.println("b is " + b); }}
a) (your answer) Compilation error - correct answer
b) Runtime Error
c) Runtime Exception
d) Output of b is 1
9) Following code will result in: class A { public static void main(String [] args) {B b = new A(); }}
class B extends A {}
a) Compile error - correct answer
b) Runtime Exception
c) (your answer) No error
10) Following code will result in: class A { public static void main(String [] args) {A a = new
B(); }} class B extends A {}
a) Compiler error
b) Runtime Exception
c) (your answer) No errors - correct answer
11) Methods that are marked protected can be called in any subclass of that class.
a) (your answer) True - correct answer
b) False
12) An abstract class can have non-abstract methods.
a) (your answer) True - correct answer
b) False
13) Java keywords are written in lowercase as well as uppercase.
a) (your answer) True
b) False - correct answer
14) What is an instanceof
a) (your answer) A methods in object
b) An operator and keyword - correct answer
15) Primitive datatypes are allocated on a stack.
a) (your answer) True - correct answer
b) False
16) Can you compare a boolean to an integer?
a) Yes
b) (your answer) No - correct answer
17) If class A implements an interface does it need to implement all methods of that interface?
a) (your answer) Yes, always.
b) No, not when A is abstract - correct answer
18) Integer a = new Integer(2); Integer b = new Integer(2); What happens when you do if
(a==b)?
a) Compiler error
b) Runtime Exception
c) (your answer) True
d) False - correct answer
19) The methods wait(), notify() and notifyAll() in Object need to be called from synchronized
pieces of code.
a) (your answer) True
b) False - correct answer
20) Inner classes can be defined within methods.
a) True - correct answer
b) (your answer) False
21) Synchronized is a keyword to tell a Thread to grab an Object lock before continuing execution.
a) (your answer) True - correct answer
b) False
22) The default statement of a switch is always executed.
a) True
b) (your answer) False - correct answer
23) How can you prevent a member variable from becoming serialized?
a) By marking it private
b) (your answer) By marking it volatile
c) By marking it transient - correct answer
d) You can not.
1) 7 months of the year have 31 days; how many have 28?
a) 12 - correct answer
b) 3
c) 9
d) (your answer) 1
2) If you divide 30 by 1/2 and then add 10 what do you have?
a) (your answer) 70 - correct answer
b) 90
c) 50
d) 35
3) A farmer has 15 pigs, and all but 9 die. How many are left?
a) 6
b) 7
c) 9 - correct answer
d) 5
4) How many two cent stamps are there in a dozen?
a) 3
b) (your answer) 6 - correct answer
c) 12
d) 4
5) A doctor gives you three pills with instructions to take one every half hour. How many minutes
would the pills last?
a) (your answer) 90
b) 120
c) 30
d) 60 - correct answer
6) According to recent studies, how many birthdays does the average person have?
a) (your answer) 72
b) 64
c) 100
d) 36
e) 1 - correct answer
7) Which is heavier: 500 pounds of feathers or 500 pounds of lead?
a) Feathers
b) They weight the same - correct answer
c) Lead
d) (your answer) I don't know
8) The Smith family has a Mother, Father and 7 daughters. Each daughter has 1 brother. How
many people are in the family?
a) 10 - correct answer
b) (your answer) 16
c) 15
d) 9
9) How much dirt is in a 6 x 6 x 6 hole?
a) (your answer) 36 lbs
b) 216 lbs
c) 12 lbs
d) None of the above - correct answer
10) Column X 0.8 / 3 Column Y 1.5 / 9
a) (your answer) The quantity in Column X is greater - correct answer
b) The quantity in Column Y is greater
c) The two quantities are equal
d) I don't know
11) APLOMB means:
a) self-assurance - correct answer
b) thrust
c) (your answer) heavyset
d) incertitude
12) ACUMEN means :
a) conformity
b) keenness - correct answer
c) (your answer) occurrence
d) denseness
13) temperance :
a) temperance
b) extravagance
c) aggressiveness
d) (your answer) stubbornness - correct answer
14) There is a sale at Flyby, your favorite store. All shirts are 25% off and all pants are 30% off.
You find two shirts at $49.99 each and one pair of pants at $79.99. How much does your new
clothing cost you, before taxes, if the cashier mentions that you g
a) $93.50
b) $117.90 - correct answer
c) $114.93
d) $144.10
e) $154.99
15) What do you get if, from the numbers listed, you multiply by twelve the number of even
numbers that are immediately followed by an odd number 4-7-8-5-6-1-3-3-2
a) 36 - correct answer
b) 12
c) 24
d) 48
e) 60
16) What number should follow in the series 33, 49.5, 74.25, 111.37, 167.06…?
a) 216.56
b) 222.75
c) 183.56
d) 250.59 - correct answer
17) Is a synonym of animosity
a) Enmity - correct answer
b) Distrust
c) Ambivalence
d) Subjectivity
e) Anxiety
18) Is an antonym of mealymouthed
a) Hungry
b) ightlipped
c) Sincere - correct answer
d) Apathetic
e) Indefinite
19) To the dismay of the student body, the class president was ______ berated by the principal at
a school assembly.
a) fortuitously
b) privately
c) ignominiously - correct answer
d) magnanimously
e) inconspicuously
20) Column X √15.4 Column Y 3.92
a) The quantity in Column X is greater
b) The two quantities are equal - correct answer
c) The quantity in Column Y is greater
d) None of the above