wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Full Stack

Total questions: 104

Worksheet time: 1hrs 18mins

Name
Class
Date
1.

What is the 16-bit compiler allowable range for integer constants?

a)

-3.4e38 to 3.4e38

b)

-32767 to 32768

c)

-32668 to 32667

d)

-32768 to 32767

2.

What will happen when the following code is executed?

void main()

{

printf("MIET");

main();

}

a)

Wrong statement

b)

It will keep on printing MIET

c)

It will print MIET once

d)

None of these

3.

What is the result after execution of the following code if a is 10, b is 5, and c is 10?

if ((a > b) && (a <= c))

a = a + 1;

else

c = c+1;

a)

a = 10, c = 10

b)

a = 11, c = 10

c)

a = 10, c = 11

d)

a = 11, c = 11

4.

Which one of the following is a loop construct that will always be executed once?

a)

for

b)

while

c)

switch

d)

do while

5.

Directives are translated by the

a)

Pre-processor

b)

Compiler

c)

Linker

d)

Editor

6.

Which of the following will copy the null-terminated string that is in array src into array dest?

a)

dest = src;

b)

dest == src;

c)

strcpy(dest, src);

d)

strcpy(src, dest);

7.

What will the result of 'num' variable after execution of the following statements?

int num = 58;

num % = 11;

a)

3

b)

5

c)

8

d)

11

8.

What will the result of num1 variable after execution of the following statements?

int j = 1, num1 = 4;

while (++j <= 10)

{

num1++;

}

a)

11

b)

12

c)

13

d)

14

9.

What will be the output of the following code?

#include <stdio.h>

int main()

{

int *ptr, a = 10;

ptr = &a;

*ptr += 1;

printf("%d,%d/n", *ptr, a);

}

a)

10, 10

b)

10, 11

c)

11, 10

d)

11, 11

10.

Give the following declarations and an assignment statement. Which one is equivalent to the expression str [4]?

char str[80];

char * p;

p = str;

a)

p + 4

b)

*p + 4

c)

*(p + 4)

d)

p[3]

11.

Javascript is _________ language.

a)

Programming

b)

Scripting

c)

Application

d)

applet

12.

JavaScript is ______ Side Scripting Language.

a)

JSP

b)

Servlet

c)

Server

d)

Browser

13.

JavaScript is designed for following purpose -

a)

To Style HTML Pages

b)

To Perform Server Side Scripting Opertion

c)

To add interactivity to HTML Pages.

d)

To Execute Query Related to DB on Server

14.

JavaScript is can be written -

a)

directly into JS file and included into HTML

b)

directly into HTML pages

c)

directly on the Server Script

d)

None of these

15.

JavaScript is an ________ language.

a)

compiled

b)

interpreted

16.

JavaScript Code is written inside file having extension __________.

a)

.jsc

b)

.jvs

c)

.js

d)

.javascript

17.

Why JavaScript is called as Lightweight Programming Language ?

a)

because JS can provide programming functionality inside but up to certain extend.

b)

because JS is client side scripting

c)

because JS is available free of cost.

d)

because we can add programming functionality inside JS

18.

Local Browser used for validations on the Web Pages uses __________.

a)

HTML

b)

CSS

c)

js

d)

java

19.

JavaScript Code can be called by using _________.

a)

RMI

b)

Function / Method

c)

Triggering Event

d)

Preprocessor

20.

Is this correct syntax to include JS Code inside HTML Page ?

<script type="text/javascript">

...

</script>

a)

Yes

b)

No

21.

We cannot Place JS Code in the body tag . Say true/false.

a)

True

b)

False.

22.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

23.

To create a dotted border around the page

a)

border-style

b)

border-width

c)

border-color

d)

width

24.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

25.

What does a class do?

a)

adds color to words

b)

adds style to specific elements

c)

adds style to a whole page

d)

adds a lot more work

26.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

27.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

28.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

29.

Where should you put the link tag to connect your CSS and HTML file?

a)

Between the <head> </head> in HTML

b)

Between the <body> </body> in HTML

c)

None of the above.

30.

Which of the following is the correct CSS link tag?

a)

<link rel="styles" href="stylesheet.css">

b)

<link href="stylesheet">

c)

<link rel="stylesheet" src="styles.css">

d)

<link rel="stylesheet" href="styles.css">

31.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
32.
If you want to have more than one declaration in a CSS rule, what character separates them?
a)
comma ,
b)
semi-colon ;
c)
colon :
33.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
34.
What does HTML stand for?
a)
Hypertext Making Language
b)
Hyper Transfer Markup Language
c)
Hypertext Markup Language
d)
Hyper Transfer Making Language
35.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
36.
<p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
37.
</p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
38.

HTML stands for...

a)

Hyper Time Multiple Language

b)

Hyper Text Mark-up Language

c)

Hippo T-Rex Mascot Lemur

d)

Hipper Text Make Language

39.

Which is the proper way to write an h1 tag

a)

<h1>Hello</h1>

b)

<h1>"Hello

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

40.

<p> tag is for...

a)

Page of Text

b)

