Search Header Logo

PRF192 - Review 2

Authored by Phạm Văn Dương 20202652M

Other

University

Used 21+ times

PRF192 - Review 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A comment can be split over more than one line, as follows/** A programto calculate averageof 5 numbers. **/

TRUE

FALSE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which ARE the following statements printf % character?

printf("\%")

printf("\\%")

printf("\%%")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The precedence of operators is ...

Arithmetic, Comparison, Logical

Logical, Comparison, Arithmetic

Comparison, Arithmetic, Logical

Comparison, Logical, Arithmetic

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is size of an int ?

8 bits

16 bits

Dependent on machine's "word" size

32 bits

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct prototype in C ?

doFunc():char;

char doFunc()

int doFunc(int,int);

int doFunc(int,int);

float doFunc(void);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statement is (are) wrong ?

a1 = 1343.44;

3=d;

cat = 'A' *** 'B';

asd = 'A'**24;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ___ function after accepting a character and wait for the Enter key to be pressed.

putch()

putchar()

getch()

getchar()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?