DDTA S2 OnlineModelQuestionPaper
DDTA S2 OnlineModelQuestionPaper
#include<stdio.h>
void main()
{
int
array[]={10,20,30,40}
;
printf(“%d”, -
2[array]);
}
4 C
Find the output of the value=70 value=- value=-48 value=20
following program 48
{
int a,b,c;
a=2; b=5; c=10;
printf(“value=%d\n”,
(a+b*-c));
printf(“value=%d\n”, (-
c/b*c-a));
printf(“value=%d\n”, (-
a+ ++b %a));
}
5 The header file that stdio.h conio.h string.h math.h C
has various string
functions like
strcpy(),strcat(),ect is
6 What is a program A set of A set of A set of All of above A
instruction algorith pseudo code
em
7 Which of the int length char int int long All A
following variable
declaration is
correct?
8 0 1 infinite Error A
Find the output of the
following program
#include<stdio.h>
void main() {
int a;
printf(“%d”,a^a);
}
12 The total memory Memory space sum of 100 bytes none of the B
space allocated for a required by memory above
variable of a the largest space
structure is equal to member required
_______ variable of the by the
structure all
member
variable
of the
structur
e
13 The difference The first one The first Both are None of A
between a and "a" is refers to a one is a same above
variable charact
whose er
identifier is a constant
and the a and
second one second
refers to the one is
character the
constant a string
literal a
20 Which are the join Cross Join Natural Join with All of the D
types in join Join USING above
condition: clause
21 What do you mean HOST is the HOST is HOST is the None of B
by HOST in MYSQL? user name the administratio above
represe n’s machine
ntation name
of
where
the
MYSQL
server is
running
27 The SQL WHERE limits the row limits Both A and B Neither A A
clause: data are the are correct nor B are
returned column correct
data
that are
returned
}
}
32 Java program TRUE FALSE A
processing always
starts with main()
method
33 What is not the use Referring to Passing Passing itself Calling B
of “this” keyword in the instance itself to to another another
Java? variable when the method constructor
a local method in
variable has of the constructor
the same same chaining
name class
34 Which of the char ch = char ca char cr = char cc = A
following is a valid '\utea'; = 'tea' \u0223; '\itea';
declaration of a
char?
35 Which of the Polymorphism Inherita Compilation Encapsulati C
following is not an nce on
OOPS concept in
Java?
36 Which of these identifier & identifier keyword None of the C
cannot be used for a keyword above
variable name in
Java?
37 Which keyword is throws throw try catch D
used to handle
exceptions in Java?