Paper Tayyari

Lecture 20: Structures

MCQs, short and long questions from lecture 20.Lecture 20 ki MCQs, short aur long sawal.

5 MCQs · 5 MCQs from past papers5 MCQs · 5 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/5
– correctsahi
1.
★ Final term 2017 (paper 3)

A structure brings together a group of ____.

  1. Asame data type
  2. Bdifferent data types
  3. Cconstants
  4. Dboth a, b

A structure is used to group related variables that can be of different data types.

2.
★ Final term solved MCQs (Moaaz & Asad)

To access the data members of structure _______ is used.

  1. Adot operator (.)
  2. B* operator
  3. CU operator
  4. DNone of given.

Structure members are accessed with the dot operator.

3.
★ Final term solved MCQs (Moaaz & Asad)

Dealing with structures and functions passing by reference is the most economical method

  1. ATrue
  2. BFalse

Passing a structure by reference avoids copying all of its members.

4.
★ Solved MCQs collection

A structure is a collection of _____________ under a single name.

  1. Avalues
  2. Bvariables
  3. Cdata
  4. DNone of the given

A structure groups related variables under one name.

5.
★ Solved MCQs collection

Most efficient method of dealing with structure variables is to define the structure globally

  1. ATrue
  2. BFalse

A globally defined structure type is visible to all functions that use it.