What is the correct way to declare an integer pointer?

OODP FT1 Assessment Questions

Quiz
•
Computers
•
University
•
Hard
Krunal Randive
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
25 questions
Pointers in C

Quiz
•
University
25 questions
Neo Coding Round 1 Set 4

Quiz
•
University
25 questions
Compro. Final 1/64 part1

Quiz
•
University
25 questions
Compro. Final1/64 part2

Quiz
•
University
30 questions
C Language Quiz

Quiz
•
University
30 questions
FT1 Basics of C

Quiz
•
University
25 questions
GNIDOC ROUND 1

Quiz
•
University
25 questions
BASIC PROGRAMMING

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade