• Card 2 / 43: Which of the following are true for variables?
    A) Variables can contain all different types of numbers/symbols and letters. Example: int my^Num1;
    B) Variables can start with numbers: ex) int 2Num;
    C) Variables can start with underscores: ex) int _newNum;
    D) Variable names can only contain numbers,underscores and letters for every character other than the first one. ex) int myNum_new;
    E) Variable names, by convention, start with lowercase. ex) int myNum;

    Answer:
    C) Variables can start with underscores: ex) int _newNum;
    D) Variable names can only contain numbers,underscores and letters for every character other than the first one. ex) int myNum_new;
    E) Variable names, by convention, start with lowercase. ex) int myNum;

  • Keyboard Shortcuts

    Previous Card ← Previous Card Button
    Next Card → Next Card Button
    Flip Card Space-Bar
<< First < Previous Next > Last >>

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now
Explanation:

Variable names can contain only numbers (1,2,etc), letters (both upper and lower) and underscores.

However they can only start with either letters or underscores.

Using java convention, variables usually begin with lowercase letters.

Hide Choices Interactive Question Test Home Page
https://www.jobilize.com/quiz-object-oriented-programming-test-1-by-ali-sid

Object Oriented Programming Test 1

Author:

Access: Public Instant Grading

Flash Cards plugin by Curtis Blackwell github.com/curtisblackwell/flash_cards
Google Play and the Google Play logo are trademarks of Google Inc.
Ask
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-object-oriented-programming-test-1-by-ali-sid" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>