Which one is correct declaration of a variable-

C Basics 2

Quiz
•
Information Technology (IT)
•
University
•
Medium
Ashish Kumar
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int number1;
int number 1;
int number1 number 2;
int 123;
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Number of keywords in C are?
30
32
31
33
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one is right-
int a = 10, b =5;
int a = b;
int a; b;
int a, a;
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
which one is correct?
int a, b;
scanf("%d,%d",&a,&b);
int a, b;
scanf("%d%d",a,b);
int a, b;
scanf("%d%d",&a, &b);
int a, b;
scanf("Enter numbers %d %d", &a, &b);
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Is both the statements are equivalent?
int a = 10, b = 20;
and
int b = 20, a = 10;
Yes
No
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the following statement correct?
int a = b = c = 20;
Yes
No
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Is the following statement correct?
int a, b, c;
a = b = c = 20;
Yes
No
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
C-Volution (Hard)

Quiz
•
University
10 questions
Quiz CG - Code V2

Quiz
•
University
14 questions
ORM - Django

Quiz
•
University
10 questions
Teste de revisão - Liguagem C

Quiz
•
University
13 questions
Session 15 + 16 : Function

Quiz
•
University
12 questions
Aula07 - Matrizes

Quiz
•
University
15 questions
Eval. 3B Bloque 1

Quiz
•
9th Grade - University
10 questions
Code Twisters Round 1 Demo

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