Sie sind auf Seite 1von 39

 Which of the following are the main types Optical Disks?

o Compact Disk? Read Only Memory


o Compact Disk? Rewritable
o Cache Memory
o Compact Disk? Recodable

 The header file __________ contains the macros for many of the input/ Output functions used in C.
o <iostream.h>
o <studio.h>
o <Conio.h>
 Which of the following are different editions of Windows 7?
o Windows 7 Starter
o Windows 7 Premium
o Windows 7 Ultimate
o Windows 7 Home Bas
 Identify the panel used to store pieces of code that can be reused when required.
o Assets panel
o Snippets panel
o Properties panel
o Floating panel

 ________ form/s base of any C program.


o Struct
o Code blocks
o Instructions
o None of the above.

 Which of the following are Data Manipulation Language statements?


o SELECT
o ALTER
o INSERT
o UPDATE

 A ________ is a representation of an algorithm in language that resembles code.


o Pseudo Code
o Algorithm
o Flow chart
o None of the above.

Match the columns

SNo. Left Column Right Column Correct Answer for Column A


A1 Master 1 The datebase is used as the B1 B2 B3 B4
template for all database in
SQL Server 2012
A2 Model 2 The database holds B1 B2 B3 B4
temporary objects or
intermediate result sets.
A3 Resource 3 The database records all B1 B2 B3 B4
system-level information of
an instance of SQL Server.
A4 Tempdb 4 The database is a read-only B1 B2 B3 B4
database and contains
system objects included with
SQL Server 2012.
 C is case insensitive language.
o True
o False

 From the following options, identify the tag used to end a paragrpaph.
o <p>
o <\p>
o </p>
o <:p>

 A _____________ defines what kind of value will be stored by a particular variable.


o Data type
o Variable
o Return type
o None of the above

 Which of the following options are provided when the user clicks the File tab for the first time in the
Backstage view?
o Startup options
o Permissions
o Prepare for Sharing
o Versions

 The automatic type conversation in C converts char and short to int.


o True
o False
 The formatted functions are getchar() and putchar ().
o True
o False
 _________ is a language, which is used for locating the information in an XML document.
o XSLT
o Xpath
o XSL
o XSL-FO
 The Getchar() function reads a character from the keyboard.
o True
o False
 Which attribute of Audio tag identifies whether to reply the audio once it has stopped?
o Autoplay
o Preload
o Loop
o Autobuffer

 ______ is used to transfer Web pages from servers to browsers.


o RDS
o FTP
o WebDAV
o Sourcesafe

 The ______ attribute allows the user to span a cell along a horizontal row in an HTML table.
o Colsan
o Rowspan
o Cellspan
o Span

 Which of the following is the first screen that users view after the computer is switched in and the boot
up process is completed?
o Soft Copy
o Hard Copy
o Desktop
o Data

 The ___ tag is used for displaying information about the date.
o Html
o Meta
o Title
o Script

 The difference between getchar() and putchar() is that getchar() takes an argument while putchar()
does not.
o True
o False

 __________ enables a user to play songs and view movies on the computer.
o WordPad
o Windows Media Player
o Paint
o Notepad

 Identify the satellite navigation system that provides information about the location from any part of
the globe.
o GSM
o Bluetooth
o Wifi
o GPS

 _________ is basic word processing tool that allows a user to create a RTF file.

o Paint
o Windows Explorer
o Notepad
o WordPad

 Which keyword is used in a SELECT query to prevent the retrieval of duplicate records?
o TOP
o ONLY
o UNIQUE
o DISTINCT

 Which of the following browsers require the –webkit- prefix to support CSS3 transitions?
o Apple Safari 3.1
o Mozilla Firfox 3.7
o Google Chrome
o Opera 10.5x
ij
 A _________ is an application that runs on a user? computer and helps to access and retrieve
information from the Internet.
o Web Browser
o Web Site
o Web Server
o Web Application

 Which of the following options are valid values that can be assigned to the text-decoration property?
o None
o Overline
o Strike-through
o Line-through

 Identify the correct syntax of the <enbed> tag to insert an external file into an HTML page.
o <embed source=”sample.mp3”/>
o <embed>
o <embed src =”sample.mp3’’/>
o <embed file=”sample.mp3”/>

 Which of the following XML based formats are used to save file in Microsoft Word 2010?
o .docx
o .doc
o .docm
o .dotx

 Identify the code snippet that marks a transaction.


