Data Structure Through C

Data Structure Through C

1st Grade

25 Qs

quiz-placeholder

Similar activities

PD 3.2

PD 3.2

1st Grade

20 Qs

5-mavzu. Mantiqiy operatorlar va ma’lumotlarni guruhlash

5-mavzu. Mantiqiy operatorlar va ma’lumotlarni guruhlash

1st Grade

20 Qs

Язык программирования Python

Язык программирования Python

1st - 10th Grade

20 Qs

quiz dasar python

quiz dasar python

1st Grade - University

20 Qs

Java Classes

Java Classes

1st - 5th Grade

20 Qs

Examen Teórico Curso Python Principiantes

Examen Teórico Curso Python Principiantes

1st Grade

20 Qs

Javascript

Javascript

1st - 5th Grade

25 Qs

AP CS Final Exam

AP CS Final Exam

KG - University

25 Qs

Data Structure Through C

Data Structure Through C

Assessment

Quiz

Computers

1st Grade

Hard

Created by

Harshit K

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an array in C?
A collection of variables of different data types.
A collection of variables of the same data type.
A collection of functions.
A collection of pointers.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How is an array indexed in C?
1 to n
0 to n-1
-1 to n-1
-1 to n

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the size of the array int arr[10]?
10 bytes
20 bytes
40 bytes
Depends on the compiler

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way to declare a function in C?
functionName();
returnType functionName(parameters);
returnType functionName;
functionName returnType(parameters);

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a pointer in C?
A variable that stores the address of another variable.
A variable that stores data.
A variable that points to a function.
A variable that stores a character.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the following statement declare: int *ptr;?
A pointer to an integer.
An integer variable.
A pointer to a character.
An array of integers.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you access the value pointed to by a pointer in C?
&ptr
*ptr
ptr
ptr*

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?