PSC ALM QUIZ
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Starlin Jenila
Used 4+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Which of the following is not a valid C variable name?
1. Which of the following is not a valid C variable name?
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. 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>
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?
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?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
LA7.C7: Turtle Graphics
Quiz
•
9th Grade - University
13 questions
Week 2 Before Class
Quiz
•
University
19 questions
DSA Quest 1.0
Quiz
•
University
16 questions
W6_BIS
Quiz
•
University
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
20 questions
C - Structures
Quiz
•
University
20 questions
DreamWeaver CS6
Quiz
•
University
13 questions
Chap 1: What is a program made of?
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
