Which one is not a legal variable name ?

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
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 Quizizz
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
15 questions
Coding and Debugging

Quiz
•
University
15 questions
Common errors in C programming

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
20 questions
C - Strings

Quiz
•
University
20 questions
Programming in C(1)

Quiz
•
University
20 questions
BS TEST2

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