o BEGIN TRANSACTION DeleteCandidate WITH N’Deleting a Job Candidate’; GO DELETE FROM
HumanResources.JobCandidate WHERE JobCandidateID = 11; GO COMMIT TRANSACTION
DeleteCandidate;
o BEGIN TRANSACTION DeleteCandidate WITH NO MARK N’Deleting a Job Candidate’; GO DELETE
FROM HumanResources. JobCandidate WHERE JobCandidateID = 11; GO COMMIT TRANSACTION
DeleteCandidate;
o BEGIN TRANSACTION DeleteCandidate WITH NO MARK N’Deleting a Job Candidate’; GO DELETE
FROM HumanResources.JobCandidate WHERE JobCandidateID = 11; GO COMMIT TRANSACTION
DeleteCandidate;
o BEGIN TRANSACTION DeleteCandidate WITH UNMARK N’Deleting a Job Candidate’; GO DELETE
FROM HumanREsources. JobCandidate WHERE JobCandidateID = 11; GO COMMIT TRANSACTION
DeleteCandidate;
 Which of the following options are examples of basic paragraph styles?
o Paragraph
o Heading
o Customized
o Preformatted
 Identify the correct code to display the severity of the error.
o BEGIN TRY SELECT 217/0; BEGIN SELECT ERROR SEVERITY () AS ErrorSeverity;
END CATCH; END TRY
o BEGIN TRY SELECT 217/0; BEGIN CATCH SELECT ERROR() AS ERROR; END CATCH;
END TRY
o BEGIN TRY SELECT 217/0; BEGIN CATCH SELECT ERROR_LINE() AS ErrorLine; END
CATCH; END TRY
o BEGIN TRY SELECT 217/0; BEGIN CATCH SELECT ERROR_STATE() AS ErrorState;
END CATCH; END TRY
 Identify the correct syntax to declare a pseudo-class.
o Selctor-name:state_name { value}
o Selector_name:state_name {property: value}
o State_name:se;ector_name {property: value}
o Selector_name:state_name{}
 Which of the following options are examples of different workspace layouts available?
o Designer
o Code
o Dual Screen
o Document Window
 ___________ displays a non-editable, interactive, browser-based view of the
document.
o Design View
o Live Code View
o Live View
o Code View
 Consider the following declaration:

o Double d = 15.3446;
o Which of the following option shows the correct statement that produces the output,
o |015.345|?
 System.out.printf(“|%07d|\n”,d);
 System.out.printf(“|%07.3f|\n”,d);
 System.out.printf(“|%07.d|\n”,d);
 System.out.printf(“|%07.3e|\n”,d);

 Consider the following code snippet:

o ArrayList marks = new ArrayList();


o Mark:add(67);
o Mark.add(90);
o Marks.add(78)
o Marks.add(90)
o Marks.add(34)
o Marks.add(56)
o Collections.sort(marks);
o System.outprintIm(marks);
 What is the output of the code?”
 [34,56,67,78,90,90]
 [90,90,78,67,56,34]
 [90,78,67,56,34]
 Compilation error
 Which of the following statements truly specifies the characteristics of static methods in Java?

 Can access only static data


 Can invoke static and normal methods
 Can use super keyword
 Cannot use this keyword

 The __________ command is used to interpret and run the Java bytecode.
o Javac
o Java
o Javap
o Javadoc

 Which of the following options are the correct implementations of Queue?


o LinkedList
o ArrayList
o PriorityQueue
o CircularQueue

 Which of the following is not a collection class that implements the interfaces in the java.until package?

o ArrayList
o HashTree
o TreeMap
o LinkedList

 A JTable has which of the following distinct parts?

 Column Header
 Row Header
 Data
o 1,2
o 2,3
o 1,3
o 1,2,3

 The standard input/output stream in Java is presented by Which of the following fields of the System
class?

 In
 Out
 Err
 Sys
o 1,2
o 1,2,3
o 1,2,4
o 2,3,4

 The read() method reads the next bytes of data from the input stream and returns an int value in the
range of 0 to 32767?

o True
o False

 Which of the following are the advantages of Generics?

 It allow flexibility of dynamic binding


 Compiler detected errors are less time consuming to fix
 The reviews are simpler
o 1,2
o 1,3
o 1,2,3
o 2,3

 Regular expressions help describing a pattern of text?

o True
o False

 A thread can be created by extending the Thread class. Which of the following methods are defined in
the class Thread?

o run() and terminate()


o start() and notify()
o start(),wait(),notify() and run()
o wait(), notify() and run()

 Which of these classes cannot define immutable objects?

o Object
o Byte
o Short
o Character

 XML was developed over________.

o Troffanf TEX
o GML
o SGML
o HTML

 Prefixing an element in a XML document, with a unique prefix, prevents it from being ___________.

o Accessed
o duplicated
o deleted
o overridden

 The ________ process involves converting data into textual form and passing it to a browser or so.

o Creation
o Access
o Modification
o Serialization

 <xs:complexType name=”Books”>
o <sx:simple Content>
o <xs:extension base = “xs:string”>
o <xs:attribute name = “Bookcode” type=”xs: positiveInteger”/>
o </xs:extension>
o </xs:simpleContent>
o </xs:complexType>

