0% found this document useful (0 votes)
5 views8 pages

DDTA S2 OnlineModelQuestionPaper

The document contains a series of multiple-choice questions related to programming concepts, specifically focusing on C, SQL, Java, and HTML/CSS. Each question lists options with one correct answer indicated for each. The content covers topics such as variable declarations, program outputs, SQL commands, and HTML/CSS attributes.

Uploaded by

ronodipsill26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views8 pages

DDTA S2 OnlineModelQuestionPaper

The document contains a series of multiple-choice questions related to programming concepts, specifically focusing on C, SQL, Java, and HTML/CSS. Each question lists options with one correct answer indicated for each. The content covers topics such as variable declarations, program outputs, SQL commands, and HTML/CSS attributes.

Uploaded by

ronodipsill26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Option Correct

Sno. Question Text Option A B Option C Option D Answer


1 Which of the a=2+(b=5); a=b=c= a=11%3 b+5=2
following will not 5;
valid expressions in
C?
2 The diagrammatic Flowchart Progra Pseudo code Water fall A
flow of the program m map mode
is represented by
3 -60 -30 Garbage Compiler B
Find the output of the value Error
following program?

#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

#include<stdio.h> value=-18 value=- value=-22 value=16


22
Void main() value=0 value=0 value=-2 value=-2

{
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);
}

Find the output of the y=100 y=300 y=100 y=300 A


following program

#include<stdio.h> z=200 z=garba z=garbage z=200


ge
void main()
{
int x=500,y=100,z;
if(!x>=400)
y=300;
z=200;
printf(“y=%d
z=%d\n”, y, z);
}
10 When requesting a space a tab a new line any of the D
multiple inputs from charact character above
the user,they must er
be separated by
11 C programming object Procedu function None of B
language is oriented re oriented above
programming oriented programming
language program language
ming
languag
e

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

14 What is the function start() begin() main() program() C


from where C
programs begins
their execution?
15 How many join types 2 3 4 5 D
in join condition:

16 Super key and TRUE FALSE A


candidate key can
have NULL values?
17 Which command is LIST SHOW DESCRIBE STRUCTUR C
used to display the E
structure of a table?
18 How to select all data SELECT * SELEC SELECT * SELECT * A
from student table FROM student T* FROM FROM
starting the name WHERE name FROM student student
from letter 'r'? LIKE 'r%' student WHERE WHERE
WHERE name LIKE name LIKE
name '%r' '_r%'
LIKE
'%r%'

19 NULL is the same as 0 the the same as no value D


for integer same as 0 for integer
blank and blank for
for character
charact
er

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

22 AS' clause is used in Selection Rename Join Projection B


SQL for Operation Operati Operation Operation
on
23 The HAVING clause Acts Acts like Acts like a Acts like a C
does which of the EXACTLY like a WHERE WHERE
following? a WHERE WHERE clause but is clause but
clause clause used for is used for
but is groups rather rows rather
used for than rows than
columns columns
rather
than
groups

24 In SQL, which ALTER MODIF CHANGE ALL OF A


command is used to TABLE Y TABLE THE
change a table's TABLE ABOVE
structure
25 A subquery in an parenthesis-- brackets- CAPITAL braces--{…} A
SQL SELECT (…) -[…] LETTERS
statement is
enclosed in:
26 Which of the Columns used Column Columns rows can B
following conditions for joining s used used for either be
has to be satisfied must have for joining must inserted into
for INNER JOIN to same name joining have different table one at
work? can names a time only
have
same or
different
name

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

28 What SQL command ALTER ALTER MODIFY MODIFY A


can be used to add TABLE TABLE TABLE TABLE
columns to a table? TableName TableNa TableName TableName
ADD me ADD ADD ADD
ColumnName COLUM ColumnName COLUMN
N ColumnNa
Column me
Name
29 On which platforms Windows Mac OS UNIX All of these D
Java runs?
30 In Java, which abstract class interface extends A
keyword is used to
define an abstract
class?
31
What will be the 1 2 3 4 0123 123 01234 B
output of the
following Java code?

public static void


main(String[] args) {

for (int i = 0; i < 10;


i++) {
if (i == 4) {
break;
}
System.out.println(i);

}
}
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?

38 Which concept Polymorphism Inhetita Encapsulatio Anstraction B


provides a blueprint nce n
for a class?
39 What is the main To provide To To define the To initialize B
purpose of access default values control class objects
modifiers in Java? visibility structure
and
access
40 Which Java keyword get import extends All of these B
is used to access
features of a
package?
41 How does one Extension of Java The class The unit B
identify if a the source and interface type must
compilation unit is an compilation file cannot be be used to
interface or class unit header differentiated postfix
from a .class file? interface or
class name
42 Which of these public private protected none of the A
access specifier mentioned
must be used for
class so that it can
be inherited by
another subclass?
43 Which is the correct <p>Hello<sup <p>Hell <p>Hello<sub <p>Hello<a A
HTML statement to >World</sup> o<top> >World</sub bove>World
display in a </p> World</t ></p> </above>
paragraph? op></p> </p>

44 Can we hide content Yes No A


using the comment?

45 How to make an <div <div <div <div B


element draggable: drag="true" /> draggab type="drag" type="dragg
le="true" /> able"/>
/>
46 Which attribute is id class type None of the A
used to provide a above
unique name to an
HTML element?
47 The attribute _____ Caption Summar title overview B
in table is used to y
provide a text
summary of the
tables purpose and
structure
48 HTML headings are <head1> to <p1> tp >h1> to <h6> <h1> to C
defined with the <head6> <p6> <h3>
_____ tags
49 HTML tags with no Special Tags Advanc Empty Tags Other Tags C
content are called ed Tags
_____
50 What are the main HTML, CSS, HTML Javascript Node.js. A
components of the Javascript Only only
front end of any
working website
using HTML5?
51 Which of the text- font- font-style: text-align: B
following CSS decoration: weight: bold bold
property is used to bold bold
make the text bold?
52 nothings error heading heading A
What will be the happen occurs becomes becomes
output of following dark-green green
CSS code snippet?
H1{color:"green";}

53 Which HTML <style> <css> style css A


attribute is used to
define styles of an
element?
54 The HTML5 element <figcaption> <mark> <canvas> <header> C
used to draw
graphics via scripting
is
55 Which of the <css> <!DOCU <script> <style> D
following tag is used MENT
to embed css in html html>
page?

You might also like