Which of these collections defines a DICTIONARY?

Crash Your Code Round 1

Quiz
•
Computers
•
University
•
Hard
Manoj Kumar
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
{"apple", "banana", "cherry"}
["apple", "banana", "cherry"]
("apple", "banana", "cherry")
{"name": "apple", "color": "green"}
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the correct syntax to output the type of a variable or object in Python?
print(type(x)) Your answer
print(typeof(x))
print(typeof x)
print(typeOf(x))
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
The value of a string variable can be surrounded by single quotes.
False
True
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the correct way to create an object called myObj of MyClass?
new myObj = MyClass();
MyClass myObj = new MyClass();
class myObj = new MyClass();
class MyClass = new myObj();
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which method can be used to replace parts of a string?
replaceString()
switch()
replace()
repl()
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Assume that a character takes 1 byte. Output of following program?
#include<stdio.h>
int main()
{
char str[20] = "GeeksQuiz";
printf ("%d", sizeof(str));
return 0;
}
9
10
20
Garbage Value
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the use of "#pragma once"?
Used in a header file to avoid its inclusion more than once.
Used to avoid multiple declarations of same variable.
Used in a c file to include a header file at least once.
Used to avoid assertions
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
TIU Quiz-10

Quiz
•
University
10 questions
Pemrograman Berorientasi Objek

Quiz
•
10th Grade - University
10 questions
Unit 1 - Classes and Objects

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
10 questions
Introduction to Java

Quiz
•
University
20 questions
OOPs in Python

Quiz
•
University
20 questions
POO_BasicoyJava

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade