NEW
Font size
WorksheetsTRICODE CHALLENGE ROUND 1
Total questions: 15
Worksheet time: 5mins
1. Which language uses the following syntax for a function definition and call?
def greet(name):
print("Hello, " + name + "!")
greet("John")
C
PYTHON
JAVA
NONE OF THESE
Is Python code compiled or interpreted?
a) Python code is both compiled and interpreted
b) Python code is neither compiled nor interpreted
c) Python code is only compiled
d) Python code is only interpreted
Which of the following is not an OOPS concept in Java?
a) Polymorphism
b) Inheritance
c) Compilation
d) Encapsulation
Which is a python package used for 2D graphics?
Matplotlib.pyplot
Matplotlib.pip
Matplotlib.numpy
Matplotlib.plt
What will be the value of the following Python expression?
4+3% 5
7
2
4
1
Which tag creates the largest heading in HTML?
<h6>
<h1>
<header>
<head>
How is a comment inserted in an HTML document?
<!-- comment -->
// comment //
/* comment */
# comment
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++?
If(sum=z) { a=x+y; }
Sum = z
If (x+y=z)
X+y=z
Which of the following functions can help us to find the version of python that we are currently working on?
sys.version(1)
sys.version
sys.version()
sys.version(0)
What is the valid C programming language identifier in the following ?
1fdasgf
Fahs%*
Q1234
NONE OF THESE
Which of these packages contains the exception Stack Overflow in Java?
What is the extension of compiled java classes?
.txt
.js
.class
.java
Which component is used to compile, debug and execute the java programs?
JRE
JIT
JDK
JVM
Property which allows to produce different executable for different platforms in C is called?
File inclusion
Selective inclusion
Conditional compilation
Recursive macros
Which is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