o Which of the following does the above piece of code represent?

o Empty Elements
o Mixed
o Only Elements
o Only Text

 The ZIP file can be more than _________ character long.

o 32
o 64
o 128
o 256

 The Deflater and Inflator classes extend from the _______ class.

o Object
o ZipFile
o InputStream
o ZipEntry

 Which of the following method indicates that the compression should end with the current contents of
the input buffer?

o End()
o Close()
o Finish()
o endCompression()

 ______ method when invoked for an object, acquires a _______ for the object before commencing any
execution of the code.
o Start(), reference
o Run(),lock
o Notify(), reference
o Synchronized, lock

 Which of the following are the parameters of the move() method of Files class?

o Source path
o Exception
o Target path
o Copy options

 Which of the following is not an advantage offered by the JDBC API?

o Platform independence
o Vendor independence
o Program independence
o Ease of maintenance

 Which of the following statements id false?

o The executeQuery() method is used to execute SQL statements which return more than one
result set.
o The executeUpdate() method is used to execute SQL DDL statements.
o The execute() method returns true when a result set object is created due to the execution of an
SQL statement.
o The executeUpdate() method returns an integer indicating the number of rows affected by the
execution of the SQL statement.

 Some of the benefits of Internationalization are (multiple choice)

o No Recompilation of New Languages


o Different executeable files
o Dynamic Retrieval of Textual Elements
o Conformation to the End User?s Region and Language

 Which of the following is the base class for all symmetric algorithm classes?

o RC2
o SymmetricAlgorithm
o DES
o TripleDES
 The ________ object is responsible for transforming the data based on the algorithm of the symmetric
encryption class.

o ICryptoTransform
o CyrptoStream
o NetworkStream
o RijndaeImanaged

 ______ is a new control in ASP.NET that implements user templates and displays repeated data in a
simplified manner.

 ListView
 DataPager
 ListBox
 ComboBox

 Which of the following are editions of Visual Studio 2008?

o Mircosoft Visual Studio 2008 Standard Edition


o Microsoft Visual Studio 2008 Express Edition
o Microsoft Visual Studio 2008 Professional Edition
o Microsoft Visual Studio 2008 Trial Edition

 _______ is browser technology which enables applications to exchange data with a server by updating
the parts of Web page without reloading the whole page.

o AJAX
o LINQ
o WPF
o WCF

 Which of the following represents the lambda operator?

o =>
o >>
o ->
o ==

 ________ is framework used for developing system or human workflows in the applications designed
for operating systems such as Windows Vista, Windows XP, and Windows Server 2003.

o Windows Workflow Foundation


o Windows Communication Foundation
o Windows Forms
o Windows Presentation Foundation
 WPF uses _________ which is an XML-based language that allows specifying a user unterface
declaratively rather than in code.

o CSS
o JavaScript
o C# 3.0
o XAML

 Which of the following classes can you use to perform symmetric encryption?

o AesManaged
o tripleDESCryptoServiceProvider
o RijndealManaged
o RSACryptoServiceProvider

 What is the function of the refactoring feature of Visual Studio 2012?


o Enables developers to automate common tasks when restructuring code.
o Enables the process of entering code in the Code Editor to be more efficient.
o Enables saving the work done in Visual Studio 2012 in regular basis.
o Enables verifying whether or not changes made in Visual Studio 2012 have been saved.

 What is function of the from? Query keyword?


o Used to indicates how the elements in the returned sequence will look like when the query is
executed.
o Used to group query based on a specified key value
o Used to sort query results in ascending or descending order
o Used to indicate a data source and a range variable.

 What is the function of key containers?

 To securely store asymmetric keys


 To securely generate asymmetric keys
 To securely share the public key
 To securely generate private key

 Which of the following restrictions for partial methods are true?

o The partial keyword is a must defining or implementing a partial method


o Partial methods must return void
o Partial methods are implicitly public
o Partial methods can return ref but not out
 1,2,4
 1,3,4
 1,2,3,4
 1,2,3
 What will be the result of executing the following statement in the Main() method of a C# program?

o Console.Writeline(“Hello from a C3 program”);


o The code will display the following output: Hello from a C# program
o The code will compile but will execute
o The code compile and execute but will not output anything
o The code will not compile

 Which of the following elements can be used to initialize a collection?

o A value
o An expression
o An object initializer
o A method call
 1,2,4,
 1,2,3,4
 1,4,1,3,4

 Visual Studio .NET provides which feature?

o Debugging
o Application deployment
o Syntax checking
o Both a and b
o All of the above

 Which statement about object is true?

o One object is used to create one class


o One Class is used to create one object
o One object can create many classes
o One class can create many objects

 The Boolean data type?

o Is unsigned
o Has two states
o Is displayed by the program as yes or no
o Both a and b
o All of the above

 When a condition in IF…. Then statement test true

