NEW
Font size
Worksheetscoders club quiz
Total questions: 33
Worksheet time: 22mins
Come back to me
Come back to me
for loops
return statement
Conditional statements
loop over flow
LOVE ME LIKE U DO,
LOVE ME LIKE U DO,
LOVE ME LIKE U DO
MAIN()
FOR LOOP
FUNCTIONS
SWITCH STATEMENTS
Ye muddu ye movidannadi
ye poddo rasunnadi
WHILE LOOP
if STATEMENTS
DO-WHILE LOOP
START()
kallu Kallu plus, vallu villu minus
return statement
Arithmetic operaters
loops
float
Sun Saathiya Maahiya
Barsa De Ishqa Di Syaahiyaan
free()
get()
scanf()
printf()
Ringa Ringa Ringa Ringa
Ringa Ringa Ringa Ringa Reeee
min heap
max heap
double linked list
Circular linked list
Aa door number okati dashu
Yabai-aaru adda geetha
Sunna rendu silku nagar moodo line
pointer
printf()
integer
float
It's me, hi,
I'm the problem,
it's me
Error
syntax
;
none of the above
Oops, I did it again, I played with your heart
error
switch cases
Functions
Recursion
Arey Padithe Line Lo Padathadi
Lekapothe Thidathadi
pass( )
Continue statement
if statement
switch statement
"AGE"
string
integer
float
double
for(i = 1; i <= 5; i++) {
printf("⭐");
}
⭐
⭐⭐
⭐⭐⭐⭐
⭐⭐⭐⭐⭐
How can I display a message on the screen using C?
printf()
scanf()
get()
puts()
Which concept is most suitable for the image above?
tuple
List
Dictionary
Queue
Who is the person shown in the image?
C – Dennis Ritchie
Python – Guido van Rossum
Java – James Gosling
R – Ross Ihaka & Robert Gentleman
Which concept is most suitable for the image above?
Set
List
Dictionary
Queue
Who is the person shown in the image
C – Dennis Ritchie
Python – Guido van Rossum
Java – James Gosling
R – Ross Ihaka & Robert Gentleman
Which of the following is the correct syntax to declare a pointer in C?
ptr int*;
*int ptr;
int *ptr;
int ptr*;
Output: 0 1 4 9 16
Which code produces this output?
for(int i=0;i<5;i++){
printf("%d ", i*i);
}
for(int i=1;i<=5;i++) {
printf("%d ", i*i);
}
for(int i=0;i<5;i++){
printf("%d ", i+i);
}
for(int i=1;i<=5;i++){
printf("%d ", i+i);
}
Output: 1 8 27 64 125
Which code produces this output?
for(int i=1;i<=5;i++){
printf("%d ", i*i*i);
}
for(int i=0;i<5;i++) {
printf("%d ", i*i*i);
}
for(int i=1;i<=5;i++){
printf("%d ", i*i);
}
for(int i=1;i<=5;i++) {
printf("%d ", i+i+i);
}
Output: 0 1 1 2 3 5 8
Which code produces this output?
int a=0,b=1,c,i;
printf("%d %d ", a,b);
for(i=2;i<7;i++){
c=a+b;
printf("%d ", c);
a=b;
b=c;
}
int a=1,b=1,c;
printf("%d %d ", a,b);
for(int i=3;i<=7;i++){
c=a+b;
printf("%d ", c);
a=b;
b=c;
}
for(int i=0;i<7;i++){
printf("%d ", i);
}
for(int i=1;i<=7;i++){
printf("%d ", i*i);
}
Hello
Hello
Hello
Hello
Hello
for(int i=1;i<=5;i++){
printf("Hello\n");
}
for(int i=0;i<5;i++){
printf("Hello");
}
for(int i=1;i<=5;i++){
printf("Hello ");
}
for(int i=1;i<=5;i++){
printf("Hi\n");
}
Output: 0 1 2 3 4 5 6 7 8 9
Which code produces this output?
for(int i=0;i<10;i++){
printf("%d ", i);
}
for(int i=1;i<=10;i++){
printf("%d ", i);
}
for(int i=0;i<=9;i++){
printf("%d ", i*i);
}
for(int i=1;i<=9;i++){
printf("%d ", i);
}
A baker in C wants to know how many full groups of 3 cupcakes he can make from 7 cupcakes.
What will this code print?
2.33
2
3
an error will occur
You have a list of race car drivers: drivers = ["Hamilton", "Verstappen", "Norris"]. How would you get the name of the driver who finished in second place ("Verstappen")?
drivers[0]
drivers[1]
drivers[2]
drivers.get(2)
A new Java programmer writes the following line of code to store their age, but it causes an error. What's missing?
age = 25;
A semicolon at the end.
The data type declaration
Quotation marks around 25.
The 'var' keyword.
What is the crucial difference between the = symbol and the == symbol in C?
= is for comparison and == is for assignment.
There is no difference; they can be used interchangeably.
= is for numbers and == is for strings.
= is for assignment and == is for comparison.
A programmer writes a simple if statement, but it keeps giving them an "IndentationError". Why?
weather = "sunny"
if weather == "sunny":
print("Wear sunglasses!")
The print statement is not indented.
Python requires curly braces {} around the if block.
The condition needs to be in parentheses.
A semicolon is missing at the end of the print line.
What is the full, complete command to print the message "Hello, Java!" followed by a new line?
System.out.print("Hello, Java!");
Console.WriteLine("Hello, Java!");
print("Hello, Java!");
System.out.println("Hello, Java!");
How do you write a quick, single-line note (a comment) in C, Python, and Java, respectively?
C: /*, Python: #, Java: //
C: //, Python: #, Java: //
C: #, Python: //, Java: //
C: //, Python: //, Java: #
You have two strings, part1 = "Hello" and part2 = "World". How can you join them together to get the string "HelloWorld"?
part1 & part2
part1.join(part2)
part1 + part2
concat(part1, part2)
Using the analogy of baking cookies, what is the difference between a Class and an Object in Java?
A Class is the cookie, and an Object is the cookie cutter.
A Class and an Object are the same thing.
A Class is a function, and an Object is a variable.
A Class is the cookie cutter, and an Object is the actual cookie.
You want to read a number that a user types into your C program. Which function is commonly used for this, and which special symbol is required before the variable name?
The function is printf(), and you need the * symbol.
The function is gets(), and you don't need a symbol.
The function is scanf(), and you need the & symbol.
The function is cin(), and you need the >> symbol.
