PSC ALM QUIZ

PSC ALM QUIZ

University

16 Qs

quiz-placeholder

Similar activities

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

Round 1 ( RHA Learner Contest )

Round 1 ( RHA Learner Contest )

University

20 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Python MCQ

Python MCQ

University

20 Qs

Network topologies

Network topologies

8th Grade - University

20 Qs

PSC ALM QUIZ

PSC ALM QUIZ

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Starlin Jenila

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 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

  1. 3. What will be the output of the following code snippet?

  2. #include <stdio.h>

  3. int main()

  4. {

  5. int a = 3, b = 5;

  6. int t = a;

  7. a = b;

  8. b = t;

  9. printf("%d %d", a, b);

  10. return 0;

  11. }

3 5

5 5

3 3

5 3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 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

  1. 5. What is the output of the following code snippet?

  2. #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

  1. 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

  1. 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?