View MCQ Question

(Q) Even if we define a function in a class, then also we need to declare it first_____

  1. TRUE
  2. FALSE
  3. N.A.
  4. N.A.

Ans : FALSE

(Q) Constructors has return type void ?

  1. TRUE
  2. FALSE
  3. N.A.
  4. N.A.

Ans : TRUE

(Q) The major goal of inheritance in C++ is ?

  1. To facilitate the reusability of code
  2. To help modular programming
  3. To facilitate the conversion of data types
  4. To extend the capabilities of a class

Ans : To facilitate the reusability of code

(Q) Data members and member functions are enclosed within ?

  1. union
  2. structure
  3. class
  4. array

Ans : class

(Q) What is the output of this strict equality operator? 5 === '5'

  1. TRUE
  2. FALSE
  3. N.A.
  4. N.A.

Ans : FALSE

(Q) Which of the following javascript functions are used to convert nonnumeric values into numbers?

  1. Number()
  2. parseFloat()
  3. parseInt()
  4. All of the above

Ans : All of the above

(Q) ________ returns true if a variable is an array, if not false.

  1. Array.isArray()
  2. Array.from()
  3. Array.of()
  4. Array.observe()

Ans : Array.isArray()

(Q) The function definitions in JavaScript begins with_____

  1. Identifier and Parantheses
  2. Return type and Identifier
  3. Return type, Function keyword, Identifier and Parantheses
  4. Identifier and Return type

Ans : Identifier and Parantheses

(Q) Which is true about the name and text property of a control?

  1. They are the same when the control is first created.
  2. The text property changes to match any changes in the name property.
  3. The name property changes to match any changes in the text property.
  4. They are never the same unless the programmer makes it that way.

Ans : They are the same when the control is first created.

(Q) Which VBScript function can compare two strings?

  1. StringCompare
  2. Compare
  3. StrComp
  4. StrCompare

Ans : StrComp

(Q) Which of the following is used to get error details in VBScript?

  1. Err.Number
  2. Err.Description
  3. Both of the above.
  4. None of the above.

Ans : Both of the above.

(Q) Expression C = i++ causes_____

  1. Value of i assigned to C and then i incremented by 1
  2. i to be incremented by 1 and then value of i assigned to C
  3. Value of i assigned to C
  4. i to be incremented by 1

Ans : i to be incremented by 1

(Q) Which of the following are the ways to create a Javascript Object?

  1. var obj = {};
  2. var obj = Object.create().
  3. var obj = new Object();
  4. All of the above

Ans : All of the above

(Q) Which NameSpace is used to access the metadata in an Assembly?

  1. System.Assembler
  2. System.Reflection
  3. System.IO
  4. System.XML

Ans : System.Reflection

(Q) Which of the following is true about cookie handling in VBScript?

  1. VBScript can manipulate cookies using the cookie property of the Document object
  2. VBScript can read, create, modify, and delete the cookie or cookies that apply to the current web page.
  3. Both of the above.
  4. None of the above.

Ans : Both of the above.

(Q) Which of the following keywords are used to control access to a class member ?

  1. protected
  2. switch
  3. goto
  4. for

Ans : protected

(Q) Why JavaScript is called as Lightweight Programming Language ?

  1. because JS can provide programming functionality inside but up to certain extend.
  2. because JS is available free of cost.
  3. because we can add programming functionality inside JS
  4. because JS is client side scripting

Ans : because JS can provide programming functionality inside but up to certain extend.

(Q) Which of the following is a server-side JavaScript object?

  1. FileUpLoad
  2. File
  3. Function
  4. Date

Ans : File

(Q) Which is not a property of the Common control class?

  1. Show
  2. BackColor
  3. Font
  4. ForeColor

Ans : Show

(Q) Which of the following statements creates an object in VBScript?

  1. Set obj = CreateObject('Scripting.Dictionary')
  2. Dim obj = new Scripting.Dictionary
  3. Both of the above.
  4. None of the above.

Ans : Set obj = CreateObject('Scripting.Dictionary')

