Crash Your Code Round 1

Crash Your Code Round 1

University

15 Qs

quiz-placeholder

Similar activities

CES JAVA

CES JAVA

University

20 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

OOPS quiz-1 PYTHON

OOPS quiz-1 PYTHON

University

19 Qs

แบบทดสอบการเขียนโปรแกรมคอมพิวเตอร์ ครั้งที่ 2

แบบทดสอบการเขียนโปรแกรมคอมพิวเตอร์ ครั้งที่ 2

University

20 Qs

JAVA FINAL QUIZ FOR ASSESSMENT

JAVA FINAL QUIZ FOR ASSESSMENT

University

15 Qs

JAVA UNIT 1 PART 2

JAVA UNIT 1 PART 2

University

15 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

Pemograman Berorientasi Objek (POB)

Pemograman Berorientasi Objek (POB)

University

20 Qs

Crash Your Code Round 1

Crash Your Code Round 1

Assessment

Quiz

Computers

University

Hard

Created by

Manoj Kumar

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of these collections defines a DICTIONARY?

{"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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?