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
12 questions
C Basics

Quiz
•
University
15 questions
Common errors in C programming

Quiz
•
University
20 questions
EST102 : PROGRAMMING IN C TEST 1

Quiz
•
University
18 questions
C Language 101

Quiz
•
University
20 questions
C programming syntax quiz

Quiz
•
University
20 questions
C - Strings

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
15 questions
CIS1101-programming practice

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade