Revision 2 MCA

Revision 2 MCA

University

13 Qs

quiz-placeholder

Similar activities

ECE431 - Pointer & Reference

ECE431 - Pointer & Reference

University

16 Qs

Pre-Test on List Data Structure | DSA

Pre-Test on List Data Structure | DSA

University

8 Qs

Plot the Code

Plot the Code

University

10 Qs

Linked List

Linked List

University

14 Qs

Data Structure

Data Structure

12th Grade - University

15 Qs

TECHNICAL C POINTER JIT04

TECHNICAL C POINTER JIT04

University

8 Qs

pointers and structures

pointers and structures

University

10 Qs

Pointer Basic in C/C++

Pointer Basic in C/C++

University

10 Qs

Revision 2 MCA

Revision 2 MCA

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a pointer variable store?

Both the value and address of the variable it points to

The value of the variable it points to

Holds a character

The address of the variable it points to

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a two-dimensional matrix declaration, the first subscript specifies the number of______________.

Column

Rows

Diagonal

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The dereference operator is also referred to as ___________________________.

indirection operator

Logical operator

relational operator

Reference operator

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the storage class used for a global variable in C?

register

Auto

static

extern

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for declaring an array of size 10 in C?

int arr[10];

array int arr[10];

int[10] arr;

int arr{}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to access a structure member through a pointer?

ptr.member_name

*ptr.member_name

ptr[member_name]

ptr->member_name

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents a collection of different data types?

char

string

structure

array

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?