wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

TRICODE CHALLENGE ROUND 1

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.

1. Which language uses the following syntax for a function definition and call?

def greet(name):

print("Hello, " + name + "!")

greet("John")

a)

C

b)

PYTHON

c)

JAVA

d)

NONE OF THESE

2.

Is Python code compiled or interpreted?

a)

a) Python code is both compiled and interpreted

b)

b) Python code is neither compiled nor interpreted

c)

c) Python code is only compiled

d)

d) Python code is only interpreted

3.

Which of the following is not an OOPS concept in Java?

a)

a) Polymorphism

b)

b) Inheritance

c)

c) Compilation

d)

d) Encapsulation

4.

Which is a python package used for 2D graphics?

a)

Matplotlib.pyplot

b)


Matplotlib.pip

c)

Matplotlib.numpy

d)

Matplotlib.plt

5.

What will be the value of the following Python expression?

4+3% 5

a)

7

b)

 2

c)

4

d)

1

6.

Which tag creates the largest heading in HTML?

a)

<h6>

b)

<h1>

c)

<header>

d)

<head>

7.

How is a comment inserted in an HTML document?

a)


<!-- comment -->

b)


// comment //

c)

/* comment */

d)

# comment

8.

In a conditional statement to determine if the sum of x and y is equal to z, then a = x+y, what is the actual condition in C++?

a)


If(sum=z) { a=x+y; }

b)

Sum = z

c)

If (x+y=z)

d)

X+y=z

9.

Which of the following functions can help us to find the version of python that we are currently working on?

a)

sys.version(1)

b)

sys.version

c)

sys.version()

d)

sys.version(0)

10.

What is the valid C programming language identifier in the following ?

a)

1fdasgf

b)


Fahs%*

c)


Q1234

d)

NONE OF THESE

11.

Which of these packages contains the exception Stack Overflow in Java?

b)

java.system

c)

java.lang

d)

java.util

12.

What is the extension of compiled java classes?

a)

.txt

b)

.js

c)

.class

d)

.java

13.

Which component is used to compile, debug and execute the java programs?

a)

JRE

b)

JIT

c)

JDK

d)

JVM

14.

Property which allows to produce different executable for different platforms in C is called?

a)


File inclusion

b)

Selective inclusion

c)

Conditional compilation

d)

Recursive macros

15.

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;