wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Brain Teaser L2

Total questions: 15

Worksheet time: 3mins

Name
Class
Date
1.
What is the term for a software program designed to protect a computer system from unauthorized access or malicious software?
a)
Firewall
b)
Anti virus
c)
Encryption
d)
VPN
2.
What will be the output of the following Python code snippet if x=1? x<<2
a)
4
b)
2
c)
1
d)
8
3.
Which programming language is commonly used for developing dynamic web pages?
a)
HTML
b)
CSS
c)
Javascript
d)
SQL
4.
Which of the following is true for variable names in Python?
a)
underscore and ampersand are the only two special characters allowed
b)
unlimited length
c)
all private members must have leading and trailing underscores
d)
none of the mentioned
5.
Python supports the creation of anonymous functions at runtime, using a construct called _________
a)
pi
b)
anonymous
c)
lambda
d)
none of the mentioned
6.
What will be the value of the following Python expression? 4 + 3 % 5
a)
4
b)
7
c)
2
d)
0
7.
What will be the output of the following Python code? i = 1 while True: if i%3 == 0: break print(i) i + = 1
a)
1 2 3
b)
error
c)
1 2
d)
none of the mentioned
8.
Which telecom company has become the first one in India to demonstrate the operation of the 5G network?
a)
Reliance jio
b)
airtel
c)
vi
d)
bsnl
9.
9. Which of the following do not use Artificial Intelligence?
a)
Google meet
b)
Google now
c)
Siri
d)
Google maps
10.
Which one of the following is an application of Stack Data Structure?
a)
Managing function calls
b)
The stock span problem
c)
Both a and b
d)
None of the above
11.
The ability to transmit signals in either direction, but in only one direction at a time is referred as ______transmission.
a)
half-duplex
b)
simplex
c)
dual-duplex
d)
full-duplex
12.
The two most common reasons to use inheritance are
a)
To promote code reuse
b)
To use abstraction
c)
To use interface
d)
To use polymorphism
13.
Consider the following schema − STUDENTS(student_code, first_name, last_name, email, phone_no, date_of_birth, honours_subject, percentage_of_marks); Which of the following query would display the distinct honours subjects in the STUDENTS table?
a)
select honours_subject from students;
b)
select distinct honours_subject from students;
c)
select all honours_subject from students;
d)
select * from students;
14.
What is the output? for(int i=1; i<15; i=i+3) { out.print(i); }
a)
15
b)
1471013
c)
undefined
d)
1369210
15.
What is the output? int k=3, tot=0; do{ tot=tot+k; k++; }while(k<11); System.out.print(tot);
a)
39
b)
52
c)
65
d)
13