Quiz2: Basics of C 1

Quiz2: Basics of C 1

10th Grade

10 Qs

quiz-placeholder

Similar activities

Computer Programming_Unit 7_Test 1

Computer Programming_Unit 7_Test 1

10th Grade

7 Qs

Java Methods & Constructors

Java Methods & Constructors

10th - 12th Grade

11 Qs

Estructura de Lenguaje C

Estructura de Lenguaje C

10th Grade

10 Qs

Computer

Computer

10th Grade

15 Qs

C Language

C Language

10th Grade - University

11 Qs

Ôn tập Xâu Tệp Chương Trình Con

Ôn tập Xâu Tệp Chương Trình Con

KG - 12th Grade

10 Qs

Test C++

Test C++

10th Grade

10 Qs

Programação em C

Programação em C

10th - 12th Grade

10 Qs

Quiz2: Basics of C 1

Quiz2: Basics of C 1

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Xin Yang

Used 14+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?