
Crash Your Code Round 1

Quiz
•
Computers
•
University
•
Hard
Manoj Kumar
Used 9+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
C-Extended

Quiz
•
University
20 questions
DSA quiz

Quiz
•
University
15 questions
C Quiz 4_M

Quiz
•
University
10 questions
Structure in C

Quiz
•
University
20 questions
BGSCET - INFORMATION SCIENCE & ENGINEERING

Quiz
•
University
10 questions
Basics of C

Quiz
•
University
10 questions
C Programming Lab Quiz

Quiz
•
University
20 questions
C - Structures

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University