Search Header Logo

OODP FT1 Assessment Questions

Authored by Krunal Randive

Computers

University

Used 1+ times

OODP FT1 Assessment Questions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare an integer pointer?

int ptr;

int *ptr;

ptr *int;

int &ptr;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a function pointer?

To store the return value of a function.

To pass a function as an argument to another function.

To create a new function dynamically.

To call a function from a different file.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Purpose of typedef keyword is---------

To define a constant.

To create an alias for an existing data type.

To declare a function.

To include a header file.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is valid for the switch construct?

break is required for the default block

Cases must be in ascending order

All cases must end with a semicolon

case values must be constant

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to compare string contents in C?

==

strcmp()

=

equals()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After calling free(ptr), what value does ptr hold?

NULL

Garbage value

The original address (dangling pointer)

Zero

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid printf format specifier?

%zu

%lld

%p

%n

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?