C Programming Quiz

C Programming Quiz

University

51 Qs

quiz-placeholder

Similar activities

first quiz ICT

first quiz ICT

University

48 Qs

CC 101 Final Exam

CC 101 Final Exam

University

50 Qs

P1 COMPROG 1-6

P1 COMPROG 1-6

University

50 Qs

Java Programming Quiz 2-6

Java Programming Quiz 2-6

University

50 Qs

CA Test 2

CA Test 2

University

50 Qs

ข้อสอบปลายภาค

ข้อสอบปลายภาค

University

50 Qs

Understanding Loops in Programming

Understanding Loops in Programming

9th Grade - University

54 Qs

Unit 2 Final Quizz

Unit 2 Final Quizz

University

54 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Đức Huy Phạm Minh

Used 3+ times

FREE Resource

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the incorrect definition?

Algorithm: a way to find out a solution

Data: Values are used to describe information. So, information can be called as the mean of data

Solution: A situation in which something is hidden

Information: Knowledge about something

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a C program compiles without any errors or warnings, it means that the syntax of the program is correct, and the compiler successfully translates the code into machine-readable instructions. However, a program can still produce incorrect results if there are in the code.

compilation errors

runtime errors

logic or semantic errors

interpreter errors

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is not a type of bus in a computer?

Address bus

Signal bus

Control bus

Data bus

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What translates a C source file into machine language so that the computer can execute it?

A compiler

A text editor

A file

A program

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In computers, what are the basic number systems and their corresponding bases used?

Decimal number system (Base-10).

Binary number system (Base-2).

Octal number system (Base-8).

Hexadecimal number system (Base-16).

All answers are correct.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary use of the const keyword when used with function parameters in C?

It prevents the function from modifying the parameter's value

It ensures the parameter is passed by reference

It restricts the parameter's scope to the function

It specifies that the parameter should be initialized

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include void main() { } int i= 10, j = 3, k = 3; printf("%d %d ", i, j, k);

Compile time error

1033

103

10 3 somegarbage value

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?