(Q) What is the datatype of a variable in VBScript?

  1. String
  2. Variant
  3. It is the datatype specified when that variable is declared.
  4. None of the above

Ans : Variant

(Q) In the Select Case statement, which case is used for unknown cases?

  1. Else
  2. Default
  3. Unknown
  4. Not

Ans : Else

(Q) What is the scope of a constant declared using Public in VBScript?

  1. The Public constants are available for all the scripts and procedures.
  2. The Public Constants are available within the procedure or Class.
  3. Both of the above
  4. None of the above.

Ans : The Public constants are available for all the scripts and procedures.

(Q) A static function_____

  1. should be called when an object is destroyed
  2. is closely connected with an individual object of a class
  3. can be called using the class name and function
  4. is used when a dummy object must be created

Ans : can be called using the class name and function

(Q) The library function exit() causes an exit from ?

  1. The loop in which it occurs
  2. The block in which it occurs
  3. The function in which it occurs
  4. The program in which it occurs

Ans : The program in which it occurs

(Q) What is true about a Constructor ?

  1. Its name is plural of class name.
  2. Its name has * symbol before it.
  3. Its name is same as of class name.
  4. Its name has # symbol before it.

Ans : Its name is same as of class name.

(Q) Which of the following function declaration is/are incorrect?

  1. int Sum(int a, int b = 2, int c = 3);
  2. int Sum(int a = 5, int b);
  3. int Sum(int a = 0, int b, int c = 3);
  4. All are correct.

Ans : All are correct.

(Q) When a derived class inherits from many base classes, this process is known as ?

  1. multiple inheritance
  2. multilevel inheritance
  3. default inheritance
  4. multiplex inheritance

Ans : multiple inheritance

(Q) A base class will offer_____

  1. offer more specific objects than its derived classes
  2. correspond to something in the rest world
  3. behave badly when the chops are down
  4. be a generalized version of its derived classes

Ans : be a generalized version of its derived classes

(Q) What is the purpose of a return statement in a function?

  1. Returns the value and continues executing rest of the statements, if any
  2. Returns the value and stops the program
  3. Returns the value and stops executing the function
  4. Stops executing the function and returns the value

Ans : Stops executing the function and returns the value

(Q) What is the use of "this" keyword in javascript?

  1. It refers to current object
  2. It is a variable which contains value
  3. It refers to previous object
  4. None of the above

Ans : It refers to current object

(Q) What is the correct JavaScript syntax to write "Hello World"?

  1. System.out.println("Hello World")
  2. println ("Hello World")
  3. document.write("Hello World")
  4. response.write("Hello World")

Ans : document.write("Hello World")

(Q) Which are the standard prefixes for the Button and Combo box controls respectively?

  1. btn and chb
  2. bto and chb
  3. bto and cbo
  4. btn and cbo

Ans : btn and cbo

(Q) The CancelButton property belongs to which object?

  1. Button
  2. Form
  3. Label
  4. TextBox

Ans : Form

(Q) Which type of project can a developer choose in the New Project dialog box?

  1. Visual Basic Projects
  2. Visual C# Projects
  3. Visual C++ Projects
  4. All of the above.

Ans : All of the above.

(Q) Which are the standard prefixes for the text box and label controls respectively?

  1. tex and lbl
  2. tex and lab
  3. txb and lbl
  4. txb and lab

Ans : txb and lbl

(Q) Visual Studio .NET provides which feature:_____

  1. debugging.
  2. application deployment.
  3. syntax checking.
  4. All of the above.

Ans : All of the above.

