0% found this document useful (0 votes)
20 views4 pages

Pps Quiz 2022

Uploaded by

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

Pps Quiz 2022

Uploaded by

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

Which operator connects the

structure name to its member


name?
a) –
b) <-
c) .
d) Both <- and .
Which operator connects the
structure name to its member
name?
a) –
b) <-
c) .
d) Both <- and .
Which operator connects the
structure name to its member
name?
a) –
b) <-
c) .
d) Both <- and .

1. Applications of multidimensional array are


Matrix-Multiplication
Minimum Spanning Tree
Finding connectivity between nodes

2. Comment on the following statement


int (*a)[7];
A) An array “a” of pointers.
B) A pointer “a” to an array.
C) A ragged array.
D) None of the mentioned

3. Choose the correct statements


A) Array stores data of the same type
B) Array can be a part of a structure
C) Array of structure is allowed
D) All of the mentioned

4. Who is the father of C language?


a) Steve Jobs b) James Gosling c) Dennis Ritchie d) Rasmus Lerdorf

5 . All keywords in C are in ____________


a) LowerCase letters
b) UpperCase letters
c) CamelCase letters
d) None of the mentioned

6. Which is valid C expression?


a) int my_num = 100,000; b) int my_num = 100000;
c) int my num = 1000; d) int $my_num = 10000;

7 . What is an example of iteration in C?


a) for b) while c) do-while d) all of the mentioned

8. What is #include <stdio.h>?


a) Preprocessor directive b) Inclusion directive
c) File inclusion directive d) None of the mentioned

9. How many number of pointer (*) does C have against a pointer variable declaration?
a) 7 b) 127 c) 255 d) No limits

10. What is the sizeof(char) in a 32-bit C compiler?


a) 1 bit b) 2 bits c) 1 Byte d) 2 Bytes

11. How is an array initialized in C language?


a)int a[3] = {1, 2, 3}; b)int a = {1, 2, 3};
c)int a[] = new int[3] d)int a(3) = [1, 2, 3];

12 What is the disadvantage of arrays in C?


a)The amount of memory to be allocated should be known beforehand.

b)Elements of an array can be accessed in constant time.


c)Elements are stored in contiguous memory blocks.

13. What is the size of the int data type (in bytes) in C? [
]
a) 4 b)8 c)2 d)1

14. Which of the following is not a valid C variable name?


a) int number; b) float rate;
c) int variable_count; d) int $main

15. The C-preprocessors are specified with _________ symbol. [ ]


a) # b) $ c) ” ” d) &
16. Which of the following cannot be a variable name in C? [ ]
a) volatile b) true c) friend d) export

17. scanf() is a predefined function in______header file.


a) stdlib. h
b) ctype. h
c) stdio. h
d) stdarg. H

18. How are String represented in memory in C?


a)An array of characters.
b)The object of some class.
c)Same as other primitive data types.
d)LinkedList of characters.

19. What is the similarity between a structure, union and enumeration?


A. All of them let you define new values

B. All of them let you define new data types

C. All of them let you define new pointers

D. All of them let you define new structure

20.Is there any difference between the two statements?


char *ch = "IndiaBIX";
char ch[] = "IndiaBIX";
A. Yes

No
B.

1. Time complexity refers to the execution time of an algorithm.


2. Recursion is sometimes called as circular definition
3. How many number of pointer (*) does C have against a pointer
variable declaration
NO LIMIT

4. .(dot) operator connects the structure name to its member name


5. Function cannot be a structure member
6. Return statement returns the control back to calling function.
7. Structures are themselves a collection of different data types
8. User-defined data type can be derived by Struct,Enum,Typedef
9. Return NULL statement returns NULL value
10. The floor() function is used to return the largest integer value
less than or equal to a number.
11. If a two dimensional array is used as a formal parameter, then
the first (row) subscript may be left empty
12. Puts/fputs functions are known as string to line output
function.
13. A function can called with its name and list of parameters
with in a parenthesis
14. Strcpy() function is used to copy the sourse string to target
string.
15. Typedef defines the synonyms to the data type names.
16. Recursion function are also known as self referential function
17. Predefined function does not need to be declared.
25. If the two strings are identical, then strcmp() function returns 0
26. gets() function is more appropriate for reading in a multi-word string
27. an array is a group of elements consisting of similar type of data
28. A pointer is___________________.

1. Applications of
multidimensional array are?
2. a) Matrix-Multiplication
3. b) Minimum Spanning Tree
4. c) Finding connectivity between
nodes

You might also like