o The next Else statement is activated


o The next If statement is activated
o The next Then statement is activated
o The next If statement is activated

 Do...Loop is an iterative statement because it

o selects a block of statements to run


o runs the same block of statements repeatedly
o selects a block of statements and runs it repeatedly
o selects a block of statements and runs it a specified number of times.

 An Exception is another name for a

o compile error
o logic error
o runtime error
o superficial error

 Which property is the same in the OpenFileDialog and the SaveFileDialog control

o FileName
o Filter
o InitialDirectory
o Both a and b.
o All of the above.

 Which of the following is part of an object

o Methods
o Property
o Instances
o Both a and b

 Which is true about objects?

o Objects are used to create classes.


o Objects are analogous to blueprints.
o Objects combine actions and data.
o Both a and b.
 Properties are used to represent

o actions.
o Classes
o Data
o Events
o Instances
 Method are used to represent

o actions.
o Classes
o Data
o Events
o Instances

 Which feature is needed to make a programming language object oriented

o Encapsulation
o Inheritance
o Polymorphism
o Both a and b.
o All of the above.

 Inheritance makes it easier to

o reuse and modify existing modules of code.


o write and read code by sharing method names
o hide and protect data from external code.
o Both a and b.
o All of the above.

 Which of the following area in the memory stores object references, method parameters, and its local
variables?

o Stack
o Heap
o Accumulator
o Register

 Which of the following statements are true regarding a constructor in a class?

o A constructor returns void


o A constructor has an associated destructor
o A constructor can be overloaded
o A constructor has the same name as the class name to which it belongs

 Identify the method that is used to compare two String objects?

o Comparator()
o Comparable()
o Compare()
o compareTo()

 Consider the following code snippet:

o Interatoritr = arraylist.iterator();
o //insert code here
o {
o System.out.printIn(itr.next());
o }
o Which of the following statement added at line 2 will compile the code successfully?”
 While (itr.moreElements())
 While (itr.hasElements())
 While (itr.hasNext())
 While (itr.next())

 Which of the following statements are true with respect to exceptions in Java?

o The try statement must be followed by only one catch or a finally block
o The Exception subclasses are used when the called method handles the exception
o Repeated re-throwing of the same exception must be avoided as it may slow down programs
that are known for frequently raising exceptions.
o Use the throw statement to throw an exception that a method does not handle by itself.

 “Consider a directly structure created on the Window system: A directory named AplhaProject has been
created. It contains two sub-directories named source and classes. The source directory contains a Java
file named MyProgram.Java. Assume that the current directory has been set to AlphaProject. Then,
what will be the result of the following command invocation on the command prompt, javac –d classes
source/MyProgram.java.”

 If the command is executed successfully, then MyProgram.class file is added in the


source directory
 If the command is executed successfully, then MyProgram.class file is added in the
current directory.
 If the command is executed successfully, then MyProgram.class file is added in the
classes directory.
 The MyProgram.java file is not compiled successfully because the command result in a
error.

 “Given that the root directory contains a subdirectory called ““BankApp””that contains files for a Java
Application. The following command is invoked from the root directory in order to create a JAR file
containing the ““BankApp”” directory: jar –cf X Y, where X and Y are arguments. Which of the following
statements correctly identify the arguments X and Y in the jar command?”
o X should be the file name of the JAR file, and Y should be “BankApp”
o X should be “BankApp”, and Y should be the file name of the JAR file.
o Both X and Y specifies file name of the JAR file.
o If a name is not specified, then file named BankApp,jar will be created

 Consider the following declaration:

o Double d = 15.3446;
o Which of the following option shows the correct statement that produces the output,
o |015.345|?
 System.out.printf(“|%07d|\n”,d);
 System.out.printf(“|%07.3f|\n”,d);
 System.out.printf(“|%07.d|\n”,d);
 System.out.printf(“|%07.3e|\n”,d);

 Consider the following code snippet:

o ArrayList marks = new ArrayList();


o Mark:add(67);
o Mark.add(90);
o Marks.add(78)
o Marks.add(90)
o Marks.add(34)
o Marks.add(56)
o Collections.sort(marks);
o System.outprintIm(marks);
 What is the output of the code?”
 [34,56,67,78,90,90]
 [90,90,78,67,56,34]
 [90,78,67,56,34]
 Compilation error

 Which of the following statements truly specifies the characteristics of static methods in Java?

 Can access only static data


 Can invoke static and normal methods
 Can use super keyword
 Cannot use this keyword

 The __________ command is used to interpret and run the Java bytecode.
o Javac
o Java
o Javap
o Javadoc

 Which of the following options are the correct implementations of Queue?

o LinkedList
o ArrayList
o PriorityQueue
o CircularQueue

 Which of the following is not a collection class that implements the interfaces in the java.until package?

