C Programming Lab Quiz

C Programming Lab Quiz

University

10 Qs

quiz-placeholder

Similar activities

QUIZZ 1 : DATABASE FUNDAMENTALS

QUIZZ 1 : DATABASE FUNDAMENTALS

University

10 Qs

Modulo 3. Interconexión de dispositivos

Modulo 3. Interconexión de dispositivos

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

ITF Chapter 1 Computing Devices

ITF Chapter 1 Computing Devices

University

14 Qs

Application Development Midterm Quiz

Application Development Midterm Quiz

University

15 Qs

Network Management Week 14

Network Management Week 14

University

10 Qs

How Safe are you? (Disclaimer: I do not own these questions)

How Safe are you? (Disclaimer: I do not own these questions)

University

10 Qs

C Programming Lab Quiz

C Programming Lab Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Sridhar M

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is commonly used in C to print debug information to the console?

scanf
fprintf
printf
puts

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring a variable in C?

variable_name datatype;
variable_name datatype
datatype variable_name;
variable_name; datatype

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C data type is used for storing single characters?

float
int
double
char

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'sizeof' operator in C return?

The memory address of its operand
The value of its operand
The data type of its operand
The size in bytes of its operand

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, which operator is used for getting the address of a variable?

*
#
$
&

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to compare two strings in C?

strcmp()
str_equal()
strcomp
compare()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C library function is used to dynamically allocate memory?

malloc
realloc
free
calloc

Create a free account and access millions of resources

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?