Crash Your Code Round 1

Crash Your Code Round 1

University

15 Qs

quiz-placeholder

Similar activities

Javascript

Javascript

University

12 Qs

data structures1

data structures1

University

20 Qs

Repaso F1007B (Bloque 3)

Repaso F1007B (Bloque 3)

University

10 Qs

Pre-Test Pertemuan 5

Pre-Test Pertemuan 5

1st Grade - University

15 Qs

Programación II Parte 5

Programación II Parte 5

University

10 Qs

Hiểu biết về máy tính

Hiểu biết về máy tính

University

15 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

SOII. Gestión ficheros y práctica

SOII. Gestión ficheros y práctica

University

10 Qs

Crash Your Code Round 1

Crash Your Code Round 1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Manoj Kumar

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which one is not a legal variable name ?

My_var

myvar

_myvar

my-var

2.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of these collections defines a TUPLE ?

{'apple','banana','cherry'}

('apple','banana','cherry')

['apple','banana','cherry']

('apple';'banana','cherry')

3.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

#include <stdio.h>

// Assume base address of "GokulQuiz" to be 1000

int main()

{

printf(5 + "GokulQuiz");

return 0;

}

GokulQuiz

Quiz

1005

Compile-time error

4.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What is a correct syntax to return the first character in a string?

x = "Hello"[0]   

x = "Hello".sub(0, 1)

x = sub("Hello", 0, 1)

None of these

5.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

#include <stdio.h>

int main()

{

int x, y = 5, z = 5;

x = y == z;

printf("%d", x);

getchar();

return 0;

}

0

1

5

Compiler Error

6.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

#include <stdio.h>

int main()

{

int i = 3;

printf("%d", (++i)++);

return 0;

}

What is the output of the above program?

3

4

5

Compile-time error

7.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

#include <stdio.h>

#if X == 3

#define Y 3

#else

#define Y 5

#endif

int main()

{

printf("%d", Y);

return 0;

}

What is the output of the above program?

3

5

3 or 5 depending on value of X

Compile time error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers