C Basics

C Basics

University

10 Qs

quiz-placeholder

Similar activities

Basics of JAVA

Basics of JAVA

University

11 Qs

Computer Programming (Lab)

Computer Programming (Lab)

University

10 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Array in C

Array in C

University

10 Qs

C programming-1

C programming-1

University

13 Qs

C programming

C programming

11th Grade - University

10 Qs

C++ programing Quiz

C++ programing Quiz

12th Grade - University

10 Qs

Module 1 - Programming in C

Module 1 - Programming in C

University

15 Qs

C Basics

C Basics

Assessment

Quiz

Computers

University

Hard

Created by

deepika ponnusamy

Used 1+ times

FREE Resource

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 {}

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?