Blackberry-Native SDK Development MCQs

Blackberry-Native SDK Development MCQs

These Blackberry-Native SDK Development multiple-choice questions and their answers will help you strengthen your grip on the subject of Blackberry-Native SDK Development. You can prepare for an upcoming exam or job interview with these 90 Blackberry-Native SDK Development MCQs.
So scroll down and start answering.

1: In what situation would you need to have a debug token installed for you to be able to load debug applications?

A.   To run or debug unassigned applications

B.   Both of these

C.   Neither of these

D.   Installing release builds

2: Consider the following in C++: namespace myNamespace { int a; int b; } How would the main part of the program access myNamespace variable a?

A.   myNamespace.a

B.   myNamespace::a

C.   myNamespace:a

D.   a

3: Which of the following can QML access from C++?

A.   Only signals and properties

B.   Functions, slots, signals and properties

C.   Only slots and signals

D.   Only functions and slots

4: When adding multiple comments, what must be at the beginning and end of the line?

A.   “ at the beginning, and “ at the end.

B.   */ at the beginning, and /* at the end.

C.   /* at the beginning, and */ at the end.

D.   || at the beginning, and || at the end.

5: Which of the following is a property that is relative to another property?

A.   color: "yellow"

B.   width: 300

C.   width: parent.width - 50

D.   height: 300

6: Which of the following operators allow you to define the member functions of a class outside the class in C++?

A.   %

B.   ::

C.   ,

D.   ?

7: Which of the following is NOT a component of the Qt toolkit?

A.   Qt Core

B.   Qt Media module

C.   All of these are part of the toolkit

D.   Qt Network module

8: How many slots can a signal be connected to?

A.   There is no limit

B.   1

C.   3

D.   5

9: When one class is derived from another in C++, what is inherited from the base class?

A.   The Destructor

B.   All of these

C.   The Friends

D.   The Constructor

10: Which of the following is an example of an AbstractPane

A.   TabbedPane

B.   NavigationPane

C.   All of these are examples of an AbstractPane

D.   Page

11: Why is it important to use comment marks within QML syntax?

A.   Comment marks tell the compiler to stop processing data.

B.   Comment marks tell the compiler to add the comments into the compiling of the program.

C.   Comments must be marked appropriately so the compiler can tell the difference between your comments and your code.

D.   Comment marks tell the compiler to stop processing data and start at the beginning.

12: Is it possible to write an app entirely in QML as opposed to C++?

A.   No. All apps must be written in C++.

B.   No.

C.   No, all apps must be written in QML.

D.   Yes, though there is some inherent C++ code that is provided when creating a new Cascades project in the Momentics IDE.

13: True or False? You can only debug on a simulator.

A.   False

B.   TRUE

14: What static function do you use to connect a signal to a slot with C++?

A.   Qbject::connecter()”

B.   QObject::connect()

C.   Qobject;:connect()}

D.   object;;connect()

15: What is Cascades?

A.   A portion of BlackBerry's Native SDK

B.   Slang for CSS

C.   A set of QML standards

D.   APIs that BlackBerry provides to help developers produce functional UIs out of the box

16: Which of the following is not a correctly written id value?

A.   text1

B.   ID:_1

C.   idvalue_1

D.   id_1

17: When a CheckBox control's check state signal changes, what signal does it emit?

A.   “(checkedChanged)”

B.   Changed()checked

C.   'checkChanged()'

D.   checkedChanged()

18: True or False? An AutoConnection will automatically detect if the slot is in an object on another thread and make the queued connection.

A.   True

B.   FALSE

19: What is one way that properties are specified?

A.   One-per-page.

B.   Two-per-line.

C.   One-per-unit.

D.   One-per-line.

20: What is the syntax for signal declaration?

A.   (QString text)Q_SIGNALS: void textChanged;

B.   Q_SIGNALS: void (QString text)textChanged;

C.   void: textChanged(QString text); Q_SIGNALS

D.   Q_SIGNALS: void textChanged(QString text);

21: Select the correct statement about the Model and the View features.

A.   The View holds the raw data and does not worry about the display, whereas the Model is responsible for rendering the data on the display

B.   Neither the View and the Model are responsible for rendering the data on the display

C.   The Model holds the raw data and does not worry about the display, whereas the View is responsible for rendering the data on the display

D.   Both the View and the Model are responsible for rendering the data on the display

22: When a property is set to relative, what happens to the child object value when the parent value is changed?

A.   Nothing happens.

B.   It is deleted.

C.   The child object generates more child objects.

D.   It is updated automatically.

23: What does ComponentDefinition represent?

A.   A unique way to invoke rootContainer.

B.   A unique way to use ControlDelegate to load QML.

C.   An imperative way to create dynamic components in QML.

D.   A method for placing calls within a single container.

24: Which C++ statement assigns to variable a the address of variable b?

A.   a = *b;

B.   a = &b;

C.   a = "b;

D.   a = b;

25: In the Momentics IDE, what is the difference between a workspace and a perspective?

A.   A workspace is a collection of projects whereas a perspective is a layout of views in the IDE

B.   A perspective and a workspace refer to the same thing

C.   A perspective lives outside the IDE whereas a workspace lives inside an IDE

D.   A perspective is a collection of projects whereas a workspace is a layout of views in the IDE

26: Which of the following are property types that QML supports?

A.   ins, read, book, strap

B.   ing, read, boot, strong

C.   int, real, bool, string

D.   cos, real, sin, strung