(Q) Which of the following is true about string value assignment in VBScript?

  1. he string values should be assigned without double quotes.
  2. The string values should be enclosed within double quotes (").
  3. The string values should be enclosed within hash symbol (#).
  4. None of the above.

Ans : The string values should be enclosed within double quotes (").

(Q) Which statement is true for VBScript names e.g. variable names or procedure names?

  1. They are case sensitive.
  2. They are case insensitive.
  3. They are case insensitive but should be written consistently for readability.
  4. Only variable names are case insensitive

Ans : They are case insensitive but should be written consistently for readability.

(Q) Which of the following is used to create a constant in VBScript?

  1. constant
  2. const
  3. final
  4. None of the above.

Ans : const

(Q) Which of the following is an attribute of Table tag?

  1. SRC
  2. LINK
  3. CELLPADDING
  4. BOLD

Ans : CELLPADDING

(Q) JavaScript variables are case-sensitive?

  1. TRUE.
  2. FALSE.
  3. N.A.
  4. N.A.

Ans : TRUE.

(Q) Local Browser used for validations on the Web Pages uses _______.

  1. CSS.
  2. Java.
  3. Js.
  4. HTML.

Ans : Java.

(Q) The ____ operator determines the type of a given object.

  1. typeof
  2. instanceof
  3. void
  4. delete

Ans : typeof

(Q) Javascript is _____ language.

  1. Client Side.
  2. Both.
  3. Server Side.
  4. None.

Ans : Client Side.

(Q) How to find out the index of a particular character or a string?

  1. position().
  2. index().
  3. indexOf().
  4. None of the mentioned.

Ans : indexOf().

(Q) Choose the correct HTML tag for the largest heading?

  1. H1 tag.
  2. H6 tag
  3. H10 tag.
  4. HEAD tag.

Ans : H1 tag.

(Q) Comments in XML document is given by:

  1. ?-- _ _-- tag.
  2. !_ _ _ _! tag.
  3. !_ _ _ _ tag.
  4. /_ _ _ _ tag.

Ans : !_ _ _ _ tag.

(Q) The Sign & operator is ?

  1. Address operator.
  2. Indirection operator.
  3. Logical and.
  4. Logical or.

Ans : Address operator.

(Q) What is an ISP?

  1. Internet System Protocol.
  2. Internal System Program.
  3. Internet Service Provider.
  4. None of the above.

Ans : Internet Service Provider.

(Q) How do you create a new object in JavaScript?

  1. var obj = {};
  2. var obj=new {};
  3. var obj = Object();
  4. None of the above.

Ans : var obj = {};

(Q) ______ attribute is used to specify the character encoding used in an external script file.

  1. type.
  2. character.
  3. characters.
  4. charset.

Ans : charset.

(Q) JavaScript is ______ Side Scripting Language.

  1. Server.
  2. ISP.
  3. Browser.
  4. None of These.

Ans : Browser.

(Q) Javascript is an object oriented language?

  1. FALSE
  2. TRUE
  3. N.A.
  4. N.A.

Ans : TRUE

(Q) JavaScript Code is written inside file having extension _______.

  1. .js
  2. .javascript
  3. .jvs
  4. .jsc

Ans : .js

(Q) Javascript is ______ language.

  1. Application
  2. Programming
  3. Scripting
  4. None of These.

Ans : Scripting

(Q) Is it valid to nest functions in JavaScript?

  1. Yes.
  2. No.
  3. N.A.
  4. N.A.

Ans : Yes.

(Q) JavaScript is designed for following purpose_____

  1. To Perform Server Side Scripting Opertion.( )
  2. To Execute Query Related to DB on Server.
  3. To add interactivity to HTML Pages.
  4. To Style HTML Pages.

Ans : To add interactivity to HTML Pages.

(Q) The function procedures are ________ by default.

  1. public
  2. private
  3. protected
  4. inherited

Ans : public

(Q) Which of the following converts the expression to Boolean data type in VB.NET?

  1. CBool(expression).
  2. CByte(expression).
  3. CChar(expression).
  4. CDate(expression).

Ans : CBool(expression).

(Q) Which is not a common control event?

  1. Click.
  2. SingleClick.
  3. DoubleClick.
  4. MouseMove.

Ans : SingleClick.

(Q) The Tick event is found only in which object?

  1. Form
  2. Button
  3. TextBox
  4. Timer

Ans : Timer

(Q) Which of the following function prototypes is perfectly acceptable?

  1. int Function(int Tmp = Show());
  2. float Function(int Tmp = Show(int, float));
  3. Both A and B.
  4. float = Show(int, float) Function(Tmp);

Ans : int Function(int Tmp = Show());

(Q) The Boolean data type:

  1. is unsigned.
  2. has two states.
  3. is displayed by the program as yes or no.
  4. Both a and b.

Ans : Both a and b.

(Q) In event-driven programming an event is generated by:

  1. The system.
  2. A user's action.
  3. The program itself.
  4. All of the above.

Ans : All of the above.

(Q) The Activated event is found only in which object?

  1. Form
  2. Button
  3. TextBox
  4. Label

Ans : Form

(Q) Which is a valid statement for declaring a variable?

  1. Const Form As Integer.
  2. Const myForm As Integer.
  3. Dim Form As Integer.
  4. Dim myForm As Integer.

Ans : Dim myForm As Integer.

(Q) Type casting in VB.Net is implemented by means of _______ statement.

  1. Type()
  2. TypeDef()
  3. Btype()
  4. Ctype()

Ans : Ctype()

(Q) Which is not an integer data type?

  1. Single
  2. Byte
  3. Short
  4. Integer

Ans : Single

(Q) The ______ method converts an OLE automation date value to a DateTime Instance.

  1. Today
  2. TimeOfDay
  3. Now
  4. FromOADate

Ans : FromOADate

(Q) The _____ model does not offer a model for source code reuse.

  1. COM+
  2. DCOM
  3. COM
  4. .Net

Ans : COM

(Q) Which of the following Loop structure does not supported by VB.Net?

  1. Do ....... Loop
  2. For ......... Next
  3. Do ........ While
  4. For Each ........ While

Ans : Do ........ While

(Q) What does IDE stand for_______?

  1. Integrated Development Environment.
  2. Integrated Design Environment.
  3. Interior Development Environment.
  4. Interior Design Environment.

Ans : Integrated Development Environment.

(Q) Which is a numeric data type?

  1. Floating point
  2. Integer
  3. Boolean
  4. Both a and b.

Ans : Both a and b.

(Q) How will you release the memory acquired by an array variable in VBScript?

  1. Using Join function.
  2. Using Filter function.
  3. Using IsArray function.
  4. Using Erase Function.

Ans : Using Erase Function.

(Q) Which is the correct order of precedence of Arithmetic operators?

  1. +/*-
  2. */+-
  3. +-*/
  4. +*-/

Ans : */+-

(Q) Is VBScript case sensitive?

  1. TRUE
  2. FALSE
  3. Private
  4. All of the above.

Ans : FALSE

(Q) The .Net class library:________

  1. Contains over 25,000 classes.
  2. Uses namespaces to manage all of the classes.
  3. Uses namespaces to manage all of the classes.
  4. Both a and b.

Ans : Both a and b.

(Q) The name of a constant:________

  1. Must both begin with a letter and be all upper case.
  2. Does not have to begin with a letter but must be all upper case.
  3. Must begin with a letter but can be upper or lower case.
  4. Does not have to begin with a letter and be either upper or lower case.

Ans : Does not have to begin with a letter and be either upper or lower case.

(Q) The ___________ method converts an OLE automation date value to a DateTime Instance.

  1. Today
  2. TimeOfDay
  3. Now
  4. FromOADate

Ans : FromOADate

(Q) The proper operator precedence, from first to last, is:________

  1. logical, comparison, and arithmetic.
  2. Arithmetic, comparison, and logical.
  3. Arithmetic, logical, and comparison.
  4. Comparison, arithmetic, and logical.

Ans : Arithmetic, comparison, and logical.

(Q) If no access modifier is specified for a class, it is considered ____________

  1. Public
  2. Private
  3. Friend
  4. Protected

Ans : Public

(Q) Which does the solution explorer not display?

  1. Form Properties
  2. Reference Folder
  3. Form File
  4. Assemble File

Ans : Form Properties

(Q) What is the scope of a constant declared using Private in VBScript?

  1. The Private constants are available for all the scripts and procedures.
  2. The Private Constants are available within the procedure or Class.
  3. Both of the above.
  4. None of the above.

Ans : The Private Constants are available within the procedure or Class.

(Q) Which browser has built-in support for executing VBScript?

  1. Internet Explorer
  2. Mozilla Firefox
  3. Opera
  4. None of these

Ans : Internet Explorer

(Q) Which of the following is true about numeric value assignment in VBScript?

  1. The numeric values should be assigned without double quotes.
  2. The numeric values should be enclosed within doublequotes(").
  3. The numeric values should be enclosed within hash symbol(#).
  4. None of the above.

Ans : The numeric values should be assigned without double quotes.

(Q) Which of the following operator is supported in VBScript?

  1. Arithmetic Operators
  2. Comparison Operators
  3. Logical Operators
  4. All of the above.

Ans : All of the above.

(Q) What is the difference between the Sub procedure and Function procedure?

  1. Only the Sub procedure can perform actions.
  2. Both procedures can take arguments.
  3. Only the Function procedure can return a value.
  4. N.A.

Ans : Only the Function procedure can return a value.

(Q) How will you get the exponent of the given number in VBScript?

  1. Using Abs function
  2. Using Exp function
  3. Using InStr function
  4. Using InStrRev function

Ans : Using Exp function

(Q) How will you get the square root of the given number in VBScript?

  1. Using Oct function.
  2. Using Hex function.
  3. Using Rnd function.
  4. Using Sqr function.

Ans : Using Sqr function.

(Q) How will you increase the size of an array in VBScript?

  1. Using ReDim statement.
  2. Using Split function.
  3. Using LBound function.
  4. Using UBound function

Ans : Using ReDim statement.

(Q) How to return a value from a function in VBScript?

  1. Using return keyword.
  2. Assign the value to the function name itself.
  3. Both of the above.
  4. None of the above.

Ans : Assign the value to the function name itself.

(Q) How will you get the smallest subscript of an array in VBScript?

  1. Using ReDim statement.
  2. Using LBound function.
  3. Using UBound function.
  4. Using Split function.

Ans : Using LBound function.

(Q) How will you format a number in percentage format in VBScript?

  1. Using FormatNumber Function.
  2. Using FormatPercent function.
  3. Using Int function.
  4. Using Log function.

Ans : Using FormatPercent function.

(Q) How will you get the integer part of a number in VBScript?

  1. Using FormatNumber Function.
  2. Using FormatPercent function.
  3. Using Int function.
  4. Using Log function.

Ans : Using Int function.

(Q) How will you convert a string to lower case string using VBScript?

  1. Using Ucase function.
  2. Using Ucase function.
  3. Using Ltrim function.
  4. Using Rtrim function.

Ans : Using Ucase function.

(Q) How will you trim the spaces on the left of a string using VBScript?

  1. Using Lcase function.
  2. Using Ucase function.
  3. Using Ltrim function.
  4. Using Rtrim function.

Ans : Using Ltrim function.

(Q) How will you get the largest subscript of an array in VBScript?

  1. Using ReDim statement.
  2. Using LBound function.
  3. Using UBound function.
  4. Using Split function.

Ans : Using UBound function.

(Q) How will you replace a string with another string using VBScript?

  1. Using Trim function.
  2. Using Len function.
  3. Using Replace function.
  4. Using Space function.

Ans : Using Replace function.

(Q) How will you reverse a String in VBScript?

  1. Using StrReverse function.
  2. Using Compare function.
  3. Using InStr function.
  4. Using toString function.

Ans : Using StrReverse function.

(Q) Destructors are called ?

  1. Not defined
  2. In any order
  3. In the reverse order of constructor calls
  4. In the same order of constructor calls

Ans : In the reverse order of constructor calls

(Q) Which of the following is a valid scope in VBScript?

  1. Dim
  2. Public
  3. Private
  4. All of the above.

Ans : All of the above.

(Q) How can we define a member function outside the class ?

  1. Using union.
  2. Using structure.
  3. Using pointers.
  4. Using scope resolution.

Ans : Using scope resolution.

(Q) Seek time is________

  1. Time taken to retrieve a data.
  2. Time taken by read/write head mechanism to position itself over appropriate cylinder.
  3. Time taken by appropriate sector to come under read/write.
  4. None of the above.

Ans : None of the above.

(Q) The sign && means________

  1. Logical OR
  2. Bitwise OR
  3. Logical AND
  4. Bitwise AND

Ans : Logical AND

(Q) Classes that can be used to instantiate objects are called concrete classes.________

  1. TRUE
  2. FALSE
  3. N.A.
  4. N.A.

Ans : TRUE

(Q) How will you get the octal value of the given number in VBScript?

  1. Using Oct function
  2. Using Hex function
  3. Using Rnd function
  4. Using Sqr function

Ans : Using Oct function

(Q) Which of the following function prototypes is perfectly acceptable?

  1. Int Function(int Tmp = Show());
  2. Float Function(int Tmp = Show(int, float));
  3. Both A and B.
  4. Float = Show(int, float) Function(Tmp);

Ans : Int Function(int Tmp = Show());

(Q) The process of deriving a class from another derived class is known as ?

  1. Single inheritance
  2. Dual inheritance
  3. Multiple inheritance
  4. Multilevel inheritance

Ans : Multiple inheritance

(Q) A GUI:________

  1. Uses buttons, menus, and icons.
  2. Should be easy for a user to manipulate.
  3. Stands for Graphic Use Interaction.
  4. Both a and b.

Ans : Both a and b.

(Q) What is the purpose of an abstract class ?

  1. To provide help with database connectivity.
  2. To provide data input to other classes.
  3. To provide security to other classes.
  4. To provide an appropriate base class from which other classes can inherit.

Ans : To provide an appropriate base class from which other classes can inherit.

(Q) What is a class in c++ ?

  1. When you define a class, you define a blueprint for a data type.
  2. When you define a class, you make get more functionality.
  3. When you define a class, you define the logic.
  4. When you define a class, you make debugging.

Ans : When you define a class, you define a blueprint for a data type.

(Q) The conversion from basic data to class type can be done by ________

  1. Writing constructor
  2. Is not possible
  3. Overloaded casting operator
  4. Object of a class

Ans : Writing constructor

(Q) What is data hiding ?

  1. It is related with hiding internal object details.
  2. It is related with showing internal object details.
  3. It is related with datatypes.
  4. None of above.

Ans : It is related with hiding internal object details.

(Q) How to find out the index of a particular character or a string?

  1. Position()
  2. Index()
  3. IndexOf()
  4. None of the mentioned

Ans : IndexOf()

(Q) Which of the following is not a JavaScript datatype?

  1. Boolean
  2. String
  3. Number
  4. Function

Ans : Function

(Q) Which is not a feature of a GUI that makes learning a program easy for users?

  1. Online help
  2. WYSIWYG formatting
  3. Dialog boxes
  4. Detailed key strokes and commands

Ans : Detailed key strokes and commands

(Q) The syntax of Eval is ______

  1. [objectName.]eval(numeriC.
  2. [objectName.]eval(string)
  3. [EvalName.]eval(string)
  4. [EvalName.]eval(numeriC.

Ans : [objectName.]eval(string)

(Q) ______ attribute is used to specify the character encoding used in an external script file.

  1. Type
  2. Character
  3. Character
  4. Charset

Ans : Charset

(Q) What is the output of this expression? x = 2 + "2"; document.write(x);

  1. 22
  2. 4
  3. 2
  4. syntax error

Ans : 22

(Q) Which of the following is not a valid JavaScript variable name?

  1. 5myvalue
  2. myvalue5
  3. Myvalue
  4. None of the above

Ans : 5myvalue

(Q) What would we use to know if a value returned in a datatable is NULL in the database?

  1. IsDbNull( )
  2. IsEmpty( )
  3. ISNull( )
  4. None

Ans : IsDbNull( )

(Q) Which was the first browser to support JavaScript ?

  1. Google Chrome
  2. Netscape
  3. Mozilla Firefox
  4. IE

Ans : Netscape

(Q) Which operator creates a new object from the specified object type?

  1. Obj
  2. Create
  3. New
  4. None of the above

Ans : New

(Q) Which of the following is a valid scope in VBScript?

  1. Dim
  2. Public
  3. Private
  4. All of the above.

Ans : All of the above.

(Q) Using turbo C++ library function can ?

  1. Color any closed figure
  2. Draw lines and circles
  3. Write in variety of fonts and sizes
  4. All of the above

Ans : All of the above

(Q) Choose the most appropriate statement.

  1. An abstract base class can have pure virtual destructor.
  2. An abstract base class can have only virtual destructor.
  3. An abstract base class can have non virtual destructor.
  4. An abstract base class cannot have destructor.

Ans : An abstract base class cannot have destructor.

(Q) Overloaded function _____.

  1. Are a group of functions,with the same value.
  2. All have the same number and types of arguments.
  3. Make life simpler for programmers.
  4. May fail unexpectedly due to stress.

Ans : Make life simpler for programmers.

(Q) Which symbol is used to create multiple inheritance?

  1. Dot
  2. Comma
  3. Dollar
  4. None of the mentioned

Ans : Comma

(Q) Which of the following cannot be passed to a function ?

  1. Array
  2. Reference variable
  3. Object
  4. File

Ans : File

(Q) Inheritance is referred to as_____

  1. "is a" relationship
  2. "have a" relationship
  3. Both of above
  4. None of above.

Ans : "is a" relationship

(Q) Which of the following statements is incorrect?

  1. Default arguments can be provided for pointers to functions.
  2. A function can have all its arguments as default.
  3. Default argument cannot be provided for pointers to functions.
  4. A default argument cannot be redefined in later declaration.

Ans : Default argument cannot be provided for pointers to functions.

(Q) What is actual syntax of destructor in c++ ?

  1. !Classname( )
  2. @Classname( )
  3. $Classname( )
  4. ~Classname( )

Ans : ~Classname( )

(Q) Which of the following functions below can be used Allocate space for array in memory?

  1. calloc()
  2. malloc()
  3. realloc()
  4. Both a and b

Ans : Both a and b

(Q) Which of the following operators below allow to define the member functions of a class outside the class?

  1. ::
  2. ?
  3. :?
  4. %

Ans : ::

(Q) Classes in c++ are ?

  1. Fundamental data type.
  2. Primitive data type.
  3. Desired data type.
  4. Not defined.

Ans : Desired data type.

(Q) Which among following is correct way of declaring object of a class ?

  1. Classname Objectname;
  2. Class Classname Objectname;
  3. Class Classname Object Objectname;
  4. Classname Object Objectname;

Ans : Classname Objectname;

(Q) Which of the following function prototypes is perfectly acceptable?

  1. int Function(int Tmp = Show());
  2. float Function(int Tmp = Show(int, float));
  3. Both A and B.
  4. float = Show(int, float) Function(Tmp);

Ans : int Function(int Tmp = Show());

(Q) The signature of a function is its ..... ?

  1. Function code.
  2. Prototype.
  3. Call.
  4. Parameter list.

Ans : Prototype.

(Q) When one class inherits from the base class, then the original class is called_____

  1. Derived class
  2. Base class.
  3. Sub class.
  4. Basic class.

Ans : Base class.

(Q) Which loop is used to iterate till a condition becomes true?

  1. For Next loop
  2. For Each Next loop
  3. Do While loop
  4. Do Until loop

Ans : Do Until loop

(Q) Dividing a program into functions_____

  1. is the key to object oriented programming
  2. makes the program easier to conceptualize
  3. makes the program run faster
  4. both (B) and (C)

Ans : makes the program run faster

(Q) Can we define array of classes in c++ ?

  1. Yes
  2. No
  3. N.A.
  4. N.A.

Ans : Yes

(Q) What is true about a Constructor ?

  1. Its name is plural of class name.
  2. Its name has * symbol before it.
  3. Its name is same as of class name.
  4. Its name has # symbol before it.

Ans : Its name is same as of class name.

(Q) What are the three important manipulations done in a for loop on a loop variable?

  1. Updation, Incrementation, Initialization
  2. Initialization, Testing, Updation
  3. Testing, Updation, Testing
  4. Initialization, Testing, Incrementation

Ans : Initialization, Testing, Updation

(Q) The browser uses _____ tag to detect javascript.

  1. js tag.
  2. scripting tag
  3. script type="text/javascript" tag.
  4. javascript tag.

Ans : script type="text/javascript" tag.

(Q) Which of the ways below is incorrect of instantiating a date?

  1. new Date (dateString)
  2. new Date()
  3. new Date(seconds)
  4. new Date(year, month, day, hours, minutes, seconds, milliseconds)

Ans : new Date(seconds)

(Q) Which are the different ways to enumerate all properties of an object?

  1. for...in loops
  2. Object.getOwnPropertyNames()
  3. Object.keys()
  4. All of the above

Ans : All of the above

(Q) What is the alternate name for Java script?

  1. LimeScript
  2. ECMScript
  3. Coffee Script
  4. ECMAScript

Ans : ECMAScript

(Q) JavaScript is designed for following purpose _____

  1. To Perform Server Side Scripting Opertion
  2. To Execute Query Related to DB on Server
  3. To add interactivity to HTML Pages
  4. To Style HTML Pages

Ans : To add interactivity to HTML Pages

(Q) What is the most essential purpose of parentheses in regular expressions ?

  1. Define pattern matching techniques
  2. Define subpatterns within the complete pattern
  3. Define portion of strings in the regular expression
  4. All of the mentioned

Ans : Define subpatterns within the complete pattern

(Q) VB.Net identifiers:_____

  1. are case sensitive.
  2. can begin with an underscore.
  3. can begin with a number.
  4. Both a and b.

Ans : can begin with an underscore.

(Q) An object is composed of:_____

  1. properties.
  2. events.
  3. method
  4. all of the above

Ans : all of the above

(Q) What is the purpose of Invoke Method?

  1. Used to call any procedure
  2. Used to call the procedure through Delegate variable
  3. Both
  4. none

Ans : Used to call the procedure through Delegate variable

(Q) The Button control can be activated:_____

  1. programmatically through the click event.
  2. by clicking the button with the mouse.
  3. with the forms DefaultButton property.
  4. Both a and b.

Ans : Both a and b.

(Q) Which task is accomplished in the Code editor?

  1. Adding forms to the project
  2. Adding controls to the form
  3. Adding event procedures to the form
  4. All of the above.

Ans : Adding event procedures to the form

(Q) Which is not a main component of the Visual Studio IDE?

  1. Solution Explorer
  2. Tool Box
  3. Start Menu
  4. Designer Window

Ans : Start Menu

(Q) Which is not a feature of a GUI that makes learning a program easy for users?

  1. Online help
  2. WYSIWYG formatting
  3. Dialog boxes
  4. Detailed key strokes and commands

Ans : Detailed key strokes and commands

(Q) What is an object in C++ ?

  1. Object is part of syntax of a class
  2. Object is datatype of a class.
  3. Object is an instance of a class.
  4. Object is function of a class.

Ans : Object is an instance of a class.

(Q) Which of the following function of VBScript converts a given number of any variant subtype to Long?

  1. CDbl
  2. CInt
  3. CLng
  4. CSng

Ans : CLng

(Q) Which of the following function of VBScript converts a given number of any variant subtype to Double?

  1. CDbl
  2. CInt
  3. CLng
  4. CSng

Ans : CDbl

(Q) Which VBScript function converts an input string to all lowercase?

  1. LCase
  2. LowerCase
  3. Lower
  4. There is no such function to directly convert to lowercase.

Ans : LCase

(Q) How many default ledger accounts are there in Ex-NGN?

  1. 2
  2. 3
  3. 4
  4. None of these

Ans : 3