C Basics

C Basics

University

10 Qs

quiz-placeholder

Similar activities

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

Computer Network Fun Review 5 - Data Link Layer

Computer Network Fun Review 5 - Data Link Layer

University

10 Qs

PYTHON LOOPING

PYTHON LOOPING

University

10 Qs

Graphs

Graphs

University

15 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

C Basics

C Basics

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

deepika ponnusamy

Used 1+ 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 of the following is not a valid C keyword?

if

while

do..while

main()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare a variable in C?

char name;

float number1;

int 1number;

double 2value;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: printf("%d", 5 + 3);?

Error

5

8

53

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used for logical AND in C?

!

&&

||

&

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 10;

if (x > 5) {

printf("Hello");

} else {

printf("World");

}

What will be the output?

Hello

World

HelloWorld

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: printf("%f", 3.14);?

314

3.140000

Error

3.14

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to define a function in C?

function myFunction() {}

void myFunction;

int myFunction() {}

myFunction() int {}

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?