o ArrayList
o HashTree
o TreeMap
o LinkedList

 A JTable has which of the following distinct parts?

 Column Header
 Row Header
 Data
o 1,2
o 2,3
o 1,3
o 1,2,3

 The standard input/output stream in Java is presented by Which of the following fields of the System
class?

 In
 Out
 Err
 Sys
o 1,2
o 1,2,3
o 1,2,4
o 2,3,4

 The read() method reads the next bytes of data from the input stream and returns an int value in the
range of 0 to 32767?
o True
o False

 Which of the following are the advantages of Generics?

 It allow flexibility of dynamic binding


 Compiler detected errors are less time consuming to fix
 The reviews are simpler
o 1,2
o 1,3
o 1,2,3
o 2,3

 Regular expressions help describing a pattern of text?

o True
o False

 A thread can be created by extending the Thread class. Which of the following methods are defined in
the class Thread?

o run() and terminate()


o start() and notify()
o start(),wait(),notify() and run()
o wait(), notify() and run()

 Which of these classes cannot define immutable objects?

o Object
o Byte
o Short
o Character

 XML was developed over________.

o Troffanf TEX
o GML
o SGML
o HTML

 Prefixing an element in a XML document, with a unique prefix, prevents it from being ___________.

o Accessed
o duplicated
o deleted
o overridden

 The ________ process involves converting data into textual form and passing it to a browser or so.

o Creation
o Access
o Modification
o Serialization

 <xs:complexType name=”Books”>
o <sx:simple Content>
o <xs:extension base = “xs:string”>
o <xs:attribute name = “Bookcode” type=”xs: positiveInteger”/>
o </xs:extension>
o </xs:simpleContent>
o </xs:complexType>

o Which of the following does the above piece of code represent?

o Empty Elements
o Mixed
o Only Elements
o Only Text

 The ZIP file can be more than _________ character long.

o 32
o 64
o 128
o 256

 The Deflater and Inflator classes extend from the _______ class.

o Object
o ZipFile
o InputStream
o ZipEntry

 Which of the following method indicates that the compression should end with the current contents of
the input buffer?

o End()
o Close()
o Finish()
o endCompression()

 ______ method when invoked for an object, acquires a _______ for the object before commencing any
execution of the code.

o Start(), reference
o Run(),lock
o Notify(), reference
o Synchronized, lock

 Which of the following are the parameters of the move() method of Files class?

o Source path
o Exception
o Target path
o Copy options

 Which of the following is not an advantage offered by the JDBC API?

o Platform independence
o Vendor independence
o Program independence
o Ease of maintenance

 Which of the following statements id false?

o The executeQuery() method is used to execute SQL statements which return more than one
result set.
o The executeUpdate() method is used to execute SQL DDL statements.
o The execute() method returns true when a result set object is created due to the execution of an
SQL statement.
o The executeUpdate() method returns an integer indicating the number of rows affected by the
execution of the SQL statement.

 Some of the benefits of Internationalization are (multiple choice)

o No Recompilation of New Languages


o Different executeable files
o Dynamic Retrieval of Textual Elements
o Conformation to the End User?s Region and Language
 Which of the following is the base class for all symmetric algorithm classes?

o RC2
o SymmetricAlgorithm
o DES
o TripleDES

 The ________ object is responsible for transforming the data based on the algorithm of the symmetric
encryption class.

o ICryptoTransform
o CyrptoStream
o NetworkStream
o RijndaeImanaged

 ______ is a new control in ASP.NET that implements user templates and displays repeated data in a
simplified manner.

 ListView
 DataPager
 ListBox
 ComboBox

 Which of the following are editions of Visual Studio 2008?

o Mircosoft Visual Studio 2008 Standard Edition


o Microsoft Visual Studio 2008 Express Edition
o Microsoft Visual Studio 2008 Professional Edition
o Microsoft Visual Studio 2008 Trial Edition

 _______ is browser technology which enables applications to exchange data with a server by updating
the parts of Web page without reloading the whole page.

o AJAX
o LINQ
o WPF
o WCF

 Which of the following represents the lambda operator?

o =>
o >>
o ->
o ==

 ________ is framework used for developing system or human workflows in the applications designed
for operating systems such as Windows Vista, Windows XP, and Windows Server 2003.

o Windows Workflow Foundation


o Windows Communication Foundation
o Windows Forms
o Windows Presentation Foundation

 WPF uses _________ which is an XML-based language that allows specifying a user unterface
declaratively rather than in code.

o CSS
o JavaScript
o C# 3.0
o XAML

 Which of the following classes can you use to perform symmetric encryption?

o AesManaged
o tripleDESCryptoServiceProvider
o RijndealManaged
o RSACryptoServiceProvider

 What is the function of the refactoring feature of Visual Studio 2012?


