NEW
Font size
WorksheetsSKILL QUIZ
Total questions: 50
Worksheet time: 50mins
What is the output of the following math function
import math
print(math.ceil(252.4))
print(math.floor(252.4))
252
252
252
253
253
252
What is the output of the add() function call
def add(a, b):
return a+5, b+5
result = add(3, 2)
print(result)15
8
(8, 7)
Syntax Error
What is the output of the following list function?
sampleList = [10, 20, 30, 40, 50]
sampleList.pop()
print(sampleList)
sampleList.pop(2)
print(sampleList)[20, 30, 40, 50]
[10, 20, 40]
[10, 20, 30, 40]
[10, 20, 30, 50]
[10, 20, 30, 40]
[10, 20, 40]
What is the output of the following print() function
print('%d %d %.2f' % (11, '22', 11.22))
11 22 11.22
TypeError
11 ’22’ 11.22
What is the output of the following range() function
for num in range(2,-5,-1):
print(num, end=", ")2, 1, 0
2, 1, 0, -1, -2, -3, -4, -5
2, 1, 0, -1, -2, -3, -4
What is the output of the following
sampleDict = dict([
('first', 1),
('second', 2),
('third', 3)])
print(sampleDict)[ (‘first’, 100), (‘second’, 200), (‘third’, 300) ]
Options: SyntaxError: invalid syntax
{‘first’: 1, ‘second’: 2, ‘third’: 3}
Which method is used to read file line by line
read(1)
readlines(1)
readline()
line()
Choose the correct way to access value 20 from the following tuple
aTuple = ("Orange", [10, 20, 30], (5, 15, 25))aTuple[1:2][1]
aTuple[1:2](1)
aTuple[1:2][1]
aTuple[1][1]
What is the output of the following set operation
set1 = {"Yellow", "Orange", "Black"}
set2 = {"Orange", "Blue", "Pink"}
set3 = set2.difference(set1)
print(set3){‘Yellow’, ”Black’, ‘Pink’, ‘Blue’}
{‘Pink’, ‘Blue’}
{‘Yellow’, ”Black’}
What is the output of the below code?
class Square:
def __init__(self, side):
self.side = side
self.area = side*side
s1 = Square(Square(Square(2).side).area)
print(s1.area)
syntaxError
TypeError
4
16
How can you open a link in a new tab/browser window?
<a href="url" target="new">
<a href="url" target="_blank">
<a href="url" new>
What is the correct HTML for making a drop-down list?
<list>
<input type="dropdown">
<input type="list">
<select>
The HTML <canvas> element is used to:
manipulate data in MySQL
draw graphics
create draggable elements
display database records
Who is making the Web standards?
Microsoft
Mozilla
The World Wide Web Consortium
Choose the correct HTML element for the largest heading:
<heading>
<h6>
<h1>
<head>
Who is the father of HTML?
Rasmus Lerdorf
Tim Berners-Lee
Brendan Eich
Sergey Brin
Which tag is used to create a numbered list in HTML?
<ol>
<ul>
<li>
<ll>
Which of the following is used to read an HTML page and render it?
Web server
Web network
Web browser
Web matrix
In which part of the HTML metadata is contained?
head tag
title tag
html tag
body tag
Which element is used to get highlighted text in HTML5?
<u>
<mark>
<highlight>
<b>
In Operating Systems, which of the following is/are CPU scheduling algorithms?
Priority
Round Robin
Shortest Job First
All of the mentioned
To access the services of the operating system, the interface is provided by the ___________
Library
System calls
Assembly instructions
API
Which of the following is not an operating system?
Windows
Linux
Oracle
DOS
Who among the following can block the running process?
Fork
Read
Down
All of these
What is the maximum length of the filename in DOS?
4
5
8
12
Java is short for "JavaScript".
False
True
Which operator is used to add together two values?
The & sign
The * sign
The + sign
To declare an array in Java, define the variable type with:
{ }
( )
[ ]
What is the correct way to create an object called myObj of MyClass?
class MyClass = new myObj();
MyClass myObj = new MyClass();
class myObj = new MyClass();
new myObj = MyClass();
Which keyword is used to return a value inside a method?
void
break
return
get
The C-preprocessors are specified with _________ symbol.
#
$
” ”
&
In C language, FILE is of which data type?
int
char *
struct
None of the mentioned
What will be the output of the following C code?
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
In which of the following formats data is stored in the database management system?
Image
Text
Table
Graph
Who created the first DBMS?
Edgar Frank Codd
Charles Bachman
Charles Babbage
Sharon B. Codd
Which of the following sequences are unaccepted in C language?
#if
#else
#endif #if
#elif
#endif#if
#if
#endif#if
#undef
#endifWhat will be the data type returned for the following C function?
#include <stdio.h>int func()
{
return (double)(char)5.0;
}
char
int
double
multiple type-casting in return is illegal
Which of the following cannot be a variable name in C?
volatile
true
friend
export
All keywords in C are in ____________
LowerCase letters
UpperCase letters
CamelCase letters
None of the mentioned
Which keyword is used to prevent any changes in the variable within a C program?
immutable
mutable
const
volatile
Which of the following is a function of the DBMS?
Storing data
Providing multi-users access control
Data Integrity
All of the above
What is information about data called?
Hyper data
Tera data
Meta data
Relations
Which of the following is not a type of database?
Hierarchical
Network
Distributed
Decentralized
What are the elements present in the array of the following C code?
int array[5] = {5};
5, 5, 5, 5, 55, 0, 0, 0, 05, (garbage), (garbage), (garbage), (garbage)(garbage), (garbage), (garbage), (garbage), 5Why the following statement is erroneous?
Dept_id should not be used in group by clause
Group by clause is not valid in this query
Avg(salary) should not be selected
None
_________________ operations do not preserve non-matched tuples.
Left outer join
Inner join
Natural join
Right outer join
______________ is a set of one or more attributes taken collectively to uniquely identify a record.
Primary Key
Foreign key
Super key
Candidate key
What does an RDBMS consist of?
Collection of Records
Collection of Keys
Collection of Tables
Collection of Fields
What will be the final value of x in the following C code?
3.75
Depends on compiler
24
3
What is the function of the following command?
Delete from r where P;Clears entries from relation
Deletes relation
Deletes particular tuple from relation
All of the mentioned
