wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

T-SQUAD

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

Which program is used by web clients to view the web pages?

a)

Web server

b)

Web browser

c)

Search Engine

d)

Protocol

2.

What are shared on the Internet and are called as Web pages?

a)

programs

b)

cables

c)

Hypertext documents

d)

none

3.

What is the name of the location address of the hypertext documents?  

a)

Uniform Resource Locator

b)

Web server

c)

File

d)

Web address

4.

Choose the correct HTML tag to make a text bold?

a)

<b>

b)

<bold>

c)

<bb>

d)

<bld>

5.

The special formatting codes in HTML document used to present content are

a)

tags

b)

attributes

c)

values

d)

None

6.

In which of the following formats data is stored in the database management system?

a)

Image

b)

Text

c)

Table

d)

Graph

7.

What is information about data called?

a)

Hyper data

b)

Tera data

c)

Meta data

d)

Relations

8.

The DBMS acts as an interface between ________________ and ________________ of an enterprise-class system.

a)

Data and the DBMS

b)

Application and SQL

c)

Database application and the database

d)

The user and the software

9.

Which command is used to remove a relation from an SQL?

a)

Drop table

b)

Delete

c)

Purge

d)

te

Purge

Remove

10.

Why the following statement is erroneous?

SELECT dept_name, ID, avg (salary)

FROM instructor

GROUP BY dept_name;

a)

Dept_id should not be used in group by clause

b)

Group by clause is not valid in this query

c)

Avg(salary) should not be selected

d)

None

11.

What is the function of the following command?

Delete from r where P;

a)

Clears entries from relation

b)

Deletes relation

c)

Deletes particular tuple from relation

d)

All of the mentioned

12.

_________________ operations do not preserve non-matched tuples.

a)

Left outer join

b)

Inner join

c)

Natural join

d)

Right outer join

13.

The oldest DB model is _______________

a)

Network

b)

Physical

c)

Hierarchical

d)

Relational

14.

How can we describe an array in the best possible way?

a)

The Array shows a hierarchical structure.

b)

Arrays are immutable.

c)

Container that stores the elements of similar types

d)

The Array is not a data structure

15.

Which of the following is the correct way of declaring an array?

a)

int javatpoint[10];

b)

int javatpoint;

c)

javatpoint{20};

d)

array javatpoint[10];

16.

Which data structure is mainly used for implementing the recursive algorithm?

a)

Queue

b)

Stack

c)

Binary tree

d)

Linked list

17.

Which of the following is the infix expression?

a)

A+B*C

b)

+A*BC

c)

ABC+*

d)

None of the above

18.

What is another name for the circular queue among the following options?

a)

Square buffer

b)

Rectangle buffer

c)

Ring buffer

d)

None of the above

19.

The time complexity of enqueue operation in Queue is __

a)

O(n)

b)

O(1)

c)

O(logn)

d)

O(n)nlog

20.

How many Queues are required to implement a Stack?

a)

3

b)

2

c)

1

d)

4

21.

What is the maximum number of children that a node can have in a binary tree?

a)

3

b)

1

c)

4

d)

2

22.

How can we define a AVL tree?

a)

A tree which is binary search tree and height balanced tree.

b)

A tree which is a binary search tree but unbalanced tree.

c)

A tree with utmost two children

d)

A tree with utmost three children

23.

What is the order of precedence in python?

a)

Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b)

Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c)

Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d)

Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

24.

What should be the first tag in any HTML document?

a)

<head>

b)

<title>

c)

<html>

d)

<document>

25.

What is the correct HTML for making a hyperlink?

a)

<a href=”http://objectivebooks.com”>Objective Books</a>

b)

<a name=”http://objectivebooks.com.com”> Objective Books </a>

c)

<http://objectivebooks.com.com</a>

d)

url=”http://objectivebooks.com.com”> Objective Books

26.

Python allows string slicing. What is the output of below code:

s='cppbuzzchicago'

print(s[3:5])

a)

buzzc

b)

pbuzz

c)

bu

d)

None of the above

27.

Which one of the following is not a keyword in Python language?

a)

pass

b)

eval

c)

assert

d)

nonlocal

28.

What will be the output of the following Python function?

len(["hello",2, 4, 6])

a)

Error

b)

6

c)

4

d)

3

29.

What will be the value of the following Python expression?

4 + 3 % 5

a)

7

b)

2

c)

4

d)

1

30.

Which of the following is used to define a block of code in Python language?

a)

Indentation

b)

Key

c)

Brackets

d)

