Byte Bash

Byte Bash

24 Qs

quiz-placeholder

Similar activities

HHB 2.6 Cardiac Cycle QUIZS

HHB 2.6 Cardiac Cycle QUIZS

11th Grade

20 Qs

ECE B_Python Class Test_QA

ECE B_Python Class Test_QA

KG - University

25 Qs

Byte Bash-2k24

Byte Bash-2k24

KG - University

24 Qs

K.L.E. Institute of Technology, Hubballi-30.

K.L.E. Institute of Technology, Hubballi-30.

KG - University

24 Qs

Test linguaggio C crediti

Test linguaggio C crediti

9th - 12th Grade

20 Qs

C Programming (Pre test ET Sec B)

C Programming (Pre test ET Sec B)

Professional Development

25 Qs

C++ Biến, hằng số - Cấu trúc lập trình tuần tự

C++ Biến, hằng số - Cấu trúc lập trình tuần tự

KG - University

20 Qs

Fall Exam Review - Functions

Fall Exam Review - Functions

KG - University

20 Qs

Byte Bash

Byte Bash

Assessment

Quiz

others

Hard

Created by

244021 Joanne Pranita

FREE Resource

24 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • Ungraded

Name

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

30 sec • Ungraded

Batch No.

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Year
II
III

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly declares a string in C?
A) char str[] = "Hello";
B) char *str = "Hello";
C) char[] str = "Hello";
D) string str = "Hello";

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include int main() { int x = 10; if (x = 5) { printf("Hello "); } else { printf("Hi "); } return 0; }
A) Hello
B) Hi
C) Compiler Error
D) Segmentation Fault

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to define a function in C that takes an integer parameter and returns an integer?
A) int function(int x) {}
B) int function(x) int x; {}
C) function(int x) { return x; }
D) int x function(int) {}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? #include int main() { int x = 5; printf("%d", x++); printf("%d", ++x); return 0; }
56
65
67
57

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?