NEW
Font size
WorksheetsCODING COMPITITION LEVEL-I
Total questions: 50
Worksheet time: 21mins
The correct sequence of HTML tags for starting a webpage is -
Head, Title, HTML, body
HTML, Body, Title, Head
HTML, Head, Title, Body
HTML, Head, Title, Body
Which of the following tag is used for inserting the largest heading in HTML?
<h3>
<h1>
<h5>
<h6>
Which character is used to represent the closing of a tag in HTML?
\
!
/
.
Output of 33 == 33.0
False
True
33
None of the above
Which of the following is the container for <tr>, <th>, and <td> ?
<data>
<table>
<group>
All of the above
HTML tags are enclosed in-
# and #
{ and }
! and ?
< and >
Which of the following is the correct extension of the python file?
.python
.pl
.py
.p
How we can swap two numbers a=10, b=20 in python without using third variable?
a=b b=a
a,b = b,a
both a and b
b=a a=b
select the option in below python code:
s=0
for d in range(0 ,5 , 0.1):
s+ = d
print(s)
Syntax error
Type error
Runtime error
Both b and c
Special symbol in python to add comments
$
//
/*.....*/
#
C Language is a successor to which language?
FORTRAN
D Language
BASIC
B Language
What is the way to suddenly come out of or Quit any Loop in C Language.?
continue; statement
break; statement
leave; statement
quit; statement
Identify wrong C Keywords list given below
auto, double, int, struct
break, else, long, switch
case, enum, register, typedef
char, extern, intern, return
Choose a right C Statement.
Loops or Repetition block executes a group of statements repeatedly.
Loop is usually executed as long as a condition is met.
Loops usually take advantage of Loop Counter
All the above.
Choose facts about continue; statement is C Language.
continue; is used to take the execution control to next iteration or sequence
continue; statement causes the statements below it to skip for execution
continue; is usually accompanied by IF statement.
All the above.
Which loop is faster in C Language?
for
while
do while
All work at same speed
C is a which level language?
Low Level
High Level
Middle Level
None
What are C ASCII character ranges.?
A to Z = 65 to 91
a to z = 97 to 122
0 to 9 = 48 to 57
All
The library function used to find the last occurrence of a character in a string is
strnstr()
laststr()
strrchr()
strstr()
The keyword used to transfer control from a function back to the calling function is
switch
goto
go back
return
If the two strings are identical, then strcmp() function returns
-1
1
0
2
Point out the error in the program
f(int a, int b){
int a;
a = 20;
return a;}
Missing parenthesis in return statement
The function should be defined as int f(int a, int b)
Redeclaration of a
None of above
To print out a and b given below, which of the following printf() statement will you use?
#include<stdio.h>
float a=3.14;
double b=3.14;
printf("%f %lf", a, b);
printf("%Lf %f", a, b);
printf("%Lf %Lf", a, b);
printf("%f %Lf", a, b);
The keyword used to transfer control from a function back to the calling function is
switch
goto
go back
return
What will be the output of the program?
#include<stdio.h>
void fun(int*, int*);
int main()
{
inti=5, j=2;
fun(&i, &j);
printf("%d, %d", i, j);
return0;
}
void fun(int i, int j)
{
i = i**i;
j = j**j;
}
5, 2
10, 4
2, 5
25, 4
How many times the program will print "GIETU" ?
#include<stdio.h>
int main()
{
printf("GIETU");
main();
return0;
}
Infinite times
32767 times
65535 times
Till stack overflows
Which of the following function is more appropriate for reading in a multi-word string?
printf();
scanf();
gets();
puts();
Which of the following are C preprocessors?
#ifdef
#define
#endif
all of the mentioned
finding and solving errors in the source code is
desk checking
debugging
decoding
testing
……language is not an object oriented programming language…
visual basic
c
c++
java
What is the name of the method used to start a thread execution?
init();
start();
run();
resume();
Which statement is true given the following in JAVA code?
double d = math.random();
0.0 < d <= 1.0
0.0 <= d < 1.0
Compilation fail
Cannot say.
A programming paradigm includes:
Problem solving
Program language design
Problem solving and program language design
None of the above
This paradigm tells how to do something rather than what to do:
object-oriented
procedural
scripting
functional
This paradigm is relatively simple:
object-oriented
scripting
procedural
functional
Scala is part of the: ____?
object-oriented
aspect-oriented
pascal
imperative
This type paradigm example includes both functional and logic programming:
Fortran
C
Pascal
SQL
This programming paradigm facilitates sharing across programs:
object-oriented
aspect-oriented
scripting
procedural
This paradigm should not be used by itself but with other paradigms:
object-oriented
aspect-oriented
scripting
functional
There are _____ compilation process stages in c language.
4
5
6
7
What difference does the 5th generation computer have from other generation computers?
Technological advancement
Scientific code
Object Oriented Programming
All of the above
The Programs which are as permanent as hardware and stored in ROM is known as
Hardware
Software
Firmware
ROMware
Which of the these is the functionality of ‘Encapsulation’?
Binds together code and data
Using single interface for general class of actions.
Reduce Complexity
All of the mentioned
Data types are differed on basis of
way of storage
type of operations
type of operators used
All of the mentioned
Which statement is used to select a default database?
USE
CREATE
DROP
SCHEMA
Which statement is used to see the definition for an existing database?
SHOW CREATE DATABASE
SHOW DATABASE
SHOW CREATE
SHOW CREATE DATABASE TABLE
The statement to change the table name is __________
CHANGE
CHANGENAME
CHANGENM
RENAME
which of the following function returns current date and time in mysql ?
CURDATE()
NOW()
CURTIME()
DATE()
Which of the following clauses is used to display information that match a given pattern in mysql?
LIKE
WHERE
IS
SAME
In the following SQL code, InnoDB is __________
CREATE TABLE student ( name CHAR(30), student_id INT, PRIMARY KEY (student_id) ) ENGINE = InnoDB;
database name
table name
reference engine
storage engine
