Professional Documents
Culture Documents
Number
566 C No commas or blanks are allowed within an True False
integer or a real constant.
567 C 'void' is a datatype. True False
568 C 'emp name' is a valid variable name. True False
569 C 'unsigned' is a valid variable name. True False
570 C Operation between an integer and float True False
always yields a float result.
571 C /* The C language. True False
/* is a procedural language .*/*/
The above statement is valid.
621 C The printf() function retunes which value Positive Zero Negative None of
when an error occurs? value value these
623 C Which header file is essential for using string.h strings.h text.h strcmp.h
strcmp() function?
630 C The output of the following code is: 3.999999 Error 3 3.000000
void main()
{
float a;
int x = 10, y = 3;
a = x / y;
printf("%f", a);
}
631 C The output of the following code is: B b bca bc
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
632 C The output of the following code is: 2121 2021 2120 2020
void main()
{
int a = 20;
printf("%d\t%d\n", ++a, a);
}
634 C The output of the following code is: b=100 b=100a=0 b=0a=100 Error
void main() a=100
{
int a;
int &b = a;
a=100;
printf("b=%d\ta=%d\n", b,a);
}
635 C a = 100 a = 50 compilatio runtime
The output of the following code is: n error error
void main()
{
int a = 0;
while (a<=50)
for(;;)
if(++a % 50==0)
break;
printf("a = %d", a);
}
639 C The output of the following code is: 77, 121 225, 121 77, 144
#define sqr(x= x*x) Compilatio
main() n error
{
int a = 10, b = 5;
printf("%d, %d", sqr(a+b),sqr(++a));
}
643 C The output of the following code is: 0 Nothing Infinite None of
main() will be loop the above
{ displayed
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}
644 C The output of the following code is: Hello World Hello
void change (char *k) Compilatio World
{ n error
k="Hello";
return;
}
main()
{
char *ch = "World";;
change(ch);
printf("%s", ch);
}
645 C Which of the following is not an infinite int i =1; for( ; ; ); int int y, x =
loop while (1) true=0, 0;
{i++;} false; do
while {y = x;}
(true) while
{false = (x==0);
1;}
646 C do-while loop is useful when we want the Only At least More Any one
statements within the loop must be once once than Once of the
executed above
647 C Which of the following is not a preprocessor #if #elseif #undef #pragma
directive
650 C The output of the following code is: HELLO Error None of
main() WORLD the above
{
void msg()
{
printf("HELLO WORLD");
}
}
651 C The output of the following code is: 0 to 48 48 49 Compilatio
main() will be n Error
{ displayed
int sub[50];
for(i=0; i<=48;i++)
{
sub[i]=i;
printf("\n%d", sub[i]);
}
}
666 C++ Which of the following are good reasons to You can Program An OO It's easier
use an object oriented language? define statement program to
your data s are can be conceptua
types simpler taught to lize an OO
than in correct its program.
procedural own
languages errors.
.
667 C++ When a language has the capacity to Reprehen Encapsula Overload Extensible
produce new data type, it is said to be sible ted
668 C++ A normal C++ operator that acts in a Glorified Encapsula Classified Overloade
special way on newly defined data types is ted d
said to be
669 C++ main() returns a value of type real char int null
670 C++ Sharing of common information are Virtual Inheritanc Encapsula None of
achieved by the concept of copying e tion these
671 C++ In a for loop with a multi-statement loop The for The Each The test
body, semicolons should appear following statement closing statement expressio
itself brace in a within the n
multi- loop body.
statement
loop body
672 C++ A variable defined within a block is visible From the From the From the Througho
point of point of point of ut the
definition definition definition function
onwards onwards onwards
in the in the in the
program function block
673 C++ The library function exit() causes an exit The loop The block The The
from in which it in which it function in program
occurs occurs which it in which it
occurs occurs
674 C++ The getch() library function Returns a Returns a Display a Does not
character character character display a
when any when on the character
key is ENTER is screen on the
pressed pressed when a screen
key is
pressed
675 C++ _______ argument(s) are passed in case of Two One No None of
binary overloaded operators. the above
676 C++ _______ argument(s) are passed in case of Two One No None of
unary overloaded operators. the above
677 C++ The && and || operators Compare Combine Compare Combine
two two two two
numeric numeric Boolean Boolean
values values values values
678 C++ The break statement causes an exit Only from Only from From all Only from
the the loops and the
innermost innermost switch innermost
loop switch loops or
switch
679 C++ When accessing a structure member, the Structure Structure Structure The
identifier to the left of the dot operator is the member tag variable keyword
name of struct.
682 C++ Which of the following can legitimately be A constant A variable A A header
passed to a function? structure file
683 C++ _____________ operator must have one + new all None of
class object these
684 C++ Overloaded functions Are a All have Make life May fail
group of the same simpler for unexpecte
functions number programm dly due to
with the and types er stress
same of
name arguments
685 C++ In C++, the stream base class is iostream iofstream ios stdio
686 C++ The template function declaration specifies template a generic exception identifier
class class
687 C++ In C++, the exception handler is invoked try block throw catch abort()
with a- exception function
688 C++ The exception is processed using unexpecte perform() catch() try()
d()
692 C++ You can read input that consists of multiple The The The The
lines of text using normal cin.get() cin.get() cin.get()
cout<< function function function
combinati with one with two with three
on argument argument argument
694 C++ Private data members can be accessed Only from Both from From the None of
the base the base class the above
class itself class and which is a is correct
form its friend of
derived the base
classes class
695 C++ Protected data members can be accessed Only from Both form From the None of
the base the base class the above
class itself class and which is are
from its friend of correct
derived the base
classes class
696 C++ Public data members can be accessed Only from Both form From the None of
the base the base class the above
class itself class and which is are
from its friend of correct
derived the base
classes class
697 C++ When you overload an arithmetic Goes in Goes in Goes in Must be
assignment operator, the result the object the object the object returned
to the right to the left of which
of the of the the
operator operator operator is
a member
700 C++ Class members are _______________ by Private protected public None of
default the above
are
correct
701 C++ Friend function have access to the private public private None of
and members members the above
protected only only are
members correct
703 C++ The characteristic that data can be Encapsula Data Inheritanc Instantiati
manipulated only through member tion dependen e on
functions that are part of the class is called cy
704 C++ In a class, only the member function can Data Data Data Data
access data, which is not accessible to security hiding manipulati definition
outside. This feature is called: on
707 C++ Pick out the most appropriate statement All Variables Variables Variables
variables in C++ in C++ can not be
must be need not can be used
declared be declared explicitly
before declared at the end in C++
they are and the of the
used type can program
be (before
assigned the main
dynamicall function
y terminates
)
708 C++ What is the value of Friday in the following - 1 5 0 -3
enum days { Monday, Tuesday,
Wednesday = -1, Thursday, Friday,
Saturday = 6, Sunday}
710 C++ The string table in C++ holds the string program variables none of
constants statement whose the above
in your s in string type is of
program form string
711 C++ The declaration int **var1; shows that var1 can var1 is a var1 is a this type
not be pointer to protected declaratio
accessed a pointer data type n shows
of type int of integer an error
714 C++ Pick out the most appropriate statement references array of you can all of the
from the following are references not above
pointers can be reference
created a
reference
variable
715 C++ The ?: can be used to replace if-else wild cards no returns
statement meaning the value
in C++
716 C++ Dynamic memory can be allocated by the new volatile static ==
following declaration
719 C++ The members of a class can be made declaring by default by they are
private by them they are declaring always
private private them in public
the
beginning
of the
program
immediate
ly after
main()
720 C++ A function that is called automatically when instantiati function constructo structure
an object is created is known as on prototype r
721 C++ A function that is called automatically when instantiati function constructo destructor
an object is destroyed is known as on prototype r
722 C++ It is possible to allow non member function public friend private not
access to private members of a class by possible
declaring it as
723 C++ When one object initializes another object copy new instantiati none of
the following function is invoked constructo on the above
r
725 C++ By using protected, one can create class that can that can that can none of
members that are private to their class but not be still be be public the above
inherited inherited
and and
accessed accessed
by a by a
derived derived
class class
726 C++ A pure virtual function is a virtual function no a a definition
that has definition definition definition in base
in its base in its base in at least class and
class class one at least
derived one
class derived
class
727 C++ A class that contains at least one pure pure class abstract base class derived
virtual function is called as class class
728 C++ The binding that binds a function call at run early run time late linking
time is called binding binding binding
729 C++ One of the major disadvantage with late the source the dynamic static
binding is code program variables variables
should be runs can not be can not be
made slower used in used
available the
at compile program
time
730 C++ One of the important features of an abstract it need not it should it need not none of
class is have any be used have any the above
object only as a members
derived
class
731 C++ Organizing data with methods that operate True False
on the data and creating a new data type is
called encapsulation.
732 C++ Class is similar to a variable. True False
733 C++ By default, members cannot be inherited. True False
734 C++ Protected members cannot be inherited. True False
735 C++ Inline function specifier reduces the True False
overheads associated with a normal
function call.
736 C++ The new operator always returns a void True False
pointer.
737 C++ 'this' pointer has to be used while accessing True False
data members in a member function.
743 C++ We can make function inline by using the True False
keyword 'inline'.
744 C++ Private members of a structure can be True False
accessed directly from the outside of the
structure.
745 C++ The following syntax is valid. void inline True False
gram_ panchayat :: show_gram_
panchayat_info().
746 C++ "[]" Operator is a unary operator. True False
747 C++ The members of a class by default are True False
private.
748 C++ An object is an allocated space in memory. True False
759 C++ In case of nested class, enclosing class can True False
directly access the private data member of
nested class.
1356 Java (I) Which of the following will produce a value Ceil(x) Round(x) Rint(x) Abs(x)
of 22 if x=22.9:
1357 Java (I) If m and n are int type variables, what will 4 2 -2 -4
be the result of the expression
'm % n' when m = -14 and n = -3?
1358 Java (I) Consider the following statements: 25 15 5 Error can't
int x = 10, y = 15; be
x = ((x < y) ? (y + x) : (y - x); executed.
What will be the value of x after executing
these statements?
1359 Java (I) Which of the following will produce a value floor(x) abs(x) rint(x) round(x)
of 10 if x = 9.7?
1360 Java (I) Which of the following control expressions an integer a Boolean either A or Neither A
are valid for an if statement? expressio expressio B or B
n n
1361 Java (I) Consider the following class definition. Will not Will not Will Will not
Class Student extends String compile compile compile compile
{ because because successful because
} class body class is ly. String is
What happens when we try to compile this is not not abstract
class? defined declared
public
1362 Java (I) What is wrong in the following class Nothing is Wrong Wrong Wrong
definitions? wrong Method Methods Display
abstract class print show() show() is does not
{ should not contain
abstract show(); have a implement any
} return ed in members.
class Display extends print type Display
{
}
1363 Java (I) What is error in the following class class constructo method is no error
definitions? header is r is no not
abstract class xy not define defined defined
{ properly properly
abstract sum(int x, int y) {}
}
1364 Java (I) Consider the following class definitions: an 'is a' a 'has a' both neither
class maths relationshi relationshi
{ p p
student student1;
}
class student
{
String name;
}
This code represents:
1365 Java (I) Which key word can protect a class in private protected final
package from accessibility by the classes don't use
outside the package? any
keyword
at
all(make it
default)
1366 Java (I) We would like to make a member of a class private protected public private
visible in all subclasses regardless of what protected
package they are in. Which one of the
following keywords would achieve this?
1367 Java (I) The use of protected keyword to a member Visibility Visibility Visibility in Visibility
in a class will restrict its visibility as follows: only in the only inside all classes only in the
class and the same in the class
its package. same where it is
subclasse package declared.
s in the and
same subclasse
package. s in other
packages.
1368 Java (I) Which of the following are not keywords? NULL Implement Protected None of
s the above
1369 Java (I) Which of the following are keywords? integer default Boolean Object
1370 Java (I) Which of the following keywords are used default protected interface None of
to control access to a class member? the above
1371 Java (I) The keywords reserved but not used in the Synchroni Boolean union goto
initial version of Java re: zed
1373 Java (I) Which of the following statements are An A final Transient all of the
true? abstract class may variables above
class may not have must be
not have any static.
any final abstracts
methods? methods.
1374 Java (I) The concept of multiple inheritance is extending extending all the
implemented in Java by two or one class above
more and
classes implement
ing one or
more
interfaces
1375 Java (I) Which of the following statements are valid int float double[] counter
array declarations? number(); average[]; marks; int[];
1376 Java (I) Consider the following code After number[5] number[0]
int number[]=new int[5]; execution is is
of this undefined undefined
statement,
which of
the
following
are true?
1377 Java (I) Which of the following classes are available Random Stack String Vector
in the java.lang package? Buffer
1378 Java (I) Which of the following are the wrapper Random Vector Byte all of the
classes? above
1379 Java (I) Which of the following methods belong to length() compareT substring() all of the
the String class? o() them
1380 Java (I) Given the code s.toUpper s.append( s.setChar all of the
String s = new String("abc"); Case() "xyz") At(1,'A') above
Which of the following calls are valid?
1381 Java (I) The methods wait() and noify() are defined java.lang. java.lang. java.lang. java.lang.
in Thread Runnable Object ThreadGr
oup
1382 Java (I) When we invoke repaint () for a draw() update() show() paint()
Component, the AWT invokes the method:
1383 Java (I) What does the following line of code do? Creates Creates Creates The code
TextField text=new TextField(10); text object text object the object is illegal.
that can that can text and
hold 10 hold 10 initializes
rows of columns it with the
text. of text. value 10.
1384 Java (I) Which of the following applet tags is legal to <applet> <applet <applet <applet
embed an applet class named Test into a code=test. code=test. param=te code=test
web page? class class st.class width=200
width=200 width=200 width=200 height=10
height=10 height=10 height=10 0>
0> 0> 0> </applet>
</applet> </applet> </applet>
1385 Java (I) Which of the following methods can be fillRect() drawLine() drawStrin all of the
used to draw the outline of a square? g() above
1386 Java (I) Which of the following methods can be componen dimension setSize() size()
used to change the size of a t ()
size() *
resize()
1387 Java (I) Which of the following methods can be remove() desappear hide() move()
used to remove a component from the ()
display?
1388 Java (I) The setBackground() method is part of the Applet Compone Container Object
class nt
1389 Java (I) When we implement the Runnable start() init() runnable() run()
interface, we must define the method
1390 Java (I) Which of the following string can be used "rw" "wr" "0" ''w''
as mode string for creating a
RandomAccessFile object?
1393 Java (I) Which are the valid ways to create new new new new
DataInputStream streams? DataInput DataInput DataInput DataInput
Stream(ne Stream(ne Stream("in Stream("in
w w .dat"); .data","r");
File("in.da FileInputS
t")); tream("in.
dat"));
1394 Java (I) Which exception is thrown by the read() IOExcepti FileNotFo ReadExce None of
method of InputStream class? on undExcept ption the above
ion
1395 Java (I) In the code below, what data types the byte b1 = byte b2 = x = b1 * int short
variable x can have? 5; 10; b2;
1396 Java (I) If you want to assign a value of 99 to the number=g <number= <param <param =
variable year, then which of the following etParamet =99> name=nu radius
lines can be used within an <applet> tags? er(99) mber value
value=99> ==99>
1397 Java (I) What is java -g used for? Using the Executing To Non of the
jdb tool a class provided above
with informatio
optimizati n about
on turned deprecate
off d methods
1398 Java (I) With javadoc, which of the following //# /* /** //**
denotes a javadoc comment?
1399 Java (I) Give file is a file object, which of the file.create( FileOutput FileInputS all of the
following are legal statements to create a ); Stream tream above
new file. fos=new fis=new
FileOutput FileInputS
Stream(fil tream(file)
e); ;
1400 Java (I) Which javadoc tag is used to denote a @method @paramet @argume @param
comment for methods parameters? er nt
1401 Java (I) Which of the following command lines -protected -public -private -encoding
options generates documentation for all
classes and methods?
1402 Java (I) Which of the following represent legal flow break; break(); continue(i all of the
control statements? nner); above
1403 Java (I) Consider the following code snippet: Error. Division Catch Division
try Won't by zero block by zero
{ compile catch
int x=0; block
int y=50/x;
System.out.println("Division by zero");
}
catch(ArithmeticException e)
{
System.out.println("catch block");
}
1404 Java (I) Which of the following represent legal flow break(); continue(i return; exit();
control statements? nner);
1405 Java (I) The name of a Java program file must True False
match the name of the class with the
extension Java.
1406 Java (I) Two methods cannot have the same name True False
in Java.
1407 Java (I) The modulus operator (%) can be used True False
only with Integer operands.
1408 Java (I) Declarations can appear anywhere in the True False
body of a Java method.
1409 Java (I) All the bitwise operators have the same True False
level of precedence in Java.
1410 Java (I) When X is a positive number the operations True False
x>> 2 and x>>>2 both produce the same
result.
1411 Java (I) If a=10 and b= 15, then the statement x True False
=(a>b)?a:b; assigns the value 15 to x.
1413 Java (I) In evaluating the expression (x == y&& a<b) True False
the Boolean expression x ==y is evaluated
first and then a<b is evaluated.
1414 Java (I) The default case is always required in the True False
switch selection structure.
1416 Java (I) The expression (x == y && a<b) is true If True False
either x == y is true or a<b is true.
1417 Java (I) A variable declared inside the for loop True False
control can not be referenced out side the
loop.
1418 Java (I) Java always provides a default constructor True False
to a class.
1419 Java (I) When present, package must be the first no True False
comment statement in the file.
1420 Java (I) The import statement is always the first no True False
comment statement in a Java program files.
1421 Java (I) Objects are passed to a method by use of True False
call-by-reference.
1422 Java (I) It is perfectly legal to refer to any instance True False
variable inside of a static method.
1424 Java (I) We can over load methods with differences True False
only in their return type.
1425 Java (I) It is an error to have a method with the True False
same signature in both the super class and
its subclass.
1426 Java (I) A constructor must always invoke its supper True False
class constructor in its first statement.
1427 Java (I) Any class may be inherited by another True False
class in the same package.
1428 Java (I) Any method in a supper class can be over True False
ridden in its subclass.
1429 Java (I) One the features of is that an array can True False
store many different types of values.
1430 Java (I) An individual array element that is passed True False
to a method and modified in that method
will contain the modified value when the
called method completes execution.
1431 Java (I) Members of a class specified as private are True False
accessible only to the methods of the class.
1432 Java (I) A method declared as static can not access True False
non-static class members.
1433 Java (I) A static class method can be invoked by True False
simply using the name of the method alone.
1434 Java (I) It is an error if a class with one or more True False
abstract methods is not explicitly declared
abstract.
1435 Java (I) It is perfectly legal to assign a subclass True False
object to a supper class reference.
1436 Java (I) Every method of a final in class is implicitly True False
final.
1437 Java (I) All methods in an abstract class must be True False
declared abstract.
1438 Java (I) When the string objects are compared with True False
==, the result is true If the strings contain
the same values.
1439 Java (I) A string object can not be modified after it is True False
created.
1440 Java (I) The length of a string object 's1' can be True False
obtained using the expression s1.length.
1442 Java (I) It is an error to catch the same type of True False
exception in two different catch blocks
associated with a particular try block.
1444 Java (I) Every call to wait has a corresponding call True False
to notify that will eventually end the wafting.
1445 Java (I) Declaring a method synchronized True False
guarantees that the deadlock cannot occur.
1446 Java (I) The programmer must explicitly create the True False
system .in and system .out objects.
1447 Java (I) To delete a file, we can use an instance of True False
class file.
1448 Java (I) A panel can not be added to another panel. True False
1449 Java (I) Frames and applets cannot be used True False
together in the same program.
1450 Java (I) A final class may not have any abstract True False
method.
1451 Java (I) A class may be both abstract and final. True False
1452 Java (I) A thread can make second thread ineligible True False
for execution by calling the suspend (-)
method on second thread.
1454 Java (I) The check box group class is a subclass of True False
the component class.
1455 Java (I) If a=10 and b= 15, then the statement x True False
=(a>b)?a:b; assigns the value 15 to x.
1456 Java (I) Java is fully object oriented programme. true false
1457 Java (II) For all insert, update, delete, query True. False.
operations on a database, ResultSet object
creation is mandatory.
1460 Java (II) Connection, Statement are interfaces and True. False.
ResultSet is a class.
1463 Java (II) Submit button always fires doPost(...) True False
1464 Java (II) We can add more than one class(es) at the True. False.
time of compilation Java Beans.
1465 Java (II) In RMI before running the client program True. False.
we must start RMI Registry.
1466 Java (II) An EJB is a server-side component that True False
encapsulates the business logic of an
application
1467 Java (II) Message-Driven beans act as a listener for True False
the Java Message Service API, processing
messages synchronously
1468 Java (II) In RMI we invoke client method from True False
remote server
1469 Java (II) In order to connect to a database through Connectio Connectio Statement Connectio
java program we must create _______- n, n, , n,
Statement ResultSet ResultSet Statement
,
ResultSet
1472 Java (II) In a single Servlet class we can doGet(...) doPost(...) doGet(...) Either 'a'
use____________ method method method or 'b'
only only and
doPost(...)
method
both at a
time.
1473 Java (II) putValue(...) method takes Two First one First one None of
_____________________- arguments is of a is of an the above.
of object character object
type type and type and
second second
one is of one is of a
an object character
type type
1474 Java (II) Servlet has ___________ init doGet(----- All of the
method -) method above
methods.
1475 Java (II) Servlet can have ___________ get get Either of
method method or the above
and post post
method method
1476 Java (II) JSP files creates ________________ html files html files java files None of
and java and class the above.
files files
1477 Java (II) A JSP file can be With the With the With the None of
stored_________________ extension extension extension the above.
.jsp in .html in .jsp in
servlets public_ht public_ht
folder of ml folder ml folder
the jws of the jws of the jws
1478 Java (II) The name of the RMI compiler is rmicom rmic jrmi none of
___________ the above
1479 Java (II) EJBs can be of the following type(s) Entity Session Message- All of the
Bean Bean driven above
bean
1480 Java (II) Session bean Represent Can not Is not Satisfies
s a single be shared persistent all of the
client above
inside the conditions
applicatio
n server
2080 Visual Time variable is used to store date and time True False
Basic in visual basic
2081 Visual 'Print' statement can be used to print any True False
Basic statement on the screen.
2082 Visual Isnull(), IsEmpty() determines weather any True False
Basic variable has been initialize or not
2083 Visual IsDate() function returns true if its argument True False
Basic is a valid date and time
2089 Visual Function can return array as return value: True False
Basic
2091 Visual ABS() function will generate a hole value True False
Basic when used with a number with fraction part
(ex: 125.26598)
2092 Visual Time() function is used to recover date & True False
Basic time.
2093 Visual Now() function will return the current drive True False
Basic and directory you are working on as return
value.
2094 Visual The amount of text any one can place in True False
Basic text box is maximum 64 kb.
2095 Visual In a text box control the default caption for True False
Basic text box is text1.
2099 Visual List count property returns total number of True False
Basic items in list box control.
2100 Visual When someone uses the code like True False
Basic list1.list(1); then it will return the first item of
the list box control.
2106 Visual The title of the dialog box can be changed. True False
Basic
2107 Visual Dialog title property is used to change the True False
Basic title of any dialog box
2108 Visual Flag property is used to adjust the function True False
Basic of each common dialog box
2109 Visual If the Flag constant for the font common True False
Basic dialog box is cdlCFPrinterFonts then it
causes the dialog box to show only the
fonts supports by the printer specified by
the hdc property
2111 Visual Activate event is called before load event True False
Basic
2114 Visual The default startup object can not be True False
Basic changed in a project
2119 Visual The other Single Document Interface forms True False
Basic are by default child of MDI form when MDI
form is inserted.
2120 Visual It is possible to load a MDI form without any True False
Basic childform.
2124 Visual In visual basic you can draw something in Picture Image Shape
Basic box control. control.
control.
2126 Visual In visual basic the default unit is : centimeter Inch. Dpi. Twips .
Basic .
2127 Visual Currency variable stores fixed point 2 decimal 3 decimal 4 decimal 6 decimal
Basic numbers with : digits. digits. digits. digits.
2128 Visual The size of 'Boolean' data type is : 1 Byte. 2 Bytes. 4 Bytes. 8 Bytes.
Basic
2129 Visual In database application, any field does not Nothing Null value. Error Empty
Basic contain any values can be recognized by: value. value. value.
2136 Visual By default 'Dim myvar' this statement: allocates allocates allocates allocates
Basic memory memory memory memory
for integer for variant for Double for
variable variable variable Boolean
variable
2137 Visual Suppose there are two forms; form1 and Two forms Two forms Nothing None of
Basic form2 ; if there are codes like : In will be just will be will be the above.
form1.active event showed. showed displayed
Form2.show and the
control will
And in form2.active event passed
Form1.show continuou
sly to
Then what will be the output ? each
other.
2138 Visual A single function of visual basic takes: Fixed Unlimited All of the None of
Basic number of number of above the above
parameter parameter
s s
2139 Visual In a programme body : The It will It will None of
Basic Private sub form_load() summatio show the show the above
X=inputbox("First No. :") n of two numbers nothing
Y=inputbox("Second No. :") numbers given in
Z=val(X) +val(Y) given in the input
Print Z two input box side
End sub box by side
2140 Visual when using 'do until-loop' statement as it will no output 10 11 12 none of
Basic stated below generate will be 13 14 15 the above
I=10 a run time shown
Do until I>5 error
Print I
I=I+1
Loop
2141 Visual which control structure are working under do-while while- do-while do-until
Basic false condition loop & do wend & loop & loop & do
loop-while for loop while loop-until
wend loop
2142 Visual what will be the output of the code below : it will it will it is an 01234
Basic private sub command_click() generate generate endless 56789
dim I as integer compile runtime loop 10
I=0 time error error
Do
Print I
Loop until I>10
End sub
2143 Visual which should be included when an subroutine function main sub-main
Basic application is used without any forms s
2144 Visual It is possible to pass different number To do this paramarra argument none of
Basic parameters to a function when call the one can y keyword should be the above
function on different time. use in the with the passed as
parameter array array
list of that declaratio
function n
2145 Visual To break a loop abnormally when satisfying Break Exit Both i & ii None of
Basic a condition, we can use statement statement could be the above.
used.
2146 Visual What will be the output when the It will It will It will It will
Basic statements below will execute : generate generate generate display
the output a runtime a compiler nothing
Dim a as integer like 0 1 2 error error
a=0 34
while(a<5)
print a
a=a+1
end
2147 Visual You can get the ASCII value of any ASC() ASCII() There is
Basic character or number by using function function no
function to
get the
ascii
value.
2148 Visual Say there is a string "Ramcharan"; when "Ra" "Ch" "Amchara None of
Basic someone using Mid() function like n" the above
MID("Ramcharan",2) then what will be the
output:
2149 Visual What is the default value of MaxLength 255 10 0 Any of the
Basic property of text box control? characters characters characters above
2150 Visual Instr$(text1.text,"visual") will returns : No. of It puts the First None of
Basic times the control occurrenc the above.
string where it e of the
"visual" is finds the text
present in text "visual"
the string "visual" in within the
in the string string
text1.text. given in given in
text1.text. text1.text
2151 Visual What is the default value for multi-select 1 2 0 none
Basic property of list box control.
2152 Visual If you want a list box control with check box Check box Check Style None
Basic option, which property of list box control you property style property
will have to change. property
2153 Visual Which property of list box control reports ListIndex Selected Selcount NewIndex
Basic the number of selected items.
2154 Visual Through which property of option button Back color Font color Fore color None
Basic control one can change the font color of the
caption.
2155 Visual If there is a control array of label for 10 label(5) label(3) label(4) None
Basic elements, then what will be the fifth element
in the array?
2156 Visual The fundamental property of RichTextBox Text TextRTF RTFText All of the
Basic control is property property property above
2157 Visual One can change or read the alignment of Text Alignment SelAlignm None
Basic one or more paragraph of rich text box Alignment Set ent
control through property property property
2158 Visual RichTextBox1.BulletIndent=5 ; what will be It will set It will All of the
Basic the effect of this code if used in any the create a above
program bulleted list of
indentatio bullet of 5
n by the items
specified
value
2159 Visual To add the commondialog control to any File menu- Project Compone None of
Basic project one has to include it from >compone menu- nt menu- the above
nt- >Compon >project->
>Microsoft ent-> Microsoft
Common Microsoft Common
Dialog Common Dialog
Control Dialog Control
6.0 Control 6.0
6.0
2160 Visual CommonDialog1.ShowOpen Set the First location Both are
Basic Filename1=CommonDialog1.Filename filename1 displays and then true.
The above code will by the the open set the
selected dialog box filename1
filename and let the by the
from the user selected
common select any filename.
dialog file from
contol. any
2161 Visual Min and Max property can be used with To The None of
Basic Font common dialog box to determine controlling minimum the above
dialog box and
size maximum
size
displayed
in the size
list
2162 Visual To enable apply button in dialog box ; flag cdlCFAppl cdlcfTTOn cdcclHelp None of
Basic value should be set to y ly Button the above
2163 Visual If the user wants to select the multiple files cdlOFNM cdlOFNAll It is not None
Basic from file open and filesave dialog boxes ultiselsect owMultisel possible
then the flag must be set to Allow ect to select
more than
one file at
a time
2164 Visual To draw a form on the screen which event Draw Load Paint Either i or
Basic is being called up Event Event Event iii
2165 Visual In form load event, if the following code is output will No output, Compiler None
Basic written then guess what will be the output : be 0 1 2 3 blank form error
Dim I as integer, J as integer 4 will be
I=0 shown
J=5
While I<J
Print I
I=I+1
Wend
2166 Visual Data1.Recordset.FindFirst "State=NY" Find the Find the The above None of
Basic The above code will find the record in a first record first record command the above
given database in the in the will find a
given given record
database database very fast
in which where the
the state state is
is NY. NY
2167 Visual Suppose there is a data control named Data1.rec The The It will
Basic data1. What will be the effect if the ordset.mo record pointer will refresh
following code is inserted vefirst pointer will move to the
move to the first recordset
the first record of
record of the
the record original
set table that
contains
the data
2168 Visual MDI form1.Arrange vbTileHorizontal; this If there Tiles all Tiles the None of
Basic code in a MDI form will are more child form MDI form the above.
than one in horizontall
MDI form horizontal y
then manner
arrange
them all in
horizontal
manner
2169 Visual DocumentForm() it is A function An array None of
Basic of MDI of forms the above
forms using as
child into
MDIform
2170 Visual Visual Basic has ____________ number of 3 4 5 6
Basic editions
2171 Visual While running an application you can intermedia current
Basic change the value of any variable and see te Immediate
it's effect through ___________ window.
2172 Visual You can get a dropdown list and as well as listbox command Combo none of
Basic can add some text directly to Box. this
____________ Control.
2173 Visual In _______________ control you can get text box combo List Box
Basic only drop-down list of the content but box Control
cannot add directly anything to that control.
2175 Visual The maximum length of a variable is 255 254 256 257
Basic _____________ characters.
2179 Visual The extension name of a Visual Basic form .frm .txt .prj .vbp
Basic is _____________.
1568 Linux Linux is a ---------------Operating System Single Multi User Time None of
(Softwar User Sharing the above
e)
1569 Linux Protocols used by Linux are TCP/IP UDP & PPP & None of
(Softwar &UUCP UUCP UDP the above
e)
1570 Linux ls -o is used for Except Except Except None of
(Softwar Group Owner Size in the above
e) Byte
1574 Linux who -h is used to Print Hide Hide user All of the
(Softwar column detail. name. above.
e) headings
1575 Linux Which command is used to see the system Time Date Month None of
(Softwar date? these
e)
1576 Linux What will be the output of the command 'tail Last 10 Last 15 Last 5 First 10
(Softwar sample'? lines of lines of lines of lines of
e) the file. the file the file file.
1577 Linux Which command is used to compare files? cmp diff head All of
(Softwar these
e)
1578 Linux The --------- command sorts lines of all the desc cp sort ls -l
(Softwar named files.
e)
1579 Linux The main function of grep is look for look for look for None of
(Softwar numeric string string them.
e) match a without
regular regular
expressio expressio
n.. n.
1580 Linux What is the relation between grep & egrep egrap is a Egrap is Egrap is a None of
(Softwar mother of totally another these.
e) grep. difference version of
grep.
1582 Linux Output of the command 'wc <filename>' is Show only Show only Show Show only
(Softwar line word. alphabet, file name.
e) line, word.
1583 Linux /dev is used for Executabl Contains Contain Device file
(Softwar e file include file compiler &
e) file. resource
file.
1587 Linux What is the meaning of chmod 444 stuf? Gives all Gives all Gives all All of the
(Softwar user write user user read above.
e) permissio execute permissio
n. permissio n.
n.
1588 Linux The command for changing the permission ls-l head tail chmod
(Softwar relating to files is
e)
201 Access Oracle follows only seven Codd's rule. True False
202 Access Access is a true RDBMS. True False
204 Access Text type field stores maximum 256 True False
characters.
207 Access The lostfocus event occurs when a form or True False
control looses the focus.
209 Access We can see the report preview from tools True False
menu à layout preview.
210 Access Report header / footer sections does not True False
come normally.
212 Access We can type new values in a list box. True False
213 Access When referential integrity is enforced, you True False
can't enter a value in the foreign key field of
the related table that doesn't exist in the
primary key of the primary table.
214 Access When the cascade delete related records True False
check box is set, deleting a record in the
primary table deletes any related records in
the related table.
215 Access If you want to see the SQL code that is True False
generated by the query select Tools à SQL
view from the menu.
216 Access If you give a format property and an input True False
mask the input mask gets precedence.
218 Access Double data type takes 4 bytes of space. True False
220 Access You can not specify default value for a True False
field.
221 Access Foreign key must be primary key of another True False
table.
226 Access In access page footer comes before report True False
footer in all pages.
227 Access Currency is not a valid data type in access. True False
228 Access In append query the table where the data True False
will be appended should have the same
structure and primary key.
230 Access It is not possible to set two fields of a table True False
as primary key.
234 Access To run a macro automatically, the name of AUTOEX AUTOEX AUTO None of
the macro is EC EC.BAT the above
235 Access In Validation rule <>0 means entry is entry must none of
not null be a the above
nonzero
value
236 Access In input masks (999) 999-9999 means (206) 555- ( ) 555- both of none of
0248 0248 the above the above
237 Access You can copy records from one table to Update Append Maketable
another table in the current database or query query query
another database.
238 Access To delete all orders placed in 1990 we have Update Append Maketable Delete
to use query query query query
243 Access It allows you to set the message that validation validation default all of the
appears if the validation rule fails. rule text value above
244 Access Primary key field must be not null null and not null
and unique and
unique indexed
245 Access You can store picture in a field of data type picture OLE None of a & b
Object the above
A
B
B
A
B
B
B
B
A
B
A
B
A
A
B
A
B
B
B
B
A
B
A
C
D
D
D
D
A
B
B
A
A
C
B
B
D
B
B
B
C
D
B
A
B
B
AC
B
B
A
D
C
B
AB
C
D
B
C
B
A
B
A
B
B
A
A
B
A
B
A
A
B
A
B
C
A
C
C
C
A
B
B
D
B
D
C
B
D
B
A
B
A
B
B
A
A
A
A
B
A
A
B
A
A
A
C
A
A
A
B
A
B
A
B
B
C
C
C
B
C
B
B
C
C
A
B
C
B
B
C
A
A
A
C
C
C
A
B
B
A
A
A
A
A
C
D
B
B