27: When adding a comment, what must the line start with?

A.   //

B.   “

C.   ||

D.   \\

28: Which of the following are examples of UI controls?

A.   Page, Contractor, Button, List

B.   Port, Container, Button, Label

C.   Purge, Maintainer, Button, Label

D.   Page, Container, Button, Label

29: Why must an object id value always be unique within a single component?

A.   Because object ids are deleted from within the component in which it is declared.

B.   Object ids don't have to be unique.

C.   Because object ids are referred from external components in which it is declared.

D.   Because object ids are referred from anywhere within the component in which it is declared.

30: What is required of id syntax?

A.   It must must begin with a lower-case letter or an underscore, and only contain letters, numbers, and underscores.

B.   It must must begin with an upper-case letter or an underscore, and only contain letters, numbers, and underscores.

C.   It must must begin with a roman numeral or an underscore, and only contain letters, numbers, and underscores.

D.   It must must begin with a number or an underscore, and only contain letters, numbers, and underscores.

31: What is the proper syntax for importing the geoMonitor.h header file?

A.   geoMonitor.h

B.   include geoMonitor.h

C.   #include<geoMonitor.h>

D.   #include geoMonitor.h

32: Choose the C++ statement which declares a function with a default value for an argument.

A.   void myfunction(int a;a = 2)

B.   void myfunction(int a=2)

C.   void function(int a)

D.   void myfunction(int a)

33: How do you put your phone into Development mode?

A.   Settings > Security > Development Mode

B.   Settings > Blackberry Bridge > Development Mode

C.   Settings > Blackberry ID > Development Mode

D.   Settings > Blackberry Project > Development Mode

34: In order to use the functionality that the Image API offers, you must do what?

A.   Use io.open() and io.close() to open and close an input string

B.   Use the available methods in your code

C.   Include the io/io.h header file

D.   Import the Image.h header file

35: Choose the best description of the following configuration: Dialog* pMyDialog = Dialog::create() .content(Container::create()) .onClosed(this, SLOT(onClosedHandler()) .open();

A.   Defining a Slot in QML

B.   Defining a Dialog in Javascript

C.   Defining a Dialog in QML

D.   Defining a Dialog in C++

36: What control emits the clicked() signal?

A.   Signal

B.   Click

C.   Invoke

D.   Button

37: What function hides the page on the top of the stack, then removes it from the navigation stack and displaying the previous page again?

A.   pull()

B.   pop()

C.   push()

D.   stack()

38: How would you declare a pointer which has no type in C++?

A.   null * data;

B.   int * data;

C.   void * data;

D.   void data;

39: If you press and hold an item that has Context Actions on it, which of the following will happen?

A.   It will revel a compressed menu

B.   It will reveal a full menu

C.   It will not reveal a menu

D.   None of these

40: What must users utilize to bring their headless apps associated UIs to the foreground?

A.   The UI service.

B.   The notification service.

C.   The foreground service.

D.   The app service.

41: The _______ file is the main piece of the UI (the root of the visualization of the program).

A.   Main.cpp

B.   Main.qml

C.   App.qml

D.   App.cpp

42: An instant messaging client is an example of what kind of app?

A.   A headed, long-running app.

B.   A headless, short-running app.

C.   A headed, short-running app.

D.   A headless, long-running app.

43: Which of the following are examples of headless, short-running apps?

A.   Post-directed SOS message receivers, fine-grained location trackers, or uploaders.

B.   Port-directed SMS message receivers, coarse-grained location trackers, or downloaders.

C.   Data-directed MSM message receivers, fine-grained location trackers, or downloaders.

D.   Part-directed SNS message receptors, coarse-grained location tricklers, or downloaders.

44: What is the correct order when setting up an event que for requesting and listening for events?

A.   Start the library, Request events to flow into the event queue, Use any service at any time, Listen for events

B.   Use any service at any time, Listen for events, Start the library, Request events to flow into the event queue

C.   Listen for events, Use any service at any time, Request events to flow into the event queue, Start the library

D.   Request events to flow into the event queue, Start the library, Use any service at any time, Listen for events

45: When creating a member function that needs to function as a slot, what section must you place the function declaration?

A.   It must be placed in the private slots: section.

B.   It must be routed to the public slots: section.

C.   It must be placed in the public slots: section.

D.   It must concatenate the public slots: section.

46: When multiple properties are specified on a single line, what must they be separated by?

A.   Comma

B.   Colon

C.   Semicolon

D.   Hyphen

47: What are JavaScript expressions used for within the QML language?

A.   They are used to assign object values.

B.   They are used to assign property values.

C.   They are used to assign property ids.

D.   They are used to assign element values.

48: If you need your app to continue running despite it not being visible, what permissions must be changed in what file?

A.   The run_when_backgrounded parameter must be changed in the bar-descriptor.xml file.

B.   The when_backgrounded parameter must be changed in the bar-descript.xml file.

C.   The run_backgrounded parameter must be changed in the descriptor.xml file.

D.   The run_when_backgrounded parameter must be changed in the bar.xml file.

49: In regard to C++, the first-class containers in the STL include:

A.   vector, deque, list

B.   Sequence containers, Associative containers, Container adapters

C.   vector, deque, list, set, multiset, map, multimap

D.   set, multiset, map, multimap

50: Given the following code sample in C++: catch(…) { cout << "exception";}. What do the ellipses indicate?

A.   The handler will only catch int exceptions

B.   The handler will catch any type of error thrown

C.   Both of these

D.   None of these