All of the mentioned

31.

What will be the output of the following Python code?

print("abc. DEF".capitalize())

a)

abc. def

b)

Abc. def

c)

Abc. Def

d)

ABC. DEF

32.

In the Python statement x = a + 5 - b:

a and b are ________

a + 5 - b is ________

a)

operators, a statement

b)

terms, a group

c)

operands, an equation

d)

operands, an expression

33.

What is the Output of the following code?

for i in range(10, 15, 1):

print( i, end=', ')

a)

10, 11, 12, 13, 14,

b)

10, 11, 12, 13, 14, 15,

c)

he Program executed with errors

34.

What is the output of the following code?

a)

JamesJamesJamesJamesJamesJames

b)

JamesJamesJamesJamesJames

c)

Error: invalid syntax

35.

One kilobyte is equal to approximately ________ memory locations. 

a)

10,000

b)

1,000,000

c)

1,000

d)

100,000

36.

JavaScript is the same language as Java.

a)

Yes

b)

No

37.

Who is the father of C language?

a)

Steve Jobsb

b)

James Gosling

c)

Dennis Ritchie

d)

Rasmus Lerdorf

38.

All keywords in C are in ____________

a)

LowerCase letters

b)

UpperCase letters

c)

CamelCase letters

d)

None of the mentioned

39.

Which is valid C expression?

a)

int my_num = 100,000;

b)

int my_num = 100000;

c)

int my num = 1000;

d)

int $my_num = 10000;int $my_num = 10000;

40.

Which of the following declaration is not supported by C language?

a)

String str;

b)

char *str;

c)

float str = 3e2;

d)

Both String str; & float str = 3e2;

41.

Special symbol permitted with in the identifier name.

a)

$

b)

@

c)

.

d)

_

42.

What is the output of the following program?

a)

Hello, World!

b)

No output

c)

Compiler Error

d)

Run time error

43.

Which of the following statement can be used to free the allocated memory?

a)

remove(var-name);

b)

free(var-name);

c)

vanish(var-name);

d)

erase(var-name)

44.

The correct order of evaluation for the expression “z = x + y * z / 4 % 2 – 1”

a)

* / % = + -

b)

/ * % - + =

c)

- + = * % /

d)

* / % + - =

45.

Functions in C Language are always _________

a)

Internal

b)

External

c)

Both Internal and External

d)

External and Internal are not valid terms for functions

46.

What is #include <stdio.h>?

a)

Preprocessor directive

b)

Inclusion directive

c)

File inclusion directive

d)

None of the mentioned

47.

In C language, FILE is of which data type?

a)

int

b)

char *

c)

struct

d)

None of the mentioned

48.

What is the sizeof(char) in a 32-bit C compiler?

a)

1 bit

b)

1 Byte

c)

2 Bytes

d)

2 bits

49.

scanf() is a predefined function in______header file.

a)

stdlib. h

b)

ctype. h

c)

stdio. h

d)

stdarg. h

50.

What are the elements present in the array of the following C code?

int array[5] = {5};

a)

5, 5, 5, 5, 5

b)

5, 0, 0, 0, 0

c)

5, (garbage), (garbage), (garbage), (garbage)

d)

(garbage), (garbage), (garbage), (garbage), 5

51.

What is the output of this C code?

a)

True

b)

False

52.

What is the meaning of the following C statement?

printf(“%10s”, state);

a)

10 spaces before the string state is printed

b)

Print empty spaces if the string state is less than 10 characters

c)

Print the last 10 characters of the string

d)

None of the mentioned

53.

The fathers of the Internet is?

a)

Charles Babbage

b)

John McCarthy

c)

Vint Cerf

d)

Barin Lee

54.

Where is RAM located?

a)

Expansion Board

b)

External Drive

c)

Mother Board

d)

All of above

55.

Which web browser was the first web browser from the following?

a)

Safari

b)

Opera

c)

Mosaic

d)

MSIE

56.

Which of the following is the most powerful type of computer?

a)

Megaframe

b)

Super computer

c)

Super conductor

d)

Super–micro

57.

Malicious software is known as?

a)

Badware

b)

Malware

c)

Illegalware

d)

Maliciousware

58.

Bit stands for ____ ?

a)

Binary information term

b)

Binary tree

c)

Binary digit

d)

Bivariate theory

59.

What is the order of precedence in python?

a)

Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b)

Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c)

Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d)

Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

60.

What is the output of the program?

a)

Hello,

World!

b)

Hello, World!

c)

Hello

d)

Compile error