Picture

c)

Paragraph of text

d)

Pineapples

41.

What does a opening tag look like?

a)

< >

b)

</ >

c)

<< >>

d)

<

42.

What does a closing tag look like?

a)

< >

b)

<\ >

c)

</ >

d)

<< >>

43.

What should a HTML web page start with?

a)

<b>

b)

<li>

c)

<html>

d)

<start>

44.

What should a HTML web page end with?

a)

</html>

b)

<head>

c)

</end>

d)

</body>

45.

What does this tag stand for? <b>

a)

bright

b)

big

c)

beautiful

d)

bold

46.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
47.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
48.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
49.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
50.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
51.
What will happen to the text in blue?   <p>He named his car <i>The lightning</i>, because it was very fast.</p>
a)
the content will be displayed in italic
b)
the content will display an image
c)
the content defines text inserted into a document
52.
CSS stands for?
a)
Closed Source Style
b)
Crucial Style Sheets
c)
Cascading Style Sheets
d)
Corresponding Static Style
53.
HTML stands for?
a)
HammersTend To Mostly Lose
b)
HypoText Madeup Language
c)
HyperText Markup Langauge
54.

Which of the following codes would create a horizontal line

a)

<br>

b)

<h1></h1>

c)

<hr>

d)

<p>

55.

src attribute in an image tag means what?

a)

Source of the image

b)

Name of the image

c)

Description of the image

d)

Not used with image tag

56.

Which list tag would you use for an ordered list

a)

<h1></h1>

b)

<ol></ol>

c)

<ul></ul>

d)

<a></a>

57.

When working with color codes RGB stands for...

a)

Green Red Purple

b)

Red Great Blue

c)

Red Green Blue

d)

Blue Green Raspberry

58.

Which of the tag is used to create a numbered list?

a)

<L> </L>

b)

<LI> </LI>

c)

<li> </lo>

d)

<ol> </ol>

59.

Web pages starts with which of the following tag?

a)

<form>

b)

<HTML>

c)

<body>

d)

<Title>

60.

<p> is the opening tag for a _____________

a)

page

b)

paragraph

c)

preorder

d)

period

61.
If you wanted to add links to your web page - what tag would you use?
a)
<a>
b)
<p>
c)
<div>
d)
<link>
62.
the tag <IMG> would insert what into a web page?
a)
Insert a title
b)
Insert a link
c)
Insert an image
63.
What will happen to the text in blue?   <p>He named his car <i>The lightning</i>, because it was very fast.</p>
a)
the content will be displayed in italic
b)
the content will display an image
c)
the content defines text inserted into a document
64.
What is will the highlighted tag do? <p>My favourite colour is blue<br>I support Southend United.
</p>
a)
it will make the text bold
b)
it will place the text on another line
65.
What coding would be used to define a header cell in an HTML table
a)
<th>Month</th>
b)
<td>Month</td>
c)
<h1>Month</h1>
d)
<h2>Month</h2>
66.
CSS stands for?
a)
Closed Source Style
b)
Crucial Style Sheets
c)
Cascading Style Sheets
d)
Corresponding Static Style
67.

Group of webpages is called _____.

a)

Website

b)

Web browser

c)

Web Search engine

d)

None of the above

68.

In a form, a drop-down list of options

a)

begins with a select tag followed by a list of option tags.

b)

begins with an option tag followed by a list of select tags.

c)

begins with a select tag followed by a list of datalist tags.

d)

begins with a datalist tag followed by a let of option tags.

69.

How more than one option can be selected in drop down?

a)

Use of multiple attribute inside <option> tag.

b)

Use of multiple attribute inside <select> tag.

c)

Use of multiple attribute inside <text> tag.

d)

It is not possible to select more than one option in drop down.

70.
To set the image size, Which command should I use?
a)
width="400"
b)
center="400"
c)
long="400"
d)
short="400"
71.

Which portion of this tag is the text that will show up if there is a problem with my photo link?


<img src="cat.jpeg" alt="cat jumping"/>

a)

img src=

b)

cat.jpeg

c)

cat jumping

d)

alt=

72.

<input type="___________" name="gender" value="male"> Male

<input type="___________" name="gender" value="female">Female


(Fill the type of input which used to select just one option.)

(a)  

73.

Look at this series: 201, 202, 204, 207, ... What number should come next?

a)

205

b)

208

c)

210

d)

211

74.

Look at this series: 544, 509, 474, 439, ... What number should come next?

a)

404

b)

414

c)

420

d)

445

75.

9 16 23 30 37 44 51

a)

59 66

b)

56 62

c)

58 66

d)

58 65

e)

54 61

76.

In a certain code, HARYANA is written as 8197151, how is DELHI written in that code?

a)

45389

b)

57389

c)

89654

d)

12547

77.

If in a code language. COULD is written as BNTKC and MARGIN is written as LZQFHM, how will MOULDING be written in that code?

a)

CHMFINTK

b)

LNKTCHMF

c)

LNTKCHMF

d)

NITKHCMF

78.

In a certain code, MONKEY is written as XDJMNL. How is TIGER written in that code?

