Search Header Logo

Revision 2 MCA

Authored by Abhishek Pandey

Computers

University

Used 3+ times

Revision 2 MCA
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?