View MCQ Question
(Q) Even if we define a function in a class, then also we need to declare it first_____
- TRUE
- FALSE
- N.A.
- N.A.
Ans : FALSE
(Q) Constructors has return type void ?
- TRUE
- FALSE
- N.A.
- N.A.
Ans : TRUE
(Q) The major goal of inheritance in C++ is ?
- To facilitate the reusability of code
- To help modular programming
- To facilitate the conversion of data types
- To extend the capabilities of a class
Ans : To facilitate the reusability of code
(Q) Data members and member functions are enclosed within ?
- union
- structure
- class
- array
Ans : class
(Q) What is the output of this strict equality operator? 5 === '5'
- TRUE
- FALSE
- N.A.
- N.A.
Ans : FALSE
(Q) Which of the following javascript functions are used to convert nonnumeric values into numbers?
- Number()
- parseFloat()
- parseInt()
- All of the above
Ans : All of the above
(Q) ________ returns true if a variable is an array, if not false.
- Array.isArray()
- Array.from()
- Array.of()
- Array.observe()
Ans : Array.isArray()
(Q) The function definitions in JavaScript begins with_____
- Identifier and Parantheses
- Return type and Identifier
- Return type, Function keyword, Identifier and Parantheses
- Identifier and Return type
Ans : Identifier and Parantheses
(Q) Which is true about the name and text property of a control?
- They are the same when the control is first created.
- The text property changes to match any changes in the name property.
- The name property changes to match any changes in the text property.
- 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?
- StringCompare
- Compare
- StrComp
- StrCompare
Ans : StrComp
(Q) Which of the following is used to get error details in VBScript?
- Err.Number
- Err.Description
- Both of the above.
- None of the above.
Ans : Both of the above.
(Q) Expression C = i++ causes_____
- Value of i assigned to C and then i incremented by 1
- i to be incremented by 1 and then value of i assigned to C
- Value of i assigned to C
- 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?
- var obj = {};
- var obj = Object.create().
- var obj = new Object();
- All of the above
Ans : All of the above
(Q) Which NameSpace is used to access the metadata in an Assembly?
- System.Assembler
- System.Reflection
- System.IO
- System.XML
Ans : System.Reflection
(Q) Which of the following is true about cookie handling in VBScript?
- VBScript can manipulate cookies using the cookie property of the Document object
- VBScript can read, create, modify, and delete the cookie or cookies that apply to the current web page.
- Both of the above.
- None of the above.
Ans : Both of the above.
(Q) Which of the following keywords are used to control access to a class member ?
- protected
- switch
- goto
- for
Ans : protected
(Q) Why JavaScript is called as Lightweight Programming Language ?
- because JS can provide programming functionality inside but up to certain extend.
- because JS is available free of cost.
- because we can add programming functionality inside JS
- 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?
- FileUpLoad
- File
- Function
- Date
Ans : File
(Q) Which is not a property of the Common control class?
- Show
- BackColor
- Font
- ForeColor
Ans : Show
(Q) Which of the following statements creates an object in VBScript?
- Set obj = CreateObject('Scripting.Dictionary')
- Dim obj = new Scripting.Dictionary
- Both of the above.
- None of the above.
Ans : Set obj = CreateObject('Scripting.Dictionary')
(Q) What is the datatype of a variable in VBScript?
- String
- Variant
- It is the datatype specified when that variable is declared.
- None of the above
Ans : Variant
(Q) In the Select Case statement, which case is used for unknown cases?
- Else
- Default
- Unknown
- Not
Ans : Else
(Q) What is the scope of a constant declared using Public in VBScript?
- The Public constants are available for all the scripts and procedures.
- The Public Constants are available within the procedure or Class.
- Both of the above
- None of the above.
Ans : The Public constants are available for all the scripts and procedures.
(Q) A static function_____
- should be called when an object is destroyed
- is closely connected with an individual object of a class
- can be called using the class name and function
- 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 ?
- The loop in which it occurs
- The block in which it occurs
- The function in which it occurs
- The program in which it occurs
Ans : The program in which it occurs
(Q) What is true about a Constructor ?
- Its name is plural of class name.
- Its name has * symbol before it.
- Its name is same as of class name.
- 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?
- int Sum(int a, int b = 2, int c = 3);
- int Sum(int a = 5, int b);
- int Sum(int a = 0, int b, int c = 3);
- All are correct.
Ans : All are correct.
(Q) When a derived class inherits from many base classes, this process is known as ?
- multiple inheritance
- multilevel inheritance
- default inheritance
- multiplex inheritance
Ans : multiple inheritance
(Q) A base class will offer_____
- offer more specific objects than its derived classes
- correspond to something in the rest world
- behave badly when the chops are down
- 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?
- Returns the value and continues executing rest of the statements, if any
- Returns the value and stops the program
- Returns the value and stops executing the function
- 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?
- It refers to current object
- It is a variable which contains value
- It refers to previous object
- None of the above
Ans : It refers to current object
(Q) What is the correct JavaScript syntax to write "Hello World"?
- System.out.println("Hello World")
- println ("Hello World")
- document.write("Hello World")
- response.write("Hello World")
Ans : document.write("Hello World")
(Q) Which are the standard prefixes for the Button and Combo box controls respectively?
- btn and chb
- bto and chb
- bto and cbo
- btn and cbo
Ans : btn and cbo
(Q) The CancelButton property belongs to which object?
- Button
- Form
- Label
- TextBox
Ans : Form
(Q) Which type of project can a developer choose in the New Project dialog box?
- Visual Basic Projects
- Visual C# Projects
- Visual C++ Projects
- All of the above.
Ans : All of the above.
(Q) Which are the standard prefixes for the text box and label controls respectively?
- tex and lbl
- tex and lab
- txb and lbl
- txb and lab
Ans : txb and lbl
(Q) Visual Studio .NET provides which feature:_____
- debugging.
- application deployment.
- syntax checking.
- All of the above.
Ans : All of the above.
(Q) Which of the following is true about string value assignment in VBScript?
- he string values should be assigned without double quotes.
- The string values should be enclosed within double quotes (").
- The string values should be enclosed within hash symbol (#).
- 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?
- They are case sensitive.
- They are case insensitive.
- They are case insensitive but should be written consistently for readability.
- 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?
- constant
- const
- final
- None of the above.
Ans : const
(Q) Which of the following is an attribute of Table tag?
- SRC
- LINK
- CELLPADDING
- BOLD
Ans : CELLPADDING
(Q) JavaScript variables are case-sensitive?
- TRUE.
- FALSE.
- N.A.
- N.A.
Ans : TRUE.
(Q) Local Browser used for validations on the Web Pages uses _______.
- CSS.
- Java.
- Js.
- HTML.
Ans : Java.
(Q) The ____ operator determines the type of a given object.
- typeof
- instanceof
- void
- delete
Ans : typeof
(Q) Javascript is _____ language.
- Client Side.
- Both.
- Server Side.
- None.
Ans : Client Side.
(Q) How to find out the index of a particular character or a string?
- position().
- index().
- indexOf().
- None of the mentioned.
Ans : indexOf().
(Q) Choose the correct HTML tag for the largest heading?
- H1 tag.
- H6 tag
- H10 tag.
- HEAD tag.
Ans : H1 tag.
(Q) Comments in XML document is given by:
- ?-- _ _-- tag.
- !_ _ _ _! tag.
- !_ _ _ _ tag.
- /_ _ _ _ tag.
Ans : !_ _ _ _ tag.
(Q) The Sign & operator is ?
- Address operator.
- Indirection operator.
- Logical and.
- Logical or.
Ans : Address operator.
(Q) What is an ISP?
- Internet System Protocol.
- Internal System Program.
- Internet Service Provider.
- None of the above.
Ans : Internet Service Provider.
(Q) How do you create a new object in JavaScript?
- var obj = {};
- var obj=new {};
- var obj = Object();
- None of the above.
Ans : var obj = {};
(Q) ______ attribute is used to specify the character encoding used in an external script file.
- type.
- character.
- characters.
- charset.
Ans : charset.
(Q) JavaScript is ______ Side Scripting Language.
- Server.
- ISP.
- Browser.
- None of These.
Ans : Browser.
(Q) Javascript is an object oriented language?
- FALSE
- TRUE
- N.A.
- N.A.
Ans : TRUE
(Q) JavaScript Code is written inside file having extension _______.
- .js
- .javascript
- .jvs
- .jsc
Ans : .js
(Q) Javascript is ______ language.
- Application
- Programming
- Scripting
- None of These.
Ans : Scripting
(Q) Is it valid to nest functions in JavaScript?
- Yes.
- No.
- N.A.
- N.A.
Ans : Yes.
(Q) JavaScript is designed for following purpose_____
- To Perform Server Side Scripting Opertion.( )
- To Execute Query Related to DB on Server.
- To add interactivity to HTML Pages.
- To Style HTML Pages.
Ans : To add interactivity to HTML Pages.
(Q) The function procedures are ________ by default.
- public
- private
- protected
- inherited
Ans : public
(Q) Which of the following converts the expression to Boolean data type in VB.NET?
- CBool(expression).
- CByte(expression).
- CChar(expression).
- CDate(expression).
Ans : CBool(expression).
(Q) Which is not a common control event?
- Click.
- SingleClick.
- DoubleClick.
- MouseMove.
Ans : SingleClick.
(Q) The Tick event is found only in which object?
- Form
- Button
- TextBox
- Timer
Ans : Timer
(Q) Which of the following function prototypes is perfectly acceptable?
- int Function(int Tmp = Show());
- float Function(int Tmp = Show(int, float));
- Both A and B.
- float = Show(int, float) Function(Tmp);
Ans : int Function(int Tmp = Show());
(Q) The Boolean data type:
- is unsigned.
- has two states.
- is displayed by the program as yes or no.
- Both a and b.
Ans : Both a and b.
(Q) In event-driven programming an event is generated by:
- The system.
- A user's action.
- The program itself.
- All of the above.
Ans : All of the above.
(Q) The Activated event is found only in which object?
- Form
- Button
- TextBox
- Label
Ans : Form
(Q) Which is a valid statement for declaring a variable?
- Const Form As Integer.
- Const myForm As Integer.
- Dim Form As Integer.
- Dim myForm As Integer.
Ans : Dim myForm As Integer.
(Q) Type casting in VB.Net is implemented by means of _______ statement.
- Type()
- TypeDef()
- Btype()
- Ctype()
Ans : Ctype()
(Q) Which is not an integer data type?
- Single
- Byte
- Short
- Integer
Ans : Single
(Q) The ______ method converts an OLE automation date value to a DateTime Instance.
- Today
- TimeOfDay
- Now
- FromOADate
Ans : FromOADate
(Q) The _____ model does not offer a model for source code reuse.
- COM+
- DCOM
- COM
- .Net
Ans : COM
(Q) Which of the following Loop structure does not supported by VB.Net?
- Do ....... Loop
- For ......... Next
- Do ........ While
- For Each ........ While
Ans : Do ........ While
(Q) What does IDE stand for_______?
- Integrated Development Environment.
- Integrated Design Environment.
- Interior Development Environment.
- Interior Design Environment.
Ans : Integrated Development Environment.
(Q) Which is a numeric data type?
- Floating point
- Integer
- Boolean
- Both a and b.
Ans : Both a and b.
(Q) How will you release the memory acquired by an array variable in VBScript?
- Using Join function.
- Using Filter function.
- Using IsArray function.
- Using Erase Function.
Ans : Using Erase Function.
(Q) Which is the correct order of precedence of Arithmetic operators?
- +/*-
- */+-
- +-*/
- +*-/
Ans : */+-
(Q) Is VBScript case sensitive?
- TRUE
- FALSE
- Private
- All of the above.
Ans : FALSE
(Q) The .Net class library:________
- Contains over 25,000 classes.
- Uses namespaces to manage all of the classes.
- Uses namespaces to manage all of the classes.
- Both a and b.
Ans : Both a and b.
(Q) The name of a constant:________
- Must both begin with a letter and be all upper case.
- Does not have to begin with a letter but must be all upper case.
- Must begin with a letter but can be upper or lower case.
- 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.
- Today
- TimeOfDay
- Now
- FromOADate
Ans : FromOADate
(Q) The proper operator precedence, from first to last, is:________
- logical, comparison, and arithmetic.
- Arithmetic, comparison, and logical.
- Arithmetic, logical, and comparison.
- Comparison, arithmetic, and logical.
Ans : Arithmetic, comparison, and logical.
(Q) If no access modifier is specified for a class, it is considered ____________
- Public
- Private
- Friend
- Protected
Ans : Public
(Q) Which does the solution explorer not display?
- Form Properties
- Reference Folder
- Form File
- Assemble File
Ans : Form Properties
(Q) What is the scope of a constant declared using Private in VBScript?
- The Private constants are available for all the scripts and procedures.
- The Private Constants are available within the procedure or Class.
- Both of the above.
- 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?
- Internet Explorer
- Mozilla Firefox
- Opera
- None of these
Ans : Internet Explorer
(Q) Which of the following is true about numeric value assignment in VBScript?
- The numeric values should be assigned without double quotes.
- The numeric values should be enclosed within doublequotes(").
- The numeric values should be enclosed within hash symbol(#).
- None of the above.
Ans : The numeric values should be assigned without double quotes.
(Q) Which of the following operator is supported in VBScript?
- Arithmetic Operators
- Comparison Operators
- Logical Operators
- All of the above.
Ans : All of the above.
(Q) What is the difference between the Sub procedure and Function procedure?
- Only the Sub procedure can perform actions.
- Both procedures can take arguments.
- Only the Function procedure can return a value.
- N.A.
Ans : Only the Function procedure can return a value.
(Q) How will you get the exponent of the given number in VBScript?
- Using Abs function
- Using Exp function
- Using InStr function
- Using InStrRev function
Ans : Using Exp function
(Q) How will you get the square root of the given number in VBScript?
- Using Oct function.
- Using Hex function.
- Using Rnd function.
- Using Sqr function.
Ans : Using Sqr function.
(Q) How will you increase the size of an array in VBScript?
- Using ReDim statement.
- Using Split function.
- Using LBound function.
- Using UBound function
Ans : Using ReDim statement.
(Q) How to return a value from a function in VBScript?
- Using return keyword.
- Assign the value to the function name itself.
- Both of the above.
- 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?
- Using ReDim statement.
- Using LBound function.
- Using UBound function.
- Using Split function.
Ans : Using LBound function.
(Q) How will you format a number in percentage format in VBScript?
- Using FormatNumber Function.
- Using FormatPercent function.
- Using Int function.
- Using Log function.
Ans : Using FormatPercent function.
(Q) How will you get the integer part of a number in VBScript?
- Using FormatNumber Function.
- Using FormatPercent function.
- Using Int function.
- Using Log function.
Ans : Using Int function.
(Q) How will you convert a string to lower case string using VBScript?
- Using Ucase function.
- Using Ucase function.
- Using Ltrim function.
- Using Rtrim function.
Ans : Using Ucase function.
(Q) How will you trim the spaces on the left of a string using VBScript?
- Using Lcase function.
- Using Ucase function.
- Using Ltrim function.
- Using Rtrim function.
Ans : Using Ltrim function.
(Q) How will you get the largest subscript of an array in VBScript?
- Using ReDim statement.
- Using LBound function.
- Using UBound function.
- Using Split function.
Ans : Using UBound function.
(Q) How will you replace a string with another string using VBScript?
- Using Trim function.
- Using Len function.
- Using Replace function.
- Using Space function.
Ans : Using Replace function.
(Q) How will you reverse a String in VBScript?
- Using StrReverse function.
- Using Compare function.
- Using InStr function.
- Using toString function.
Ans : Using StrReverse function.
(Q) Destructors are called ?
- Not defined
- In any order
- In the reverse order of constructor calls
- 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?
- Dim
- Public
- Private
- All of the above.
Ans : All of the above.
(Q) How can we define a member function outside the class ?
- Using union.
- Using structure.
- Using pointers.
- Using scope resolution.
Ans : Using scope resolution.
(Q) Seek time is________
- Time taken to retrieve a data.
- Time taken by read/write head mechanism to position itself over appropriate cylinder.
- Time taken by appropriate sector to come under read/write.
- None of the above.
Ans : None of the above.
(Q) The sign && means________
- Logical OR
- Bitwise OR
- Logical AND
- Bitwise AND
Ans : Logical AND
(Q) Classes that can be used to instantiate objects are called concrete classes.________
- TRUE
- FALSE
- N.A.
- N.A.
Ans : TRUE
(Q) How will you get the octal value of the given number in VBScript?
- Using Oct function
- Using Hex function
- Using Rnd function
- Using Sqr function
Ans : Using Oct function
(Q) Which of the following function prototypes is perfectly acceptable?
- Int Function(int Tmp = Show());
- Float Function(int Tmp = Show(int, float));
- Both A and B.
- 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 ?
- Single inheritance
- Dual inheritance
- Multiple inheritance
- Multilevel inheritance
Ans : Multiple inheritance
(Q) A GUI:________
- Uses buttons, menus, and icons.
- Should be easy for a user to manipulate.
- Stands for Graphic Use Interaction.
- Both a and b.
Ans : Both a and b.
(Q) What is the purpose of an abstract class ?
- To provide help with database connectivity.
- To provide data input to other classes.
- To provide security to other classes.
- 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++ ?
- When you define a class, you define a blueprint for a data type.
- When you define a class, you make get more functionality.
- When you define a class, you define the logic.
- 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 ________
- Writing constructor
- Is not possible
- Overloaded casting operator
- Object of a class
Ans : Writing constructor
(Q) What is data hiding ?
- It is related with hiding internal object details.
- It is related with showing internal object details.
- It is related with datatypes.
- 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?
- Position()
- Index()
- IndexOf()
- None of the mentioned
Ans : IndexOf()
(Q) Which of the following is not a JavaScript datatype?
- Boolean
- String
- Number
- Function
Ans : Function
(Q) Which is not a feature of a GUI that makes learning a program easy for users?
- Online help
- WYSIWYG formatting
- Dialog boxes
- Detailed key strokes and commands
Ans : Detailed key strokes and commands
(Q) The syntax of Eval is ______
- [objectName.]eval(numeriC.
- [objectName.]eval(string)
- [EvalName.]eval(string)
- [EvalName.]eval(numeriC.
Ans : [objectName.]eval(string)
(Q) ______ attribute is used to specify the character encoding used in an external script file.
- Type
- Character
- Character
- Charset
Ans : Charset
(Q) What is the output of this expression? x = 2 + "2"; document.write(x);
- 22
- 4
- 2
- syntax error
Ans : 22
(Q) Which of the following is not a valid JavaScript variable name?
- 5myvalue
- myvalue5
- Myvalue
- 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?
- IsDbNull( )
- IsEmpty( )
- ISNull( )
- None
Ans : IsDbNull( )
(Q) Which was the first browser to support JavaScript ?
- Google Chrome
- Netscape
- Mozilla Firefox
- IE
Ans : Netscape
(Q) Which operator creates a new object from the specified object type?
- Obj
- Create
- New
- None of the above
Ans : New
(Q) Which of the following is a valid scope in VBScript?
- Dim
- Public
- Private
- All of the above.
Ans : All of the above.
(Q) Using turbo C++ library function can ?
- Color any closed figure
- Draw lines and circles
- Write in variety of fonts and sizes
- All of the above
Ans : All of the above
(Q) Choose the most appropriate statement.
- An abstract base class can have pure virtual destructor.
- An abstract base class can have only virtual destructor.
- An abstract base class can have non virtual destructor.
- An abstract base class cannot have destructor.
Ans : An abstract base class cannot have destructor.
(Q) Overloaded function _____.
- Are a group of functions,with the same value.
- All have the same number and types of arguments.
- Make life simpler for programmers.
- May fail unexpectedly due to stress.
Ans : Make life simpler for programmers.
(Q) Which symbol is used to create multiple inheritance?
- Dot
- Comma
- Dollar
- None of the mentioned
Ans : Comma
(Q) Which of the following cannot be passed to a function ?
- Array
- Reference variable
- Object
- File
Ans : File
(Q) Inheritance is referred to as_____
- "is a" relationship
- "have a" relationship
- Both of above
- None of above.
Ans : "is a" relationship
(Q) Which of the following statements is incorrect?
- Default arguments can be provided for pointers to functions.
- A function can have all its arguments as default.
- Default argument cannot be provided for pointers to functions.
- 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++ ?
- !Classname( )
- @Classname( )
- $Classname( )
- ~Classname( )
Ans : ~Classname( )
(Q) Which of the following functions below can be used Allocate space for array in memory?
- calloc()
- malloc()
- realloc()
- 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?
- ::
- ?
- :?
- %
Ans : ::
(Q) Classes in c++ are ?
- Fundamental data type.
- Primitive data type.
- Desired data type.
- Not defined.
Ans : Desired data type.
(Q) Which among following is correct way of declaring object of a class ?
- Classname Objectname;
- Class Classname Objectname;
- Class Classname Object Objectname;
- Classname Object Objectname;
Ans : Classname Objectname;
(Q) Which of the following function prototypes is perfectly acceptable?
- int Function(int Tmp = Show());
- float Function(int Tmp = Show(int, float));
- Both A and B.
- float = Show(int, float) Function(Tmp);
Ans : int Function(int Tmp = Show());
(Q) The signature of a function is its ..... ?
- Function code.
- Prototype.
- Call.
- Parameter list.
Ans : Prototype.
(Q) When one class inherits from the base class, then the original class is called_____
- Derived class
- Base class.
- Sub class.
- Basic class.
Ans : Base class.
(Q) Which loop is used to iterate till a condition becomes true?
- For Next loop
- For Each Next loop
- Do While loop
- Do Until loop
Ans : Do Until loop
(Q) Dividing a program into functions_____
- is the key to object oriented programming
- makes the program easier to conceptualize
- makes the program run faster
- both (B) and (C)
Ans : makes the program run faster
(Q) Can we define array of classes in c++ ?
- Yes
- No
- N.A.
- N.A.
Ans : Yes
(Q) What is true about a Constructor ?
- Its name is plural of class name.
- Its name has * symbol before it.
- Its name is same as of class name.
- 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?
- Updation, Incrementation, Initialization
- Initialization, Testing, Updation
- Testing, Updation, Testing
- Initialization, Testing, Incrementation
Ans : Initialization, Testing, Updation
(Q) The browser uses _____ tag to detect javascript.
- js tag.
- scripting tag
- script type="text/javascript" tag.
- javascript tag.
Ans : script type="text/javascript" tag.
(Q) Which of the ways below is incorrect of instantiating a date?
- new Date (dateString)
- new Date()
- new Date(seconds)
- 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?
- for...in loops
- Object.getOwnPropertyNames()
- Object.keys()
- All of the above
Ans : All of the above
(Q) What is the alternate name for Java script?
- LimeScript
- ECMScript
- Coffee Script
- ECMAScript
Ans : ECMAScript
(Q) JavaScript is designed for following purpose _____
- To Perform Server Side Scripting Opertion
- To Execute Query Related to DB on Server
- To add interactivity to HTML Pages
- To Style HTML Pages
Ans : To add interactivity to HTML Pages
(Q) What is the most essential purpose of parentheses in regular expressions ?
- Define pattern matching techniques
- Define subpatterns within the complete pattern
- Define portion of strings in the regular expression
- All of the mentioned
Ans : Define subpatterns within the complete pattern
(Q) VB.Net identifiers:_____
- are case sensitive.
- can begin with an underscore.
- can begin with a number.
- Both a and b.
Ans : can begin with an underscore.
(Q) An object is composed of:_____
- properties.
- events.
- method
- all of the above
Ans : all of the above
(Q) What is the purpose of Invoke Method?
- Used to call any procedure
- Used to call the procedure through Delegate variable
- Both
- none
Ans : Used to call the procedure through Delegate variable
(Q) The Button control can be activated:_____
- programmatically through the click event.
- by clicking the button with the mouse.
- with the forms DefaultButton property.
- Both a and b.
Ans : Both a and b.
(Q) Which task is accomplished in the Code editor?
- Adding forms to the project
- Adding controls to the form
- Adding event procedures to the form
- All of the above.
Ans : Adding event procedures to the form
(Q) Which is not a main component of the Visual Studio IDE?
- Solution Explorer
- Tool Box
- Start Menu
- Designer Window
Ans : Start Menu
(Q) Which is not a feature of a GUI that makes learning a program easy for users?
- Online help
- WYSIWYG formatting
- Dialog boxes
- Detailed key strokes and commands
Ans : Detailed key strokes and commands
(Q) What is an object in C++ ?
- Object is part of syntax of a class
- Object is datatype of a class.
- Object is an instance of a class.
- 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?
- CDbl
- CInt
- CLng
- CSng
Ans : CLng
(Q) Which of the following function of VBScript converts a given number of any variant subtype to Double?
- CDbl
- CInt
- CLng
- CSng
Ans : CDbl
(Q) Which VBScript function converts an input string to all lowercase?
- LCase
- LowerCase
- Lower
- There is no such function to directly convert to lowercase.
Ans : LCase
(Q) How many default ledger accounts are there in Ex-NGN?
- 2
- 3
- 4
- None of these
Ans : 3