o Enables developers to automate common tasks when restructuring code.
o Enables the process of entering code in the Code Editor to be more efficient.
o Enables saving the work done in Visual Studio 2012 in regular basis.
o Enables verifying whether or not changes made in Visual Studio 2012 have been saved.

 What is function of the from? Query keyword?

o Used to indicates how the elements in the returned sequence will look like when the query is
executed.
o Used to group query based on a specified key value
o Used to sort query results in ascending or descending order
o Used to indicate a data source and a range variable.

 What is the function of key containers?


 To securely store asymmetric keys
 To securely generate asymmetric keys
 To securely share the public key
 To securely generate private key

 Which of the following restrictions for partial methods are true?

o The partial keyword is a must defining or implementing a partial method


o Partial methods must return void
o Partial methods are implicitly public
o Partial methods can return ref but not out
 1,2,4
 1,3,4
 1,2,3,4
 1,2,3

 What will be the result of executing the following statement in the Main() method of a C# program?

o Console.Writeline(“Hello from a C3 program”);


o The code will display the following output: Hello from a C# program
o The code will compile but will execute
o The code compile and execute but will not output anything
o The code will not compile

 Which of the following elements can be used to initialize a collection?

o A value
o An expression
o An object initializer
o A method call
 1,2,4,
 1,2,3,4
 1,4,1,3,4

 Visual Studio .NET provides which feature?

o Debugging
o Application deployment
o Syntax checking
o Both a and b
o All of the above

 Which statement about object is true?

o One object is used to create one class


o One Class is used to create one object
o One object can create many classes
o One class can create many objects

 The Boolean data type?

o Is unsigned
o Has two states
o Is displayed by the program as yes or no
o Both a and b
o All of the above

 When a condition in IF…. Then statement test true

o The next Else statement is activated


o The next If statement is activated
o The next Then statement is activated
o The next If statement is activated

 Do...Loop is an iterative statement because it

o selects a block of statements to run


o runs the same block of statements repeatedly
o selects a block of statements and runs it repeatedly
o selects a block of statements and runs it a specified number of times.

 An Exception is another name for a

o compile error
o logic error
o runtime error
o superficial error

 Which property is the same in the OpenFileDialog and the SaveFileDialog control

o FileName
o Filter
o InitialDirectory
o Both a and b.
o All of the above.

 Which of the following is part of an object

o Methods
o Property
o Instances
o Both a and b

 Which is true about objects?

o Objects are used to create classes.


o Objects are analogous to blueprints.
o Objects combine actions and data.
o Both a and b.

 Properties are used to represent

o actions.
o Classes
o Data
o Events
o Instances

 Method are used to represent

o actions.
o Classes
o Data
o Events
o Instances

 Which feature is needed to make a programming language object oriented

o Encapsulation
o Inheritance
o Polymorphism
o Both a and b.
o All of the above.
 Inheritance makes it easier to

o reuse and modify existing modules of code.


o write and read code by sharing method names
o hide and protect data from external code.
o Both a and b.
o All of the above.

 Which of the following area in the memory stores object references, method parameters, and its local
variables?

o Stack
o Heap
o Accumulator
o Register

 Which of the following statements are true regarding a constructor in a class?

o A constructor returns void


o A constructor has an associated destructor
o A constructor can be overloaded
o A constructor has the same name as the class name to which it belongs

 Identify the method that is used to compare two String objects?

o Comparator()
o Comparable()
o Compare()
o compareTo()

 Consider the following code snippet:

o Interatoritr = arraylist.iterator();
o //insert code here
o {
o System.out.printIn(itr.next());
o }
o Which of the following statement added at line 2 will compile the code successfully?”
 While (itr.moreElements())
 While (itr.hasElements())
 While (itr.hasNext())
 While (itr.next())

 Which of the following statements are true with respect to exceptions in Java?

o The try statement must be followed by only one catch or a finally block
o The Exception subclasses are used when the called method handles the exception
o Repeated re-throwing of the same exception must be avoided as it may slow down programs
that are known for frequently raising exceptions.
o Use the throw statement to throw an exception that a method does not handle by itself.

 “Consider a directly structure created on the Window system: A directory named AplhaProject has been
created. It contains two sub-directories named source and classes. The source directory contains a Java
file named MyProgram.Java. Assume that the current directory has been set to AlphaProject. Then,
what will be the result of the following command invocation on the command prompt, javac –d classes
source/MyProgram.java.”

 If the command is executed successfully, then MyProgram.class file is added in the


source directory
 If the command is executed successfully, then MyProgram.class file is added in the
current directory.
 If the command is executed successfully, then MyProgram.class file is added in the
classes directory.
 The MyProgram.java file is not compiled successfully because the command result in a
error.

 “Given that the root directory contains a subdirectory called ““BankApp””that contains files for a Java
