question on c,c++,java,linux,ms access , visual basics - by subha rudra
DESCRIPTION
It is a set of various multiple question on programming which includes C,C++ ,VISUAL BASICS,JAVA,LINUX AND MS ACCESS.TRANSCRIPT
Topic question opt_a opt_b opt_c opt_d
566 C True False
567 C 'void' is a datatype. True False568 C 'emp name' is a valid variable name. True False569 C 'unsigned' is a valid variable name. True False570 C True False
571 C True False
572 C True False
573 C = and = = have the same operation. True False574 C True False
575 C True False
576 C True False
577 C True False
578 C printf("%d", sizeof('2')); will print 2. True False579 C True False
580 C The expression "int i = j = k = 0;" is invalid. True False
581 C printf() is not a library function. True False582 C The expression (i + j)++ is illegal. True False583 C True False
584 C p++ executes faster than p + 1. True False585 C True False
586 C True False
587 C True False
588 C True False
589 C True False
590 C True False
Question Number
No commas or blanks are allowed within an integer or a real constant.
Operation between an integer and float always yields a float result.
/* The C language./* is a procedural language .*/*/
The above statement is valid.
The default initial value of automatic storage class is 0.
Character data types cannot be declared as unsigned.
&& and & operators have the same meaning.
Right shifting an operand 1bit is equivalent to multiplying it by 2.
The same variable names of automatic type can be used in different functions without any conflict.
The expression "b = 3 ^ 2;" will evaluate b = 9.
The expression 'int j = 6 + 3 % -9;' evaluates to -1.
static variable will not always have assigned value.
Variables declared as register storage type gets stored in CPU registers.
Single operations involving entire arrays are permitted in C.
The main() function can be called from any other function.
The main() function can call itself recursively.
The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.
591 C True False
592 C True False
593 C True False
594 C Only one break can be used in one loop. True False595 C True False
596 C Nested macros are allowed. True False597 C Expression 4**3 evaluates to 64. True False598 C True False
599 C True False
600 C True False
601 C True False
602 C True False
603 C True False
604 C True False
605 C True False
606 C True False
607 C True False
608 C True False
609 C True False
610 C True False
611 C True False
612 C True False
613 C True False
614 C True False
When a user defined function is defined in program, then it has to be called at least once from the main().
Left shift operator rotates the bits on the left and places them to the right.
A recursive function calls itself again and again.
Every if statement can be converted into an equivalent switch statement.
All macro substitutions in a program are done before compilation of the program.
'# define PI = 8;' is the correct declaration of macros.
An array declared as A[100][100] can hold a maximum of 100 elements.
The array 'char name[10] can consist of a maximum of 9 characters.
It is necessary to initialize the array at the time of declaration.
the value *(&i) is same as printing the value of address of i.
A pointer is an indication of the variable to be accessed next.
The contents of a file opened in 'r+' mode cannot be changed.
Union is used to hold different data at different time.
All elements of a structure are allocated contiguous memory locations.
enum helps to create user defined datatype.
The value of an enumerated datatype can be read using scanf() function.
Structures within structures cannot be created.
gets() and puts() are unformatted I/O functions.
The identifier argv[] is a pointer to an array of strings.
fprintf()function can be used to write into console.
fopen() function returns a pointer to the open file.
615 C A B BCPL
616 C Bill Gates
617 C
618 C \a \b \m \n
619 C '' " " 'a'
620 C 1 byte 4 bytes 8 bytes 16 bytes
621 C Zero
622 C
Which of the following language is predecessor to C Programming Language? C++
C programming language was developed by
Dennis Ritchie
Ken Thompson
Peter Norton
C is a ___ language High Level and Procedural
Low Level and OOPS
Middle Level and Procedural
Machine Level and OOPS
Which escape character can be used to beep from speaker in C?
Which of the following is invalid? 'abc'
A declaration float a, b; occupies ___ of memory
The printf() function retunes which value when an error occurs?
Positive value
Negative value
None of these
Identify the wrong statement putchar(65)
putchar('x')
putchar("x")
putchar('\n')
623 C string.h strings.h text.h strcmp.h
624 C do-while if-else goto
625 C
626 C a = 5 a += 5 a = b = c a = b
627 C
628 C 10 0 12
629 C **, *, /, +, -
Which header file is essential for using strcmp() function?
Which among the following is a unconditional control structure
for
continue statement is used to go to the next iteration in a loop
come out of a loop
exit and return to the main function
restarts iterations from beginning of loop
Which of the following is an example of compounded assignment statement?
In the expression - 'x + y + 3z =20' 'x + y' is a keyword
3 and 20 are constants
3z is a constant
y is a variable and z is a constant
The output of the following code is:void main(){int z, a = 5, b = 3;
z = a * 2 + 26 % 3;printf("%d", z);
}
None of the above
Which options shows the correct hierarchy of arithmetic operators
**, * or /, + or - **, /, *, +,-
/ or *, - or +
630 C 3.999999 Error 3
631 C B b bca bc
632 C 2121 2021 2120 2020
633 C 3 4 5 infinite
The output of the following code is:void main(){
float a;int x = 10, y = 3;a = x / y;printf("%f", a);
}
3.000000
The output of the following code is:void main(){char a = 'B';switch (a){case 'A' : printf("a");case 'B' : printf("b");default : printf("c");}
The output of the following code is:void main(){int a = 20;
printf("%d\t%d\n", ++a, a);}
How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello\n");
634 C b=100a=0 b=0a=100 Error
635 C a = 100 a = 50
636 C 2 1
The output of the following code is:void main(){
int a;int &b = a;a=100;
printf("b=%d\ta=%d\n", b,a);}
b=100a=100
The output of the following code is:void main(){
int a = 0;while (a<=50)
for(;;)if(++a % 50==0)
break;printf("a = %d", a);
}
compilation error
runtime error
The output of the following code is:int f(int a, int b);void main(){
int a = 12, b=154;printf("%d", f(a, b));
}
int f(int a, int b){
if (a<b) return(f(b, a));if(b==0) return(a);return (f(b, a % b));
}
Compilation error
Runtime error
637 C 2 1 100 0
638 C 23 03 00 20
639 C 77, 121 225, 121 77, 144
The output of the following code is:void main(){
int a = 1, b=2;int *ip;ip=&a;b=*ip;printf("%d", b);
}
The output of the following code is:void main(){
static int a = 1, b, c;if (a>=2)
b=2;c=3;
printf("%d\t%d", b,c);}
The output of the following code is:#define sqr(x= x*x)main(){
int a = 10, b = 5;printf("%d, %d", sqr(a+b),sqr(++a));
}
Compilation error
640 C 24 2 None
641 C 9 0 None
642 C
struct stud{int roll;char name[20];float marks;} *p;
What will be the byte size of p?
26
The output of the following code is:main(){unsigned int a = 10;while (a>=10){int a;a-- ;}printf("%i", a);}
Infinite loop
The output of the following code is:main(){xyz:goto abc;printf("Hello");abc:printf("World");goto xyz;}
Infinite loop
Hello World
World Hello
Compilation error
643 C 0
644 C Hello World
645 C for( ; ; );
646 C
647 C #if #elseif #undef #pragma
The output of the following code is:main(){int a = 0;for (; i = 0; i++)
printf("%d", a);}
Nothing will be displayed
Infinite loop
None of the above
The output of the following code is:void change (char *k){
k="Hello";return;} main(){char *ch = "World";;change(ch);printf("%s", ch);}
Compilation error
Hello World
Which of the following is not an infinite loop int i =1;while (1){i++;}
int true=0, false;while (true){false = 1;}
int y, x = 0;do{y = x;}while (x==0);
do-while loop is useful when we want the statements within the loop must be executed
Only once
At least once
More than Once
Any one of the above
Which of the following is not a preprocessor directive
648 C 0 5 Error
649 C 200 30
650 C
651 C 48 49
The output of the following code is:main(){int a = 5, b = 6;(a == b? printf("%d", a));}
None of the above
The output of the following code is:main(){int k, num = 30;k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);printf("\n%d", num);}
500 Unpredictable
The output of the following code is:main(){void msg(){printf("HELLO WORLD");}}
HELLO WORLD
Error None of the above
The output of the following code is:main(){int sub[50];for(i=0; i<=48;i++){sub[i]=i;printf("\n%d", sub[i]);}}
0 to 48 will be displayed
Compilation Error
652 C
653 C
654 C delete compare
655 C . ? ;
656 C 0 NULL 1
657 C break continue exit
658 C for while do-while
659 C both
660 C 91 88 90 89
661 C The size of signed integer is ------ bytes. 4 2 8 10662 C 35 45 55 40
663 C ------ is the ternary operator ?,- ?,: ++,--
664 C 253 254 255 256
665 C 4 7 6 0
The output of the following code is:main(){int a[10], i;for (i = 1; I <= 0; i++){scanf("%d", a[i]);printf("%d", a[i]);}}
10 Logical error
Runtime error
1 to 10 will be displayed
Which of the following expressions is wrong
float a =123.56;
char ch ='T' * 'A';
char ch ='T' *20;
3 +a = b;
strcat() function ----------------------- two strings.
concatenate
none of the above
A function to be called must be ended with a----------------
none of the above
The function fopen() on failure returns---------------------.
none of the above
The-------------------- statement helps immediate exit from any part of the loop
All of the above
The -------------------------- loop executes at least once.
while & do-while
char *s[10] defines an array of ------------------------
pointers to strings
string to pointer
A multidimensional array A[10][9] can store-------- number of elements
There are total ------ numbers of operators in 'C'.
none of the above
unsigned char has a range from 0 to ------------
If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
666 C++
667 C++
668 C++ Glorified
669 C++ real char int
670 C++
671 C++
672 C++
Which of the following are good reasons to use an object oriented language?
You can define your data types
Program statements are simpler than in procedural languages.
An OO program can be taught to correct its own errors.
It's easier to conceptualize an OO program.
When a language has the capacity to produce new data type, it is said to be
Reprehensible
Encapsulated
Overload Extensible
A normal C++ operator that acts in a special way on newly defined data types is said to be
Encapsulated
Classified Overloaded
main() returns a value of type null
Sharing of common information are achieved by the concept of
Virtual copying
Inheritance
Encapsulation
None of these
In a for loop with a multi-statement loop body, semicolons should appear following
The for statement itself
The closing brace in a multi-statement loop body
Each statement within the loop body.
The test expression
A variable defined within a block is visible From the point of definition onwards in the program
From the point of definition onwards in the function
From the point of definition onwards in the block
Throughout the function
673 C++
674 C++
675 C++ One No
676 C++ Two One No
677 C++
678 C++
679 C++
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
The getch() library function Returns a character when any key is pressed
Returns a character when ENTER is pressed
Display a character on the screen when a key is pressed
Does not display a character on the screen
_______ argument(s) are passed in case of binary overloaded operators.
Two None of the above
_______ argument(s) are passed in case of unary overloaded operators.
None of the above
The && and || operators Compare two numeric values
Combine two numeric values
Compare two Boolean values
Combine two Boolean values
The break statement causes an exit Only from the innermost loop
Only from the innermost switch
From all loops and switch
Only from the innermost loops or switch
When accessing a structure member, the identifier to the left of the dot operator is the name of
Structure member
Structure tag
Structure variable
The keyword struct.
680 C++ -a -o -c
681 C++
682 C++
683 C++ +
684 C++
685 C++ iostream iofstream ios stdio
686 C++ exception identifier
687 C++ try block abort()
cc ___________ option is used only to create object file
none of these
:: is known as scope resolution operator
global operator
Both (a) & (b)
None of these
Which of the following can legitimately be passed to a function?
A constant
A variable
A structure
A header file
_____________ operator must have one class object
new all None of these
Overloaded functions Are a group of functions with the same name
All have the same number and types of arguments
Make life simpler for programmer
May fail unexpectedly due to stress
In C++, the stream base class is
The template function declaration specifies template class
a generic class
In C++, the exception handler is invoked with a-
throw exception
catch function
688 C++ perform() catch()
689 C++
690 C++
691 C++ seventh eighth
692 C++
693 C++
694 C++
The exception is processed using unexpected()
try()
A member function can always access the data
In the object of which it is a member
In the class of which it is a member
In the object of the class of which it is a member
In the public part of its class
Classes are useful because they Are removed from memory when not in use
Permit data to be hidden from other classes
Bring together all aspects of an entity in one place
Can closely model objects in the real world
Element double Array[7] is which element of the array?
sixth impossible to tell
You can read input that consists of multiple lines of text using
The normal cout<< combination
The cin.get() function with one argument
The cin.get() function with two argument
The cin.get() function with three argument
Operator overloading is Making C++ operators work with objects
Making C++ operators more then they can handle
Giving new meaning to existing c++ operators
Making new C++ operators
Private data members can be accessed Only from the base class itself
Both from the base class and form its derived classes
From the class which is a friend of the base class
None of the above is correct
695 C++
696 C++
697 C++
698 C++
699 C++
700 C++ Private protected public
701 C++
Protected data members can be accessed Only from the base class itself
Both form the base class and from its derived classes
From the class which is friend of the base class
None of the above are correct
Public data members can be accessed Only from the base class itself
Both form the base class and from its derived classes
From the class which is friend of the base class
None of the above are correct
When you overload an arithmetic assignment operator, the result
Goes in the object to the right of the operator
Goes in the object to the left of the operator
Goes in the object of which the operator is a member
Must be returned
new operator is used To dynamically allocate storage
To statically allocate storage
To allocate storage for a new variable
None of the above are correct
Delete operator is used To allocate storage
To deallocate storage
To delete variable name
None of the above are correct
Class members are _______________ by default
None of the above are correct
Friend function have access to the private and protected members
public members only
private members only
None of the above are correct
702 C++ Reduce
703 C++
704 C++
705 C++ ;
706 C++
707 C++
708 C++ 5
Inline functions_____________ call overload.
Increase None of the above are correct
The characteristic that data can be manipulated only through member functions that are part of the class is called
Encapsulation
Data dependency
Inheritance
Instantiation
In a class, only the member function can access data, which is not accessible to outside. This feature is called:
Data security
Data hiding
Data manipulation
Data definition
The scope resolution operator is - :: << ->
The signature of a function is The return type
The number and type of arguments
The class of a function
None of the above
Pick out the most appropriate statement All variables must be declared before they are used
Variables in C++ need not be declared and the type can be assigned dynamically
Variables in C++ can be declared at the end of the program (before the main function terminates)
Variables can not be used explicitly in C++
What is the value of Friday in the following - enum days { Monday, Tuesday, Wednesday = -1, Thursday, Friday, Saturday = 6, Sunday}
1 0 -3
709 C++ 10 20 55
710 C++
711 C++
712 C++
713 C++
714 C++
715 C++
What is the output of the following program segment - for(i = 1, j = 0; i < 10; i++) j += i; cout <<i<<"\n";
there is an error in the program
The string table in C++ holds the string constants in your program
program statements in string form
variables whose type is of string
none of the above
The declaration int **var1; shows that var1 can not be accessed
var1 is a pointer to a pointer of type int
var1 is a protected data type of integer
this type declaration shows an error
In C++, the keyword auto can be used forAutomatic assignment of data to object during instantiation
Automatic call of a function
To declare a local variable
It is not a keyword in C++
By default, C++ uses the following method of passing arguments
Call-by-Reference
Call-by-Value
Call-by-Pointer
None of the above
Pick out the most appropriate statement from the following
references are pointers
array of references can be created
you can not reference a reference variable
all of the above
The ?: can be used to replace if-else statement
wild cards no meaning in C++
returns the value
716 C++ new volatile static ==
717 C++ -> :: >>
718 C++ ->
719 C++
720 C++ structure
721 C++
722 C++ public friend private
Dynamic memory can be allocated by the following declaration
The member of a structure can be directly accessed by
dot operator
The member of a structure can be accessed through a pointer by
dot operator
:: >>
The members of a class can be made private by
declaring them private
by default they are private
by declaring them in the beginning of the program immediately after main()
they are always public
A function that is called automatically when an object is created is known as
instantiation
function prototype
constructor
A function that is called automatically when an object is destroyed is known as
instantiation
function prototype
constructor
destructor
It is possible to allow non member function access to private members of a class by declaring it as
not possible
723 C++ new
724 C++
725 C++
726 C++
727 C++
728 C++ linking
729 C++
When one object initializes another object the following function is invoked
copy constructor
instantiation
none of the above
A base class is inherited by derived class
inline function
constructor
none of the above
By using protected, one can create class members that are private to their class but
that can not be inherited and accessed by a derived class
that can still be inherited and accessed by a derived class
that can be public
none of the above
A pure virtual function is a virtual function that has
no definition in its base class
a definition in its base class
a definition in at least one derived class
definition in base class and at least one derived class
A class that contains at least one pure virtual function is called as
pure class abstract class
base class
derived class
The binding that binds a function call at run time is called
early binding
run time binding
late binding
One of the major disadvantage with late binding is
the source code should be made available at compile time
the program runs slower
dynamic variables can not be used in the program
static variables can not be used
730 C++
731 C++ True False
732 C++ Class is similar to a variable. True False733 C++ By default, members cannot be inherited. True False734 C++ Protected members cannot be inherited. True False735 C++ True False
736 C++ True False
737 C++ True False
738 C++ True False
739 C++ True False
740 C++ True False
741 C++ True False
742 C++ True False
743 C++ True False
744 C++ True False
745 C++ True False
746 C++ "[]" Operator is a unary operator. True False747 C++ True False
748 C++ An object is an allocated space in memory. True False
749 C++ Constructor returns void type value. True False750 C++ True False
751 C++ True False
One of the important features of an abstract class is
it need not have any object
it should be used only as a derived class
it need not have any members
none of the above
Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
Inline function specifier reduces the overheads associated with a normal function call.
The new operator always returns a void pointer.
'this' pointer has to be used while accessing data members in a member function.
In C++, identifiers have to be declared at the beginning of the blocks.
In C++, an identifier must be initialized using constant expression.
Data objects can be initialized when allocating memory using 'new'.
Scope resolution operator has the highest precedence.
Reference to an object behaves like a constant pointer.
We can make function inline by using the keyword 'inline'.
Private members of a structure can be accessed directly from the outside of the structure.
The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
The members of a class by default are private.
A copy constructor is used to copy an object member wise to another object of the same class.
Member function cannot be called from within a constructor.
752 C++ True False
753 C++ True False
754 C++ True False
755 C++ A destructor can have a return type. True False756 C++ True False
757 C++ 'this' is an implicit pointer. True False758 C++ The value of 'this' pointer can be changed. True False
759 C++ True False
760 C++ True False
761 C++ True False
762 C++ Static member functions have file scope. True False763 C++ True False
764 C++ True False
765 C++ True False
1356 Java (I) Ceil(x) Round(x) Rint(x) Abs(x)
1357 Java (I) 4 2 -2 -4
1358 Java (I) 25 15 5
We cannot have the address of a constructor.
A constructor cannot be explicitly called.
A destructor can have arguments like constructor.
Objects get destroyed in the reverse order as they are created.
In case of nested class, enclosing class can directly access the private data member of nested class.
ios containes a pointer to streambuf.
iostream is inheried from istream, ostream and ios class.
Static data member occurs in only class scope.
Static data member can be declared as const too.
If a friend function is declared inside a class it can access all data members of the class.
Which of the following will produce a value of 22 if x=22.9:
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and n = -3?
Consider the following statements:int x = 10, y = 15;x = ((x < y) ? (y + x) : (y - x);What will be the value of x after executing these statements?
Error can't be executed.
1359 Java (I) floor(x) abs(x) rint(x) round(x)
1360 Java (I)
1361 Java (I)
1362 Java (I)
1363 Java (I)
Which of the following will produce a value of 10 if x = 9.7?
Which of the following control expressions are valid for an if statement?
an integer expression
a Boolean expression
either A or B
Neither A or B
Consider the following class definition.Class Student extends String{}What happens when we try to compile this class?
Will not compile because class body is not defined
Will not compile because class is not declared public
Will compile successfully.
Will not compile because String is abstract
What is wrong in the following class definitions?abstract class print{abstract show();}class Display extends print{}
Nothing is wrong
Wrong Method show() should have a return type
Wrong Methods show() is not implemented in Display
Wrong Display does not contain any members.
What is error in the following class definitions?abstract class xy{abstract sum(int x, int y) {}}
class header is not define properly
constructor is no defined
method is not defined properly
no error
1364 Java (I) both neither
1365 Java (I) private protected final
1366 Java (I) private protected public
1367 Java (I)
1368 Java (I) NULL Protected
Consider the following class definitions:class maths{student student1;}class student{String name;}This code represents:
an 'is a' relationship
a 'has a' relationship
Which key word can protect a class in package from accessibility by the classes outside the package?
don't use any keyword at all(make it default)
We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would achieve this?
private protected
The use of protected keyword to a member in a class will restrict its visibility as follows:
Visibility only in the class and its subclasses in the same package.
Visibility only inside the same package.
Visibility in all classes in the same package and subclasses in other packages.
Visibility only in the class where it is declared.
Which of the following are not keywords? Implements
None of the above
1369 Java (I) integer default Boolean Object
1370 Java (I) default protected interface
1371 Java (I) Boolean union goto
1372 Java (I) classes interface
1373 Java (I)
1374 Java (I)
1375 Java (I)
Which of the following are keywords?
Which of the following keywords are used to control access to a class member?
None of the above
The keywords reserved but not used in the initial version of Java re:
Synchronized
A package is a collection of editing tools
classes and interfaces
Which of the following statements are true? An abstract class may not have any final methods?
A final class may not have any abstracts methods.
Transient variables must be static.
all of the above
The concept of multiple inheritance is implemented in Java by
extending two or more classes
extending one class and implementing one or more interfaces
all the above
Which of the following statements are valid array declarations?
int number();
float average[];
double[] marks;
counter int[];
1376 Java (I)
1377 Java (I) Random Stack Vector
1378 Java (I) Random Vector Byte
1379 Java (I) length()
1380 Java (I)
1381 Java (I)
1382 Java (I) draw() update() show() paint()
1383 Java (I)
Consider the following codeint number[]=new int[5];
After execution of this statement, which of the following are true?
number[5] is undefined
number[0] is undefined
Which of the following classes are available in the java.lang package?
String Buffer
Which of the following are the wrapper classes?
all of the above
Which of the following methods belong to the String class?
compareTo()
substring()
all of the them
Given the codeString s = new String("abc");Which of the following calls are valid?
s.toUpperCase()
s.append("xyz")
s.setCharAt(1,'A')
all of the above
The methods wait() and noify() are defined in
java.lang.Thread
java.lang.Runnable
java.lang.Object
java.lang.ThreadGroup
When we invoke repaint () for a Component, the AWT invokes the method:
What does the following line of code do?TextField text=new TextField(10);
Creates text object that can hold 10 rows of text.
Creates text object that can hold 10 columns of text.
Creates the object text and initializes it with the value 10.
The code is illegal.
1384 Java (I)
1385 Java (I) fillRect()
1386 Java (I) setSize() size()
1387 Java (I) remove() hide() move()
1388 Java (I) Applet Container Object
1389 Java (I) start() init() runnable() run()
Which of the following applet tags is legal to embed an applet class named Test into a web page?
<applet> code=test.class width=200 height=100> </applet>
<applet code=test.class width=200 height=100> </applet>
<applet param=test.class width=200 height=100> </applet>
<applet code=test width=200 height=100> </applet>
Which of the following methods can be used to draw the outline of a square?
drawLine()
drawString()
all of the above
Which of the following methods can be used to change the size of a
size() *resize()
component
dimension()
Which of the following methods can be used to remove a component from the display?
desappear()
The setBackground() method is part of the class
Component
When we implement the Runnable interface, we must define the method
1390 Java (I) "rw" "wr" "0" ''w''
1391 Java (I)
1392 Java (I)
1393 Java (I)
1394 Java (I)
1395 Java (I) int short
1396 Java (I)
Which of the following string can be used as mode string for creating a RandomAccessFile object?
DataInput is An abstract class defined is java.io.
A class we can use to read primitive data types.
An interface that defines methods to open files.
An interface that defines methods to read primitive data types.
Which of the following statements are true? UTF characters are all 24 bits.
Reader class has methods that can read integers and floats.
Unicode characters are all 16 bits.
all of the above
Which are the valid ways to create DataInputStream streams?
new DataInputStream(new File("in.dat"));
new DataInputStream(new FileInputStream("in.dat"));
new DataInputStream("in.dat");
new DataInputStream("in.data","r");
Which exception is thrown by the read() method of InputStream class?
IOException
FileNotFoundException
ReadException
None of the above
In the code below, what data types the variable x can have?
byte b1 = 5;
byte b2 = 10;
x = b1 * b2;
If you want to assign a value of 99 to the variable year, then which of the following lines can be used within an <applet> tags?
number=getParameter(99)
<number==99>
<param name=number value=99>
<param = radius value ==99>
1397 Java (I)
1398 Java (I) //# /* /** //**
1399 Java (I)
1400 Java (I) @method @param
1401 Java (I) -protected -public -private -encoding
1402 Java (I) break; break();
1403 Java (I)
What is java -g used for? Using the jdb tool
Executing a class with optimization turned off
To provided information about deprecated methods
Non of the above
With javadoc, which of the following denotes a javadoc comment?
Give file is a file object, which of the following are legal statements to create a new file.
file.create();
FileOutputStream fos=new FileOutputStream(file);
FileInputStream fis=new FileInputStream(file);
all of the above
Which javadoc tag is used to denote a comment for methods parameters?
@parameter
@argument
Which of the following command lines options generates documentation for all classes and methods?
Which of the following represent legal flow control statements?
continue(inner);
all of the above
Consider the following code snippet:try{int x=0;int y=50/x;System.out.println("Division by zero");}catch(ArithmeticException e){System.out.println("catch block");}
What will be the output?
Error. Won't compile
Division by zero
Catch block
Division by zero catch block
1404 Java (I) break(); return; exit();
1405 Java (I) True False
1406 Java (I) True False
1407 Java (I) True
1408 Java (I) True
1409 Java (I) True False
1410 Java (I) True False
1411 Java (I) True False
Which of the following represent legal flow control statements?
continue(inner);
The name of a Java program file must match the name of the class with the extension Java.
Two methods cannot have the same name in Java.
The modulus operator (%) can be used only with Integer operands.
False
Declarations can appear anywhere in the body of a Java method.
False
All the bitwise operators have the same level of precedence in Java.
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
1412 Java (I) True False
1413 Java (I) True False
1414 Java (I) True False
1415 Java (I) True False
1416 Java (I) True False
1417 Java (I) True False
1418 Java (I) True False
1419 Java (I) True False
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean expressions are not always evaluated.
In evaluating the expression (x == y&& a<b) the Boolean expression x ==y is evaluated first and then a<b is evaluated.
The default case is always required in the switch selection structure.
The break statement is required in the default case of a switch selection structure.
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
A variable declared inside the for loop control can not be referenced out side the loop.
Java always provides a default constructor to a class.
When present, package must be the first no comment statement in the file.
1420 Java (I) True False
1421 Java (I) True False
1422 Java (I) True False
1423 Java (I) True False
1424 Java (I) True False
1425 Java (I) True False
1426 Java (I) True False
1427 Java (I) True False
1428 Java (I) True False
The import statement is always the first no comment statement in a Java program files.
Objects are passed to a method by use of call-by-reference.
It is perfectly legal to refer to any instance variable inside of a static method.
When we implement an interface method, it should be declared as public.
We can over load methods with differences only in their return type.
It is an error to have a method with the same signature in both the super class and its subclass.
A constructor must always invoke its supper class constructor in its first statement.
Any class may be inherited by another class in the same package.
Any method in a supper class can be over ridden in its subclass.
1429 Java (I) True False
1430 Java (I) True False
1431 Java (I) True False
1432 Java (I) True False
1433 Java (I) True False
1434 Java (I) True False
1435 Java (I) True False
1436 Java (I) True False
One the features of is that an array can store many different types of values.
An individual array element that is passed to a method and modified in that method will contain the modified value when the called method completes execution.
Members of a class specified as private are accessible only to the methods of the class.
A method declared as static can not access non-static class members.
A static class method can be invoked by simply using the name of the method alone.
It is an error if a class with one or more abstract methods is not explicitly declared abstract.
It is perfectly legal to assign a subclass object to a supper class reference.
Every method of a final in class is implicitly final.
1437 Java (I) True False
1438 Java (I) True False
1439 Java (I) True False
1440 Java (I) True False
1441 Java (I) True False
1442 Java (I) True False
1443 Java (I) True False
1444 Java (I) True False
1445 Java (I) True False
All methods in an abstract class must be declared abstract.
When the string objects are compared with ==, the result is true If the strings contain the same values.
A string object can not be modified after it is created.
The length of a string object 's1' can be obtained using the expression s1.length.
A catch can have comma-separated multiple arguments.
It is an error to catch the same type of exception in two different catch blocks associated with a particular try block.
Throwing an exception always causes program termination.
Every call to wait has a corresponding call to notify that will eventually end the wafting.
Declaring a method synchronized guarantees that the deadlock cannot occur.
1446 Java (I) True False
1447 Java (I) True False
1448 Java (I) True False
1449 Java (I) True False
1450 Java (I) True False
1451 Java (I) True False
1452 Java (I) True False
1453 Java (I) True False
1454 Java (I) True False
The programmer must explicitly create the system .in and system .out objects.
To delete a file, we can use an instance of class file.
A panel can not be added to another panel.
Frames and applets cannot be used together in the same program.
A final class may not have any abstract method.
A class may be both abstract and final.
A thread can make second thread ineligible for execution by calling the suspend (-) method on second thread.
A Java monitor must either extend thread class or implement Runnable interface.
The check box group class is a subclass of the component class.
1455 Java (I) True False
1456 Java (I) Java is fully object oriented programme. true false1457 Java (II) True. False.
1458 Java (II) True False
1459 Java (II) True. False.
1460 Java (II) True. False.
1461 Java (II) True False
1462 Java (II) True False
1463 Java (II) True
1464 Java (II) True. False.
1465 Java (II) True. False.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
forName() is a static factory method
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
Connection, Statement are interfaces and ResultSet is a class.
JdbcOdbcDriver is an object of Object class
class.forName(...) creates an instance of java ODBC driver
Submit button always fires doPost(...) False
We can add more than one class(es) at the time of compilation Java Beans.
In RMI before running the client program we must start RMI Registry.
1466 Java (II) True False
1467 Java (II) True False
1468 Java (II) True False
1469 Java (II)
1470 Java (II) Nothing
1471 Java (II)
1472 Java (II)
An EJB is a server-side component that encapsulates the business logic of an application
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
In RMI we invoke client method from remote server
In order to connect to a database through java program we must create _______-
Connection, Statement, ResultSet
Connection, ResultSet
Statement, ResultSet
Connection, Statement
executeUpdate(------------) returns ___________
Returns a ResultSet object
Returns an integer value to show the no. of updated rows
None of the above.
executeUpdate automatically updates data because___________
auto commit is on, by default
It performs a hidden commit statement as well
Does not commit
None of the above.
In a single Servlet class we can use____________
doGet(...) method only
doPost(...) method only
doGet(...) method and doPost(...) method both at a time.
Either 'a' or 'b'
1473 Java (II)
1474 Java (II)
1475 Java (II)
1476 Java (II) html files
1477 Java (II)
1478 Java (II) rmicom rmic jrmi
1479 Java (II)
putValue(...) method takes _____________________-
Two arguments of object type
First one is of a character type and second one is of an object type
First one is of an object type and second one is of a character type
None of the above.
Servlet has ___________ init method
doGet(------) method
All of the above methods.
Servlet can have ___________ get method and post method
get method or post method
Either of the above
JSP files creates ________________ html files and java files
java files and class files
None of the above.
A JSP file can be stored_________________
With the extension .jsp in servlets folder of the jws
With the extension .html in public_html folder of the jws
With the extension .jsp in public_html folder of the jws
None of the above.
The name of the RMI compiler is ___________
none of the above
EJBs can be of the following type(s)
None of the above
Entity Bean
Session Bean
Message-driven bean
All of the above
1480 Java (II)
2080 True False
2081 True False
2082 True
2083 True False
329 True False
2085 True False
2086 True False
2087 True False
Session bean Represents a single client inside the application server
Can not be shared
Is not persistent
Satisfies all of the above conditions
Visual Basic
Time variable is used to store date and time in visual basic
Visual Basic
'Print' statement can be used to print any statement on the screen.
Visual Basic
Isnull(), IsEmpty() determines weather any variable has been initialize or not
False
Visual Basic
IsDate() function returns true if its argument is a valid date and time
Visual Basic
It is possible to declare 'Dynamic Array' in visual basic.
Visual Basic
In visual basic 'Break' statement could be used along with "Select Case"
Visual Basic
Constants are processed faster than variables :
Visual Basic
It is possible in visual basic to specifying array limit like from 1 to 10
2088 False
2089 True False
2090 True False
2091 True False
2092 True False
2093 True False
2094 True False
2095 True False
2096 True False
Visual Basic
It is possible to build an application without using any form:
True
Visual Basic
Function can return array as return value:
Visual Basic
When using do loop-while statement then the statements within the loop body will be executed only once if the condition does not fulfilled
Visual Basic
ABS() function will generate a hole value when used with a number with fraction part (ex: 125.26598)
Visual Basic
Time() function is used to recover date & time.
Visual Basic
Now() function will return the current drive and directory you are working on as return value.
Visual Basic
The amount of text any one can place in text box is maximum 64 kb.
Visual Basic
In a text box control the default caption for text box is text1.
Visual Basic
It is possible to change the password character property of text box control at run time.
2097 True
2098 True False
2099 True
2100 True False
2101 True. False
2102 True
2103 True False
2104 True False
2105 True False
2106 True False
Visual Basic
Sorted property of list box control is a design time property and cannot be changed in runtime.
False
Visual Basic
Sorted property of list box control is a design time property and cannot be changed in runtime.
Visual Basic
List count property returns total number of items in list box control.
False
Visual Basic
When someone uses the code like list1.list(1); then it will return the first item of the list box control.
Visual Basic
It is possible to insert a picture in a option button control.
Visual Basic
It is not possible to change the back color property of option button control at run time.
False
Visual Basic
by default 'Dim myvar' this statement:
Visual Basic
Sort is a method by which elements can be sorted in flexgrid control
Visual Basic
CommonDialog control is the default control that anyone can find in the toolbar when a new project is started
Visual Basic
The title of the dialog box can be changed.
2107 True
2108 True
2109 True False
2110 True False
2111 True False
2112 True
2113 True False
2114 True False
2115 True False
Visual Basic
Dialog title property is used to change the title of any dialog box
False
Visual Basic
Flag property is used to adjust the function of each common dialog box
False
Visual Basic
If the Flag constant for the font common dialog box is cdlCFPrinterFonts then it causes the dialog box to show only the fonts supports by the printer specified by the hdc property
Visual Basic
CommonDialogs control is visible at runtime
Visual Basic
Activate event is called before load event
Visual Basic
Terminate is a valid event in form operation False
Visual Basic
In runtime it is not possible to change the form size.
Visual Basic
The default startup object can not be changed in a project
Visual Basic
It is possible to access a menu without using mouse, to access the menu ;pressing the Ctrl key and the letter assigned to access the menu
2116 True False
2117 True False
2118 True False
2119 True False
2120 True False
2121 True
2122
2123
2124
Visual Basic
It is possible to change the shortcut key assigned to any menu for accessing within the menu editor.
Visual Basic
The project extension name of a VB project is .vbj
Visual Basic
Delete method of the recordset of Data Control or Data Access Object is delete the record which is pointed out by the record pointer.
Visual Basic
The other Single Document Interface forms are by default child of MDI form when MDI form is inserted.
Visual Basic
It is possible to load a MDI form without any childform.
Visual Basic
The arrange property of MDI form is available at design time.
False
Visual Basic
In case of visual basic, IDE means : Internal Database Engineering.
Integrated Database Environment.
Integrated Development Environment.
Visual Basic
The full form of IIS is : Indian Institute of Science.
Internet Information Service
Industrial Information Services.
Visual Basic
In visual basic you can draw something in Picture box control.
Image control.
Shape control.
2125 F3 F6 F5 F7
2126 Inch. Dpi. Twips .
2127
2128 1 Byte. 2 Bytes. 4 Bytes. 8 Bytes.
2129
2130
2131 By value.
2132 F6 F3 F4 F5
Visual Basic
To run an application you have to press :
Visual Basic
In visual basic the default unit is : centimeter.
Visual Basic
Currency variable stores fixed point numbers with :
2 decimal digits.
3 decimal digits.
4 decimal digits.
6 decimal digits.
Visual Basic
The size of 'Boolean' data type is :
Visual Basic
In database application, any field does not contain any values can be recognized by:
Nothing value.
Null value.
Error value.
Empty value.
Visual Basic
Redim statement is used to : Rename a variable.
Rename an array.
Redimension an array.
Visual Basic
Function Add(Num1 as integer, Num2 as integer) as integerAdd=Num1+Num2Num1=0Num2=0End function
This body is an example of calling up a function by:
By optional argument.
By reference.
Visual Basic
To get the property window in visual basic you have to press
2133 F3 F6 F4 F6
2134
2135 2 bytes 1 bytes 4 bytes
2136
2137
2138
2139
Visual Basic
To get the property window in visual basic you have to press :
Visual Basic
Visual Basic produce: 3 types of executable code.
2 types of executable code.
4 types of executable code
none of the above.
Visual Basic
In visual basic Bool variable stores none of the above.
Visual Basic
By default 'Dim myvar' this statement: allocates memory for integer variable
allocates memory for variant variable
allocates memory for Double variable
allocates memory for Boolean variable
Visual Basic
Suppose there are two forms; form1 and form2 ; if there are codes like : In form1.active event Form2.show
And in form2.active eventForm1.show
Then what will be the output ?
Two forms will be just showed.
Two forms will be showed and the control will passed continuously to each other.
Nothing will be displayed
None of the above.
Visual Basic
A single function of visual basic takes: Fixed number of parameters
Unlimited number of parameters
All of the above
None of the above
Visual Basic
In a programme body :Private sub form_load()X=inputbox("First No. :")Y=inputbox("Second No. :")Z=val(X) +val(Y)Print ZEnd sub
What will be the output ?
The summation of two numbers given in two input box
It will show the numbers given in the input box side by side
It will show nothing
None of the above
2140
2141
2142
2143 function main sub-main
2144
Visual Basic
when using 'do until-loop' statement as stated belowI=10Do until I>5Print II=I+1Loop
This statement will print
it will generate a run time error
no output will be shown
10 11 12 13 14 15
none of the above
Visual Basic
which control structure are working under false condition
do-while loop & do loop-while
while-wend & for loop
do-while loop & while wend loop
do-until loop & do loop-until
Visual Basic
what will be the output of the code below :private sub command_click()dim I as integerI=0DoPrint ILoop until I>10End sub
it will generate compile time error
it will generate runtime error
it is an endless loop
0 1 2 3 4 5 6 7 8 9 10
Visual Basic
which should be included when an application is used without any forms
subroutines
Visual Basic
It is possible to pass different number parameters to a function when call the function on different time.
To do this one can use in the parameter list of that function
paramarray keyword with the array declaration
argument should be passed as array
none of the above
2145
2146
2147
2148 "Ra" "Ch"
2149
2150
Visual Basic
To break a loop abnormally when satisfying a condition, we can use
Break statement
Exit statement
Both i & ii could be used.
None of the above.
Visual Basic
What will be the output when the statements below will execute :
Dim a as integera=0
while(a<5) print aa=a+1end
It will generate the output like 0 1 2 3 4
It will generate a runtime error
It will generate a compiler error
It will display nothing
Visual Basic
You can get the ASCII value of any character or number by using
ASC() function
ASCII() function
There is no function to get the ascii value.
Visual Basic
Say there is a string "Ramcharan"; when someone using Mid() function like MID("Ramcharan",2) then what will be the output:
"Amcharan"
None of the above
Visual Basic
What is the default value of MaxLength property of text box control?
255 characters
10 characters
0 characters
Any of the above
Visual Basic
Instr$(text1.text,"visual") will returns : No. of times the string "visual" is present in the string in text1.text.
It puts the control where it finds the text "visual" in the string given in text1.text.
First occurrence of the text "visual" within the string given in text1.text
None of the above.
2151 1 2 0 none
2152 None
2153 ListIndex Selected Selcount NewIndex
2154 Font color Fore color None
2155 label(5) label(3) label(4)
2156
2157 None
Visual Basic
What is the default value for multi-select property of list box control.
Visual Basic
If you want a list box control with check box option, which property of list box control you will have to change.
Check box property
Check style property
Style property
Visual Basic
Which property of list box control reports the number of selected items.
Visual Basic
Through which property of option button control one can change the font color of the caption.
Back color
Visual Basic
If there is a control array of label for 10 elements, then what will be the fifth element in the array?
None
Visual Basic
The fundamental property of RichTextBox control is
Text property
TextRTF property
RTFText property
All of the above
Visual Basic
One can change or read the alignment of one or more paragraph of rich text box control through
Text Alignment property
AlignmentSet property
SelAlignment property
2158
2159
2160
2161
2162
2163 None
Visual Basic
RichTextBox1.BulletIndent=5 ; what will be the effect of this code if used in any program
It will set the bulleted indentation by the specified value
It will create a list of bullet of 5 items
All of the above
Visual Basic
To add the commondialog control to any project one has to include it from
File menu->component->Microsoft Common Dialog Control 6.0
Project menu->Component-> Microsoft Common Dialog Control 6.0
Component menu->project-> Microsoft Common Dialog Control 6.0
None of the above
Visual Basic
CommonDialog1.ShowOpenFilename1=CommonDialog1.FilenameThe above code will
Set the filename1 by the selected filename from the common dialog contol.
First displays the open dialog box and let the user select any file from any
location and then set the filename1 by the selected filename.
Both are true.
Visual Basic
Min and Max property can be used with Font common dialog box to determine
To controlling dialog box size
The minimum and maximum size displayed in the size list
None of the above
Visual Basic
To enable apply button in dialog box ; flag value should be set to
cdlCFApply
cdlcfTTOnly
cdcclHelpButton
None of the above
Visual Basic
If the user wants to select the multiple files from file open and filesave dialog boxes then the flag must be set to
cdlOFNMultiselsectAllow
cdlOFNAllowMultiselect
It is not possible to select more than one file at a time
2164
2165 None
2166
2167
Visual Basic
To draw a form on the screen which event is being called up
Draw Event
Load Event
Paint Event
Either i or iii
Visual Basic
In form load event, if the following code is written then guess what will be the output :Dim I as integer, J as integerI=0J=5While I<JPrint II=I+1Wend
output will be 0 1 2 3 4
No output, blank form will be shown
Compiler error
Visual Basic
Data1.Recordset.FindFirst "State=NY"The above code will find the record in a given database
Find the first record in the given database
Find the first record in the given database in which the state is NY.
The above command will find a record very fast where the state is NY
None of the above
Visual Basic
Suppose there is a data control named data1. What will be the effect if the following code is inserted
Data1.recordset.movefirst
The record pointer will move to the first record of the record set
The pointer will move to the first record of the original table that contains the data
It will refresh the recordset
2168
2169
2170 3 4 5 6
2171 current
2172 listbox command
2173 text box
2174 color name caption
2175 255 254 256 257
2176 4 5 6 7
2177 Interval. Front backcolor
Visual Basic
MDI form1.Arrange vbTileHorizontal; this code in a MDI form will
If there are more than one MDI form then arrange them all in horizontal manner
Tiles all child form in horizontal manner
Tiles the MDI form horizontally
None of the above.
Visual Basic
DocumentForm() it is A function of MDI forms
An array of forms using as child into MDIform
None of the above
Visual Basic
Visual Basic has ____________ number of editions
Visual Basic
While running an application you can change the value of any variable and see it's effect through ___________ window.
intermediate
Immediate
Visual Basic
You can get a dropdown list and as well as can add some text directly to ____________ Control.
Combo Box.
none of this
Visual Basic
In _______________ control you can get only drop-down list of the content but cannot add directly anything to that control.
combo box
List Box Control
Visual Basic
_____________ property of any control cannot change at run time.
Visual Basic
The maximum length of a variable is _____________ characters.
Visual Basic
In visual basic, number of loop control structure is _____________.
Visual Basic
In timer control _____________ is the most important property.
2178 6 7 8 9
2179 .frm .txt .prj .vbp
1568 Multi User
1569
1570
1571
1572
1573 more cp cat rmdir
Visual Basic
There are _________________ no. of built in windows dialog boxes provided by common dialogs control.
Visual Basic
The extension name of a Visual Basic form is _____________.
Linux (Softwar
e)
Linux is a ---------------Operating System Single User
Time Sharing
None of the above
Linux (Softwar
e)
Protocols used by Linux are TCP/IP &UUCP
UDP & UUCP
PPP & UDP
None of the above
Linux (Softwar
e)
ls -o is used for Except Group
Except Owner
Except Size in Byte
None of the above
Linux (Softwar
e)
ls - t is used for Sort by name
Sort by date
Sort by time stamp
Sort by alphabetic order
Linux (Softwar
e)
mkdir - p is used for Making directory under parent directory.
Making directory non existing parent directory.
Specified the mode of directory.
None of the above
Linux (Softwar
e)
Which command is used to see the content of a file
1574
1575 Time Date Month
1576
1577 cmp diff head
1578 desc cp sort ls -l
1579
1580
Linux (Softwar
e)
who -h is used to Print column headings
Hide detail.
Hide user name.
All of the above.
Linux (Softwar
e)
Which command is used to see the system date?
None of these
Linux (Softwar
e)
What will be the output of the command 'tail sample'?
Last 10 lines of the file.
Last 15 lines of the file
Last 5 lines of the file
First 10 lines of file.
Linux (Softwar
e)
Which command is used to compare files? All of these
Linux (Softwar
e)
The --------- command sorts lines of all the named files.
Linux (Softwar
e)
The main function of grep is look for numeric
look for string match a regular expression..
look for string without regular expression.
None of them.
Linux (Softwar
e)
What is the relation between grep & egrep egrap is a mother of grep.
Egrap is totally difference
Egrap is a another version of grep.
None of these.
1581 td vi tr tail
1582
1583
1584
1585 w `
1586
1587
1588 ls-l head tail chmod
Linux (Softwar
e)
Which command is used for character translation?
Linux (Softwar
e)
Output of the command 'wc <filename>' is Show only line
Show only word.
Show alphabet, line, word.
Show only file name.
Linux (Softwar
e)
/dev is used for
Executable file
Contains include file
Contain compiler file.
Device file & resource file.
Linux (Softwar
e)
ls j?e - output will be Filenames with 3 charcter
Filenames with 4 charcter
Filenames with 5 charcter
Filenames with 10 charcter
Linux (Softwar
e)
The symbol of wildcard(s) is? *
None of the above.
Linux (Softwar
e)
Output of 'sort > shoppinglist' is Sorting file but not save in file.
Without sorting but save in file.
Sorting and save in a file.
All of the above.
Linux (Softwar
e)
What is the meaning of chmod 444 stuf? Gives all user write permission.
Gives all user execute permission.
Gives all user read permission.
All of the above.
Linux (Softwar
e)
The command for changing the permission relating to files is
1589 1 6 2 0
1590
1591 chmod ps ls-l head
1592 1 2 3 4
201 Access Oracle follows only seven Codd's rule. True False202 Access True False
203 Access True False
204 Access True False
Linux (Softwar
e)
Read & Write permission means
Linux (Softwar
e)
chmod 632 stuff means Gives read & write& execute permission for owner write & execute for group read permission for other.
Gives read & write permission for owner write & execute for group Write permission for other.
Gives write permission for owner write & execute for group Write permission for other.
Gives read & write permission for owner read & execute for group Write permission for other.
Linux (Softwar
e)
To see the process status which command you will use?
Linux (Softwar
e)
There can be only ----- job in foreground.
Access is a true RDBMS.
In a table records are stored in rows and fields in columns.
Text type field stores maximum 256 characters.
205 Access True False
206 Access True False
207 Access True
208 Access True False
209 Access True False
210 Access True False
211 Access True
212 Access True False
213 Access True False
214 Access True False
Memo field stores 64,000 characters.
In Yes / No field -1 stands no and 0 stands for yes.
The lostfocus event occurs when a form or control looses the focus.
False
We can not set a background picture in a report.
We can see the report preview from tools menu à layout preview.
Report header / footer sections does not come normally.
We can have subform within a subform. False
We can type new values in a list box.
When referential integrity is enforced, you 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.
When the cascade delete related records check box is set, deleting a record in the primary table deletes any related records in the related table.
215 Access True
216 Access True False
217 Access True False
218 Access True False
219 Access True False
220 Access True False
221 Access True False
222 Access True False
223 Access True False
224 Access True False
If you want to see the SQL code that is generated by the query select Tools à SQL view from the menu.
False
If you give a format property and an input mask the input mask gets precedence.
A primary key is a must in a table.
Double data type takes 4 bytes of space.
There is one-to-many relationship between mainform and subform.
You can not specify default value for a field.
Foreign key must be primary key of another table.
If required field property is turned on the user must enter something in this field in order to save the data.
In access you can copy the only structure of the table without the records.
A macro can be run automatically when a database opens.
225 Access True False
226 Access True False
227 Access True False
228 Access True False
229 Access True False
230 Access True False
231 Access True
232 Access True False
233 Access True False
A report can only be based on table.
In access page footer comes before report footer in all pages.
Currency is not a valid data type in access.
In append query the table where the data will be appended should have the same structure and primary key.
It is possible to enter a Null value in the foreign key.
It is not possible to set two fields of a table as primary key.
In access you can store the information of a video files in table. False
In access, sorting the records in a table changes the order in which the records are displayed.
In access after you select all the fields necessary for the query, access builds the SQL in the background.
234 Access AUTO
235 Access
236 Access
237 Access
238 Access
239 Access
240 Access
241 Access
To run a macro automatically, the name of the macro is
AUTOEXEC
AUTOEXEC.BAT
None of the above
In Validation rule <>0 means entry is not null
entry must be a nonzero value
none of the above
In input masks (999) 999-9999 means (206) 555-0248
( ) 555-0248
both of the above
none of the above
You can copy records from one table to another table in the current database or another database.
Update query
Append query
Maketable query
To delete all orders placed in 1990 we have to use
Update query
Append query
Maketable query
Delete query
To increase salary by 5% we have to use Update query
Append query
Delete query
In access relationships are one-to-one
one-to-many
both of the above
Access lets you set up following kinds of joins -
Only Inner join
Only outer join
Only self join
None of the above
242 Access .dbf .doc .ppt
243 Access
244 Access
245 Access picture a & b
246 Access
247 Access
248 Access True False
249 Access Access support full RDBMS concept. True False250 Access True False
Extension of an access database is.mdb
It allows you to set the message that appears if the validation rule fails.
validation rule
validation text
default value
all of the above
Primary key field must be not null and unique
null and unique
not null and indexed
You can store picture in a field of data type OLE Object
None of the above
An example of calculated query is label control
text control
both a & b
Line control is a example of bound control
unbound control
calculated control
There is one-to-many relationship between mainform and subform.
Using multiple row , we can not create primary key.
answer
A
ABBA
B
B
BB
B
B
A
BB
A
BAB
AA
A
A
A
A
A
B
B
A
BB
BBA
B
B
A
B
B
B
B
A
A
A
B
B
A
B
B
A
B
A
A
A
D
C
C
C
A
C
D
C
B
C
D
D
D
C
B
D
A
A
B
B
D
B
A
A
D
B
C
B
B
C
C
B
D
B
D
B
C
B
A
C
A
C
BB
B
C
A
A
D
D
C
B
C
C
D
A
A
B
C
A
C
B
A
B
B
A
C
B
B
C
B
B
C
C
C
AC
B
B
B
C
B
A
B
B
A
B
A
D
A
A
A
A
B
C
B
C
A
A
B
A
AB
C
D
B
A
A
B
A
B
C
B
A
A
BABA
A
A
A
B
A
A
B
A
B
B
AA
A
BA
A
A
A
B
BA
AB
A
A
B
AB
A
A
C
C
A
D
B
D
C
C
B
D
D
C
A
B
B
D
D
B
B
B
B
A
C
D
A
C
B
B
D
B
C
C
B
D
A
D
C
B
A
D
C
B
C
B
D
C
A
C
C
A
B
B
A
A
A
A
A
B
B
B
B
A
B
A
B
A
B
A
B
B
B
B
B
B
B
A
A
B
A
A
A
B
B
A
B
B
A
B
A
A
B
A
B
B
A
B
A
B
B
A
AB
A
B
B
B
A
B
A
A
A
B
B
D
C
A
C
A
C
C
C
C
B
D
D
B
A
A
B
A
B
A
A
A
A
A
A
B
B
A
B
B
A
A
A
B
A
B
A
B
B
A
A
A
A
B
B
A
B
B
B
B
B
A
B
A
B
C
B
A
C
D
C
B
B
C
C
C
C
B
D
B
B
B
C
B
D
C
D
B
B
C
A
C
C
C
C
C
C
C
C
C
C
A
B
B
B
A
B
C
B
B
B
B
B
A
B
C
C
B
A
C
A
A
A
B
A
A
C
B
C
A
B
A
A
C
B
C
C
C
D
A
C
C
C
D
B
B
B
A
AB
A
B
A
B
A
B
B
A
A
B
A
A
B
B
B
B
A
B
A
A
A
A
B
B
B
A
A
B
A
A
A
A
B
C
B
D
A
C
D
B
B
A
B
C
B
A
BB