1. Which of the following is not a valid C variable name?
PSC ALM QUIZ

Quiz
•
Computers
•
University
•
Medium
Starlin Jenila
Used 3+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a) int number;
b) float rate;
c) int variable_count;
d) int $main;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. All keywords in C are in ____________
a) LowerCase letters
b) UpperCase letters
c) CamelCase letters
d) None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. What will be the output of the following code snippet?
#include <stdio.h>
int main()
{
int a = 3, b = 5;
int t = a;
a = b;
b = t;
printf("%d %d", a, b);
return 0;
}
3 5
5 5
3 3
5 3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. How is an array initialized in C language?
int a[3] = {1, 2, 3};
int a = {1, 2, 3};
int a[] = new int[3]
int a(3) = [1, 2, 3];
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. What is the output of the following code snippet?
#include <stdio.h>
int main()
{
int a[] = {1, 2, 3, 4};
int sum = 0;
for(int i = 0; i < 4; i++)
{
sum += a[i];
}
printf("%d", sum);
return 0;
}
1
4
20
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What is the output of the following code snippet?
int main()
{
int sum = 2 + 4 / 2 + 6 * 2;
printf("%d", sum);
return 0;
}
2
15
16
18
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. How are String represented in memory in C?
An array of characters.
The object of some class.
Same as other primitive data types.
LinkedList of characters.
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
C programming

Quiz
•
University
16 questions
C-Extended

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
20 questions
C - Structures

Quiz
•
University
20 questions
Pointers

Quiz
•
University
20 questions
Programming in C(1)

Quiz
•
University
20 questions
BS TEST2

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

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