Application. The following command is invoked from the root directory in order to create a JAR file
containing the ““BankApp”” directory: jar –cf X Y, where X and Y are arguments. Which of the following
statements correctly identify the arguments X and Y in the jar command?”

o X should be the file name of the JAR file, and Y should be “BankApp”
o X should be “BankApp”, and Y should be the file name of the JAR file.
o Both X and Y specifies file name of the JAR file.
o If a name is not specified, then file named BankApp,jar will be created
 Consider the following declaration:

o Double d = 15.3446;
o Which of the following option shows the correct statement that produces the output,
o |015.345|?
 System.out.printf(“|%07d|\n”,d);
 System.out.printf(“|%07.3f|\n”,d);
 System.out.printf(“|%07.d|\n”,d);
 System.out.printf(“|%07.3e|\n”,d);

 Consider the following code snippet:

o ArrayList marks = new ArrayList();


o Mark:add(67);
o Mark.add(90);
o Marks.add(78)
o Marks.add(90)
o Marks.add(34)
o Marks.add(56)
o Collections.sort(marks);
o System.outprintIm(marks);
 What is the output of the code?”
 [34,56,67,78,90,90]
 [90,90,78,67,56,34]
 [90,78,67,56,34]
 Compilation error

 Which of the following statements truly specifies the characteristics of static methods in Java?

 Can access only static data


 Can invoke static and normal methods
 Can use super keyword
 Cannot use this keyword

 The __________ command is used to interpret and run the Java bytecode.
o Javac
o Java
o Javap
o Javadoc

 Which of the following options are the correct implementations of Queue?


o LinkedList
o ArrayList
o PriorityQueue
o CircularQueue

 Which of the following is not a collection class that implements the interfaces in the java.until package?

o ArrayList
o HashTree
o TreeMap
o LinkedList

 A JTable has which of the following distinct parts?

 Column Header
 Row Header
 Data
o 1,2
o 2,3
o 1,3
o 1,2,3

 The standard input/output stream in Java is presented by Which of the following fields of the System
class?

 In
 Out
 Err
 Sys
o 1,2
o 1,2,3
o 1,2,4
o 2,3,4

 The read() method reads the next bytes of data from the input stream and returns an int value in the
range of 0 to 32767?

o True
o False

 Which of the following are the advantages of Generics?

 It allow flexibility of dynamic binding


 Compiler detected errors are less time consuming to fix
 The reviews are simpler
o 1,2
o 1,3
o 1,2,3
o 2,3

 Regular expressions help describing a pattern of text?

o True
o False

 A thread can be created by extending the Thread class. Which of the following methods are defined in
the class Thread?

o run() and terminate()


o start() and notify()
o start(),wait(),notify() and run()
o wait(), notify() and run()

 Which of these classes cannot define immutable objects?

o Object
o Byte
o Short
o Character

 XML was developed over________.

o Troffanf TEX
o GML
o SGML
o HTML

 Prefixing an element in a XML document, with a unique prefix, prevents it from being ___________.

o Accessed
o duplicated
o deleted
o overridden

 The ________ process involves converting data into textual form and passing it to a browser or so.
o Creation
o Access
o Modification
o Serialization

 <xs:complexType name=”Books”>
o <sx:simple Content>
o <xs:extension base = “xs:string”>
o <xs:attribute name = “Bookcode” type=”xs: positiveInteger”/>
o </xs:extension>
o </xs:simpleContent>
o </xs:complexType>

o Which of the following does the above piece of code represent?

o Empty Elements
o Mixed
o Only Elements
o Only Text

 The ZIP file can be more than _________ character long.

o 32
o 64
o 128
o 256

 The Deflater and Inflator classes extend from the _______ class.

o Object
o ZipFile
o InputStream
o ZipEntry
 Which of the following method indicates that the compression should end with the current contents of
the input buffer?

o End()
o Close()
o Finish()
o endCompression()

 ______ method when invoked for an object, acquires a _______ for the object before commencing any
execution of the code.

o Start(), reference
o Run(),lock
o Notify(), reference
o Synchronized, lock

 Which of the following are the parameters of the move() method of Files class?

o Source path
o Exception
o Target path
o Copy options

 Which of the following is not an advantage offered by the JDBC API?

o Platform independence
o Vendor independence
o Program independence
o Ease of maintenance

 Which of the following statements id false?

o The executeQuery() method is used to execute SQL statements which return more than one
result set.
o The executeUpdate() method is used to execute SQL DDL statements.
o The execute() method returns true when a result set object is created due to the execution of an
SQL statement.
o The executeUpdate() method returns an integer indicating the number of rows affected by the
execution of the SQL statement.

 Some of the benefits of Internationalization are (multiple choice)

o No Recompilation of New Languages


