OODP FT1 Assessment Questions

OODP FT1 Assessment Questions

University

30 Qs

quiz-placeholder

Similar activities

Array and Linked List ADT

Array and Linked List ADT

University

30 Qs

TARANG C-COLLEGIUM ROUND-2

TARANG C-COLLEGIUM ROUND-2

University

30 Qs

Basic programming

Basic programming

University

30 Qs

Code Chase Round-1

Code Chase Round-1

University

30 Qs

Compro. Final1/64 part2

Compro. Final1/64 part2

University

25 Qs

C Language Quiz

C Language Quiz

University

30 Qs

Quiz - I

Quiz - I

University - Professional Development

25 Qs

Compro. Final 1/64 part1

Compro. Final 1/64 part1

University

25 Qs

OODP FT1 Assessment Questions

OODP FT1 Assessment Questions

Assessment

Quiz

Computers

University

Hard

Created by

Krunal Randive

Used 1+ times

FREE Resource

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

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?