a)

QDFHS

b)

SDFHS

c)

SDFHS

d)

UJHFS

79.

Direction

Study the data given below and answer the following questions:

‘Royal Monarch Regal’ is written as @ # *,

‘Regal legacy Gold’ is written as * % ?,

‘Hope Gold Life’ is written as % & $,

‘Regal Monarch Morals’ is written as # * ∀

Q. What will be the code for Regal?

a)

%

b)

*

c)

$

d)

#

e)

?

80.

Direction

Study the data given below and answer the following questions:

‘Royal Monarch Regal’ is written as @ # *,

‘Regal legacy Gold’ is written as * % ?,

‘Hope Gold Life’ is written as % & $,

‘Regal Monarch Morals’ is written as # * ∀

Q. What will be the code for “Gold Legacy”?

a)

# &

b)

% #

c)

? %

d)

* ∀

e)

& $

81.

Direction-

Study the data given below and answer the following questions:

‘Royal Monarch Regal’ is written as @ # *,

‘Regal legacy Gold’ is written as * % ?,

‘Hope Gold Life’ is written as % & $,

‘Regal Monarch Morals’ is written as # * ∀

Q. Which word is coded as #?

a)

Moral

b)

Life

c)

Regal

d)

Monarch

e)

Legacy

82.

Direction

Study the data given below and answer the following questions:

‘Royal Monarch Regal’ is written as @ # *,

‘Regal legacy Gold’ is written as * % ?,

‘Hope Gold Life’ is written as % & $,

‘Regal Monarch Morals’ is written as # * ∀

Q. In the given coded language, which of the following words has been coded as &?

a)

Gold

b)

Life

c)

Hope

d)

Either ‘2’ or ‘3’

e)

None of the above

83.

Direction -

Study the data given below and answer the following questions:

‘Royal Monarch Regal’ is written as @ # *,

‘Regal legacy Gold’ is written as * % ?,

‘Hope Gold Life’ is written as % & $,

‘Regal Monarch Morals’ is written as # * ∀

Q. What is the code for royal?

a)

%

b)

@

c)

?

d)

*

e)

84.

If A + B means A is the mother of B; A - B means A is the brother B; A % B means A is the father of B and A x B means A is the sister of B, which of the following shows that P is the maternal uncle of Q?

a)

Q - N + M x P

b)

P + S x N - Q

c)

P - M + N x Q

d)

Q - S % P

85.

Introducing a boy, a girl said, "He is the son of the daughter of the father of my uncle." How is the boy related to the girl?

a)

Brother

b)

Nephew

c)

Uncle

d)

Son-in-law

86.

Introducing Sonia, Aamir says, "She is the wife of only nephew of only brother of my mother." How Sonia is related to Aamir?

a)

Wife

b)

Sister

c)

Sister-in-law

d)

Data is inadequate

87.

Introducing a boy, a girl said, "He is the son of the daughter of the father of my uncle." How is the boy related to the girl?

a)

Brother

b)

Nephew

c)

Uncle

d)

Son-in-law

88.

Introducing Sonia, Aamir says, "She is the wife of only nephew of only brother of my mother." How Sonia is related to Aamir?

a)

Wife

b)

Sister

c)

Sister-in-law

d)

Data is inadequate

89.

Direction -

Five girls are sitting on a bench to be photographed. Seema is to the left of Rani and to the right of Bindu. Mary is to the right of Rani. Reeta is between Rani and Mary.

Q. Who is sitting immediate right to Reeta?

a)

Bindu

b)

Rani

c)

Mary

d)

Seema

90.

Direction -

Five girls are sitting on a bench to be photographed. Seema is to the left of Rani and to the right of Bindu. Mary is to the right of Rani. Reeta is between Rani and Mary.

Q. Who is in the middle of the photograph ?

a)

Bindu

b)

Rani

c)

Reeta

d)

Seema

91.

Direction -

Five girls are sitting on a bench to be photographed. Seema is to the left of Rani and to the right of Bindu. Mary is to the right of Rani. Reeta is between Rani and Mary.

Q. Who is second from the right ?

a)

Mary

b)

Rani

c)

Reeta

d)

Bindu

92.

Direction -

Five girls are sitting on a bench to be photographed. Seema is to the left of Rani and to the right of Bindu. Mary is to the right of Rani. Reeta is between Rani and Mary.

Q. Who is second from the left in photograph ?

a)

Reeta

b)

Mary

c)

Bindu

d)

Seema

93.



(a)  

94.

a)

a

b)

b

c)

c

d)

d

95.

There was a plane crash, every single person died then who survived

(a)  

96.

a)

1

b)

2

c)

3

97.

a)

a

b)

b

c)

c

d)

d

98.

a)

a

b)

b

c)

c

d)

d

99.

a)

1

b)

2

c)

3

d)

4

100.



(a)  

101.

What comes once in a minute, twice in a moment and never in a thousand years

(a)  

102.

In this room two people go in and three come out, what am I ?

(a)  

103.
a)

a

b)

b

c)

c

d)

d

104.



(a)