Reharshal For Coding

Reharshal For Coding

University

5 Qs

quiz-placeholder

Similar activities

CHAPTER 5 ONLINE QUIZ

CHAPTER 5 ONLINE QUIZ

University

9 Qs

Los periféricos del computador

Los periféricos del computador

1st Grade - Professional Development

9 Qs

Internet seguro

Internet seguro

8th Grade - University

10 Qs

Tema 5: Lenguaje audiovisual y los medios de comunicación

Tema 5: Lenguaje audiovisual y los medios de comunicación

University

10 Qs

Evaluación SENA

Evaluación SENA

University

10 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

Firewall e IDS - Segurança de Redes

Firewall e IDS - Segurança de Redes

University

10 Qs

PYTHON_CHAPTER 6

PYTHON_CHAPTER 6

University

10 Qs

Reharshal For Coding

Reharshal For Coding

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

BENDI MANIDEEP

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

1) What is the range of values that can be stored by int datatype in C?

-(2^31) to (2^31) - 1

-256 to 255

-(2^63) to (2^63)-1

O to (2^31) - 1

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

2) 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];

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

3) 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

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

4) 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.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

5) How is the 3rd element in an array accessed based on pointer notation?

*a +3

*(a + 3)

**(a + 3)

&(a + 3)

Access all questions and much more by creating a free account

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

Already have an account?