0% found this document useful (0 votes)
225 views2 pages

Itp Important Questions Unit-Iii

ITP important questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
225 views2 pages

Itp Important Questions Unit-Iii

ITP important questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ASSIGNMENT TEST-III

Subject with code: Introduction to Programming Year/Semester: I/I

A.Y: 2024-25 Branch: ALL

Important Questions
1. Illustrate the string operations: i) Copying the string ii) Reversing the string iii) Finding the string length
2. Define a string and Develop a program to check whether the given string is palindrome or not
3. Explain Pointer Arithmetic with suitable example.
4. Explain the pointers to pointers with an example
5. Define Structure? Explain how to declare a structure, accessing structure members with an example
6. Define a Union and List the difference between structures and unions.

Multiple Choice Questions


1) Which function will you choose to join two words?
a) strcpy() b) strcat() c) strncon() d) memcon()

2) What will strcmp() function do?


a) compares the first n characters of the object b) compares the string

c) undefined function d) copies the string

3) The ______ function appends not more than n characters.


a) strcat() b) strcon() c) strncat() d) memcat()

4) In C, what is a pointer primarily used for?

a)Decision making b)Code organization c)Variable declaration d)Storing values

5) In C, how do you declare a pointer variable that can store the address of an integer?

a)int *ptr b)ptr int c)int ptr d)ptr *int

6) In C, what is the value of a pointer variable if it hasn’t been assigned any address?

a)0 b)Null c)Undefined d)1

7) In C, what is the purpose of the ‘void’ pointer type (void*)?

a)To store any data type’s address b)To declare a pointer as unintialized

c)To make a pointer point to null d)To create a generic function


8) What is the keyword used to define a structure in C?

a)struct b)record c)class d)object

9) In a structure, what are the members also known as?

a)Variables b)Properties c)Objects d)Elements

10) How do you access a member of a structure in C?

a).(dot) b) -> (arrow) c) :: (scope) d) ,(comma)

You might also like