
Coding Club_SNSCE Quiz (28-04-2023)
Authored by Kolaa Pravin
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following is a valid way to create an empty dictionary in Python?
d={}
d=new dict()
d=empty_dict()
d=dict()
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Output of the following code will be:
int main() {
int x = 5;
int y = x++;
printf("%d %d\n", x, y);
return 0; }
5 5
5 6
6 6
6 5
3.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Choose the different types of conditional statements.
If..then..else
If..then..elseif..else
if..then
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Is javascript object based or class based?
object based
class based
5.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
what is the value of j displayed ?
#include <stdio.h>
int i=9;
int j=0;
int main()
{
int i=10;
i++;
j=i;
printf("value of j is %d", j);
return 0;
}
9
10
11
0
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Give the output of the following code:
x = [1, 2, 3]
y = x
y.append(4)
print(x)
[1,2,3]
[1,2,3,4]
[1,2,4]
[1,2,3,[4]]
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which coding elements makes it easy to repeat steps over and over?
strings
variables
modules
loops
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?