Search Header Logo

Quiz2: Basics of C 1

Authored by Xin Yang

Computers

10th Grade

Used 14+ times

Quiz2: Basics of C 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct value to return to the operating system upon the successful completion of a program?

-1

1

0

Programs do not return a value

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the only function all C programs must contain?

start()

system()

main()

program()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What punctuation ends most lines of C code?

.

;

:

'

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct comment?

*/Comments */

** Comment **

/* Comment */

{ Comment }

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a correct variable type?

float

real

int

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the C program?


#include<stdio.h>

int main()

{

int 1_one = 25;

printf("%d",1_one);

return 0;

}

2

25

1

Compilation Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable is a symbol that represents

A number

A string

A storage location in the computer's memory

Nothing

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?