Question: eg 112 Quiz 1 Applied Programming for Engineers zy books QUESTION 1 What is the effect of the following line of code? #include It defines

eg 112 Quiz 1

Applied Programming for Engineers zy books

QUESTION 1

  1. What is the effect of the following line of code?

    #include

    It defines a global variable named stdio

    It defines a constant used later in the program

    It tells the compiler that a program is about to begin

    It allows us to use functions defined in the standard input/output library

10 points

QUESTION 2

  1. Which of the following lines should be used to read an integer into a program?

    scanf("%d",&myVar);

    scanf("%d",myVar)

    scanf("%c",myVar)

    scanf("%c",&myVar)

10 points

QUESTION 3

  1. Which of the following is an example of an arithmetic expression?

    myVar + 5

    myVar = 5

    myVar1 > myVar2

    myVar & 0x80

10 points

QUESTION 4

  1. What is the value of the following expression?

    (4+1)%5;

    5

    1

    -1

    0

10 points

QUESTION 5

  1. Which is not a valid variable name;

    4myVar

    _myVar4

    _4myVar

    myVar4

10 points

Click Save and Submit to save and submit. Click Save All Answers to save all answers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!