ByteBattle2.0(C)

ByteBattle2.0(C)

University

30 Qs

quiz-placeholder

Similar activities

Artificial Intelligence

Artificial Intelligence

University

30 Qs

Quiz on IoT and Its Applications in Logistics

Quiz on IoT and Its Applications in Logistics

12th Grade - University

25 Qs

Znotes Aptitude Quiz

Znotes Aptitude Quiz

University

26 Qs

Qualifier Set B

Qualifier Set B

University

25 Qs

ByteBattle 2.0(3)

ByteBattle 2.0(3)

University

30 Qs

Gen-Z's Trailblazers -2k25 1

Gen-Z's Trailblazers -2k25 1

University

25 Qs

Arduino based quiz

Arduino based quiz

2nd Grade - University

25 Qs

Gen-Z's Trailblazers -2k25 2

Gen-Z's Trailblazers -2k25 2

University

25 Qs

 ByteBattle2.0(C)

ByteBattle2.0(C)

Assessment

Quiz

Engineering

University

Easy

Created by

Shiva Gaur

Used 13+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the extension of C programming files?

.txt

.c

.cpp

.java

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which function is used to display output in C?

print()

System.out.println()

cout

printf()

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which symbol is used to end a statement in C?

:

.

;

,

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid variable declaration in C?

int 1num

int num1;

int #num;

int num ;

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct syntax for a main function in C?

int main()

void main()

main()

public main()

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the following code print? printf("Hello, World!");

Hello

World

Hello, World!

Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid comment in C?

# This is a comment

// This is a comment

/* This is a comment */

Both b) and c)

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?