o Different executeable files
o Dynamic Retrieval of Textual Elements
o Conformation to the End User?s Region and Language

 Which of the following is the base class for all symmetric algorithm classes?

o RC2
o SymmetricAlgorithm
o DES
o TripleDES

 The ________ object is responsible for transforming the data based on the algorithm of the symmetric
encryption class.

o ICryptoTransform
o CyrptoStream
o NetworkStream
o RijndaeImanaged

 ______ is a new control in ASP.NET that implements user templates and displays repeated data in a
simplified manner.

 ListView
 DataPager
 ListBox
 ComboBox

 Which of the following are editions of Visual Studio 2008?

o Mircosoft Visual Studio 2008 Standard Edition


o Microsoft Visual Studio 2008 Express Edition
o Microsoft Visual Studio 2008 Professional Edition
o Microsoft Visual Studio 2008 Trial Edition

 _______ is browser technology which enables applications to exchange data with a server by updating
the parts of Web page without reloading the whole page.

o AJAX
o LINQ
o WPF
o WCF
 Which of the following represents the lambda operator?

o =>
o >>
o ->
o ==

 ________ is framework used for developing system or human workflows in the applications designed
for operating systems such as Windows Vista, Windows XP, and Windows Server 2003.

o Windows Workflow Foundation


o Windows Communication Foundation
o Windows Forms
o Windows Presentation Foundation

 WPF uses _________ which is an XML-based language that allows specifying a user unterface
declaratively rather than in code.

o CSS
o JavaScript
o C# 3.0
o XAML

 Which of the following classes can you use to perform symmetric encryption?

o AesManaged
o tripleDESCryptoServiceProvider
o RijndealManaged
o RSACryptoServiceProvider

 What is the function of the refactoring feature of Visual Studio 2012?


o Enables developers to automate common tasks when restructuring code.
o Enables the process of entering code in the Code Editor to be more efficient.
o Enables saving the work done in Visual Studio 2012 in regular basis.
o Enables verifying whether or not changes made in Visual Studio 2012 have been saved.

 What is function of the from? Query keyword?


o Used to indicates how the elements in the returned sequence will look like when the query is
executed.
o Used to group query based on a specified key value
o Used to sort query results in ascending or descending order
o Used to indicate a data source and a range variable.

 What is the function of key containers?

 To securely store asymmetric keys


 To securely generate asymmetric keys
 To securely share the public key
 To securely generate private key

 Which of the following restrictions for partial methods are true?

o The partial keyword is a must defining or implementing a partial method


o Partial methods must return void
o Partial methods are implicitly public
o Partial methods can return ref but not out
 1,2,4
 1,3,4
 1,2,3,4
 1,2,3

 What will be the result of executing the following statement in the Main() method of a C# program?

o Console.Writeline(“Hello from a C3 program”);


o The code will display the following output: Hello from a C# program
o The code will compile but will execute
o The code compile and execute but will not output anything
o The code will not compile

 Which of the following elements can be used to initialize a collection?

o A value
o An expression
o An object initializer
o A method call
 1,2,4,
 1,2,3,4
 1,4,1,3,4

 Visual Studio .NET provides which feature?

o Debugging
o Application deployment
o Syntax checking
o Both a and b
o All of the above

 Which statement about object is true?

o One object is used to create one class


o One Class is used to create one object
o One object can create many classes
o One class can create many objects

 The Boolean data type?

o Is unsigned
o Has two states
o Is displayed by the program as yes or no
o Both a and b
o All of the above

 When a condition in IF…. Then statement test true

o The next Else statement is activated


o The next If statement is activated
o The next Then statement is activated
o The next If statement is activated

 Do...Loop is an iterative statement because it

o selects a block of statements to run


o runs the same block of statements repeatedly
o selects a block of statements and runs it repeatedly
o selects a block of statements and runs it a specified number of times.

 An Exception is another name for a

o compile error
o logic error
o runtime error
o superficial error

 Which property is the same in the OpenFileDialog and the SaveFileDialog control

o FileName
o Filter
o InitialDirectory
o Both a and b.
o All of the above.

 Which of the following is part of an object

o Methods
o Property
o Instances
o Both a and b

 Which is true about objects?

o Objects are used to create classes.


o Objects are analogous to blueprints.
o Objects combine actions and data.
o Both a and b.

 Properties are used to represent

o actions.
o Classes
o Data
o Events
o Instances

 Method are used to represent

o actions.
o Classes
o Data
o Events
o Instances

 Which feature is needed to make a programming language object oriented


o Encapsulation
o Inheritance
o Polymorphism
o Both a and b.
o All of the above.

 Inheritance makes it easier to

o reuse and modify existing modules of code.


o write and read code by sharing method names
o hide and protect data from external code.
o Both a and b.
o All of the above.

Das könnte Ihnen auch gefallen